Package net.minecraft.item
Class FilledMapItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.NetworkSyncedItem
net.minecraft.item.FilledMapItem
- All Implemented Interfaces:
ItemConvertible,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/item/FilledMapItemintermediary net/minecraft/class_1806official cvc
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.Settings, Item.TooltipContext -
Field Summary
FieldsFields inherited from class net.minecraft.item.Item
BASE_ATTACK_DAMAGE_MODIFIER_ID, BASE_ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, DEFAULT_MAX_COUNT, ITEM_BAR_STEPS, MAX_MAX_COUNTFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static MapIdComponentallocateMapId(World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension) voidappendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.static voidstatic ItemStackcreateSyncPacket(ItemStack stack, World world, PlayerEntity player) Creates a packet that syncs additional item data to the client.static voidfillExplorationMap(ServerWorld world, ItemStack map) private BlockStategetFluidStateIfVisible(World world, BlockState state, BlockPos pos) static TextgetMapState(@Nullable MapIdComponent id, World world) getMapState(ItemStack map, World world) voidinventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected) Called on both the client and the server every tick if the item is in the player's inventory.private static booleanisAquaticBiome(boolean[] biomes, int x, int z) voidCalled when the item is made by crafting, smelting, smithing, etc.private static voidvoidupdateColors(World world, Entity entity, MapState state) useOnBlock(ItemUsageContext context) Called when an item is used on a block.Methods inherited from class net.minecraft.item.NetworkSyncedItem
isNetworkSyncedMethods inherited from class net.minecraft.item.Item
asItem, byRawId, canBeNested, canMine, canRepair, finishUsing, fromBlock, getAttributeModifiers, getBonusAttackDamage, getBreakSound, getComponents, getDefaultStack, getDrinkSound, getEatSound, getEnchantability, getItemBarColor, getItemBarStep, getMaxCount, getMaxUseTime, getMiningSpeed, getName, getName, getOrCreateTranslationKey, getRawId, getRecipeRemainder, getRegistryEntry, getRequiredFeatures, getTooltipData, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, isCorrectForDrops, isEnchantable, isItemBarVisible, isUsedOnRelease, onClicked, onCraftByPlayer, onItemEntityDestroyed, onStackClicked, onStoppedUsing, postDamageEntity, postHit, postMine, postProcessComponents, raycast, toString, usageTick, use, useOnEntityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
field_30907
public static final int field_30907- See Also:
- Mappings:
Namespace Name Mixin selector named field_30907Lnet/minecraft/item/FilledMapItem;field_30907:Iintermediary field_30907Lnet/minecraft/class_1806;field_30907:Iofficial aLcvc;a:I
-
field_30908
public static final int field_30908- See Also:
- Mappings:
Namespace Name Mixin selector named field_30908Lnet/minecraft/item/FilledMapItem;field_30908:Iintermediary field_30908Lnet/minecraft/class_1806;field_30908:Iofficial bLcvc;b:I
-
-
Constructor Details
-
FilledMapItem
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)Vintermediary <init>Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)Vofficial <init>Lcul;<init>(Lcul$a;)V
-
-
Method Details
-
createMap
public static ItemStack createMap(World world, int x, int z, byte scale, boolean showIcons, boolean unlimitedTracking) - Mappings:
Namespace Name Mixin selector named createMapLnet/minecraft/item/FilledMapItem;createMap(Lnet/minecraft/world/World;IIBZZ)Lnet/minecraft/item/ItemStack;intermediary method_8005Lnet/minecraft/class_1806;method_8005(Lnet/minecraft/class_1937;IIBZZ)Lnet/minecraft/class_1799;official aLcvc;a(Ldcw;IIBZZ)Lcuq;
-
getMapState
@Nullable public static @Nullable MapState getMapState(@Nullable @Nullable MapIdComponent id, World world) - Mappings:
Namespace Name Mixin selector named getMapStateLnet/minecraft/item/FilledMapItem;getMapState(Lnet/minecraft/component/type/MapIdComponent;Lnet/minecraft/world/World;)Lnet/minecraft/item/map/MapState;intermediary method_7997Lnet/minecraft/class_1806;method_7997(Lnet/minecraft/class_9209;Lnet/minecraft/class_1937;)Lnet/minecraft/class_22;official aLcvc;a(Leqr;Ldcw;)Leqt;
-
getMapState
- Mappings:
Namespace Name Mixin selector named getMapStateLnet/minecraft/item/FilledMapItem;getMapState(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;)Lnet/minecraft/item/map/MapState;intermediary method_8001Lnet/minecraft/class_1806;method_8001(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;)Lnet/minecraft/class_22;official bLcvc;b(Lcuq;Ldcw;)Leqt;
-
allocateMapId
private static MapIdComponent allocateMapId(World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension) - Mappings:
Namespace Name Mixin selector named allocateMapIdLnet/minecraft/item/FilledMapItem;allocateMapId(Lnet/minecraft/world/World;IIIZZLnet/minecraft/registry/RegistryKey;)Lnet/minecraft/component/type/MapIdComponent;intermediary method_32349Lnet/minecraft/class_1806;method_32349(Lnet/minecraft/class_1937;IIIZZLnet/minecraft/class_5321;)Lnet/minecraft/class_9209;official aLcvc;a(Ldcw;IIIZZLakq;)Leqr;
-
updateColors
- Mappings:
Namespace Name Mixin selector named updateColorsLnet/minecraft/item/FilledMapItem;updateColors(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;Lnet/minecraft/item/map/MapState;)Vintermediary method_7998Lnet/minecraft/class_1806;method_7998(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;Lnet/minecraft/class_22;)Vofficial aLcvc;a(Ldcw;Lbsr;Leqt;)V
-
getFluidStateIfVisible
- Mappings:
Namespace Name Mixin selector named getFluidStateIfVisibleLnet/minecraft/item/FilledMapItem;getFluidStateIfVisible(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;intermediary method_7995Lnet/minecraft/class_1806;method_7995(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;official aLcvc;a(Ldcw;Ldtc;Ljd;)Ldtc;
-
isAquaticBiome
private static boolean isAquaticBiome(boolean[] biomes, int x, int z) - Mappings:
Namespace Name Mixin selector named isAquaticBiomeLnet/minecraft/item/FilledMapItem;isAquaticBiome([ZII)Zintermediary method_38988Lnet/minecraft/class_1806;method_38988([ZII)Zofficial aLcvc;a([ZII)Z
-
fillExplorationMap
- Mappings:
Namespace Name Mixin selector named fillExplorationMapLnet/minecraft/item/FilledMapItem;fillExplorationMap(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)Vintermediary method_8002Lnet/minecraft/class_1806;method_8002(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)Vofficial aLcvc;a(Laqu;Lcuq;)V
-
inventoryTick
Called on both the client and the server every tick if the item is in the player's inventory.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using
World.isClient.- Overrides:
inventoryTickin classItem- Parameters:
entity- the entity holding the item; usually a playerselected- whether the item is in the selected hotbar slot- Mappings:
Namespace Name Mixin selector named inventoryTickLnet/minecraft/item/Item;inventoryTick(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;IZ)Vintermediary method_7888Lnet/minecraft/class_1792;method_7888(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;IZ)Vofficial aLcul;a(Lcuq;Ldcw;Lbsr;IZ)V
-
createSyncPacket
@Nullable public @Nullable Packet<?> createSyncPacket(ItemStack stack, World world, PlayerEntity player) Creates a packet that syncs additional item data to the client.- Overrides:
createSyncPacketin classNetworkSyncedItem- Mappings:
Namespace Name Mixin selector named createSyncPacketLnet/minecraft/item/NetworkSyncedItem;createSyncPacket(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/network/packet/Packet;intermediary method_7757Lnet/minecraft/class_1762;method_7757(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;)Lnet/minecraft/class_2596;official aLcsz;a(Lcuq;Ldcw;Lcmx;)Lzg;
-
onCraft
Called when the item is made by crafting, smelting, smithing, etc.- Overrides:
onCraftin classItem- Mappings:
Namespace Name Mixin selector named onCraftLnet/minecraft/item/Item;onCraft(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;)Vintermediary method_7843Lnet/minecraft/class_1792;method_7843(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;)Vofficial aLcul;a(Lcuq;Ldcw;)V
-
scale
- Mappings:
Namespace Name Mixin selector named scaleLnet/minecraft/item/FilledMapItem;scale(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;)Vintermediary method_7996Lnet/minecraft/class_1806;method_7996(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;)Vofficial cLcvc;c(Lcuq;Ldcw;)V
-
copyMap
- Mappings:
Namespace Name Mixin selector named copyMapLnet/minecraft/item/FilledMapItem;copyMap(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;)Vintermediary method_17442Lnet/minecraft/class_1806;method_17442(Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;)Vofficial aLcvc;a(Ldcw;Lcuq;)V
-
appendTooltip
public void appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item. Subclasses can override this and add custom tooltips totooltiplist.- Overrides:
appendTooltipin classItem- Parameters:
tooltip- the list of tooltips to show- Mappings:
Namespace Name Mixin selector named appendTooltipLnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/Item$TooltipContext;Ljava/util/List;Lnet/minecraft/item/tooltip/TooltipType;)Vintermediary method_7851Lnet/minecraft/class_1792;method_7851(Lnet/minecraft/class_1799;Lnet/minecraft/class_1792$class_9635;Ljava/util/List;Lnet/minecraft/class_1836;)Vofficial aLcul;a(Lcuq;Lcul$b;Ljava/util/List;Lcwm;)V
-
getIdText
- Mappings:
Namespace Name Mixin selector named getIdTextLnet/minecraft/item/FilledMapItem;getIdText(Lnet/minecraft/component/type/MapIdComponent;)Lnet/minecraft/text/Text;intermediary method_53836Lnet/minecraft/class_1806;method_53836(Lnet/minecraft/class_9209;)Lnet/minecraft/class_2561;official aLcvc;a(Leqr;)Lwz;
-
useOnBlock
Called when an item is used on a block.This method is called on both the logical client and logical server, so take caution when using this method. The logical side can be checked using
context.getWorld().isClient().- Overrides:
useOnBlockin classItem- Parameters:
context- the usage context- Returns:
- an action result that specifies if using the item on a block was successful.
- Mappings:
Namespace Name Mixin selector named useOnBlockLnet/minecraft/item/Item;useOnBlock(Lnet/minecraft/item/ItemUsageContext;)Lnet/minecraft/util/ActionResult;intermediary method_7884Lnet/minecraft/class_1792;method_7884(Lnet/minecraft/class_1838;)Lnet/minecraft/class_1269;official aLcul;a(Lcyf;)Lbqr;
-