Package net.minecraft.item
Class FilledMapItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.NetworkSyncedItem
net.minecraft.item.FilledMapItem
public class FilledMapItem extends NetworkSyncedItem
- Mappings:
Namespace Name official aabintermediary net/minecraft/class_4named net/minecraft/item/FilledMapItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors Modifier Constructor Description protectedFilledMapItem() -
Method Summary
Modifier and Type Method Description voidappendTooltip(ItemStack stack, PlayerEntity player, List<String> lines, boolean advanced)PacketcreateSyncPacket(ItemStack stack, World world, PlayerEntity player)static MapStategetMapState(int i, World world)MapStategetMapState(ItemStack itemStack, World world)voidinventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected)Runs every tick when the item is in an inventory.voidonCraft(ItemStack stack, World world, PlayerEntity player)Runs when the item is craftedvoidupdateColors(World world, Entity entity, MapState state)Methods inherited from class net.minecraft.item.NetworkSyncedItem
isNetworkSyncedMethods inherited from class net.minecraft.item.Item
appendItemStacks, byRawId, canRepair, canUseOnEntity, fromBlock, getAttributeModifierMap, getDisplayColor, getDisplayName, getEnchantability, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMaxUseTime, getMeta, getMiningSpeedMultiplier, getRarity, getRawId, getRecipeRemainder, getStatusEffectString, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasStatusEffectString, hasSubTypes, isDamageable, isEffectiveOn, isEnchantable, isFood, isHandheld, isUnbreakable, onBlockBroken, onEntityHit, onFinishUse, onHit, onStartUse, onUseStopped, postProcessTag, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncTagToClient, use
-
Constructor Details
-
FilledMapItem
protected FilledMapItem()- Mappings:
Namespace Name Mixin selector official <init>Lzw;<init>()Vintermediary <init>Lnet/minecraft/class_2054;<init>()Vnamed <init>Lnet/minecraft/item/Item;<init>()V
-
-
Method Details
-
getMapState
- Mappings:
Namespace Name Mixin selector official aLaab;a(ILadm;)Latg;intermediary method_10Lnet/minecraft/class_4;method_10(ILnet/minecraft/class_99;)Lnet/minecraft/class_627;named getMapStateLnet/minecraft/item/FilledMapItem;getMapState(ILnet/minecraft/world/World;)Lnet/minecraft/item/map/MapState;
-
getMapState
- Mappings:
Namespace Name Mixin selector official aLaab;a(Lzx;Ladm;)Latg;intermediary method_12Lnet/minecraft/class_4;method_12(Lnet/minecraft/class_2056;Lnet/minecraft/class_99;)Lnet/minecraft/class_627;named getMapStateLnet/minecraft/item/FilledMapItem;getMapState(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;)Lnet/minecraft/item/map/MapState;
-
updateColors
- Mappings:
Namespace Name Mixin selector official aLaab;a(Ladm;Lpk;Latg;)Vintermediary method_11Lnet/minecraft/class_4;method_11(Lnet/minecraft/class_99;Lnet/minecraft/class_1745;Lnet/minecraft/class_627;)Vnamed updateColorsLnet/minecraft/item/FilledMapItem;updateColors(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;Lnet/minecraft/item/map/MapState;)V
-
inventoryTick
Runs every tick when the item is in an inventory.- Overrides:
inventoryTickin classItem- Parameters:
stack- The item in an ItemStack formworld- The world where the item is tickingentity- The entity whose inventory contains the itemslot- The slot in which the item is placedselected- Whether the item is currently selected by the entity- Mappings:
Namespace Name Mixin selector official aLzw;a(Lzx;Ladm;Lpk;IZ)Vintermediary method_8259Lnet/minecraft/class_2054;method_8259(Lnet/minecraft/class_2056;Lnet/minecraft/class_99;Lnet/minecraft/class_1745;IZ)Vnamed inventoryTickLnet/minecraft/item/Item;inventoryTick(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;IZ)V
-
createSyncPacket
- Overrides:
createSyncPacketin classNetworkSyncedItem- Mappings:
Namespace Name Mixin selector official cLyy;c(Lzx;Ladm;Lwn;)Lff;intermediary method_8188Lnet/minecraft/class_2028;method_8188(Lnet/minecraft/class_2056;Lnet/minecraft/class_99;Lnet/minecraft/class_1963;)Lnet/minecraft/class_1457;named createSyncPacketLnet/minecraft/item/NetworkSyncedItem;createSyncPacket(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/network/Packet;
-
onCraft
Runs when the item is crafted- Overrides:
onCraftin classItem- Parameters:
stack- The item in an ItemStack formworld- The world where the crafting happenedplayer- The player who crafted the item- Mappings:
Namespace Name Mixin selector official dLzw;d(Lzx;Ladm;Lwn;)Vintermediary method_8282Lnet/minecraft/class_2054;method_8282(Lnet/minecraft/class_2056;Lnet/minecraft/class_99;Lnet/minecraft/class_1963;)Vnamed onCraftLnet/minecraft/item/Item;onCraft(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)V
-
appendTooltip
@Environment(CLIENT) public void appendTooltip(ItemStack stack, PlayerEntity player, List<String> lines, boolean advanced)- Overrides:
appendTooltipin classItem- Mappings:
Namespace Name Mixin selector official aLzw;a(Lzx;Lwn;Ljava/util/List;Z)Vintermediary method_8265Lnet/minecraft/class_2054;method_8265(Lnet/minecraft/class_2056;Lnet/minecraft/class_1963;Ljava/util/List;Z)Vnamed appendTooltipLnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;Ljava/util/List;Z)V
-