Package net.minecraft.item
Class FilledMapItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.FilledMapItem
- All Implemented Interfaces:
ItemConvertible
,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/item/FilledMapItem
intermediary net/minecraft/class_1806
official dax
-
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_BLOCKS_ATTACKS_MAX_USE_TIME, DEFAULT_MAX_COUNT, ENTRY_CODEC, ENTRY_PACKET_CODEC, ITEM_BAR_STEPS, MAX_MAX_COUNT, translationKey
Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static MapIdComponent
allocateMapId
(ServerWorld world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension) private static void
copyMap
(ItemStack stack, ServerWorld world) static ItemStack
createMap
(ServerWorld world, int x, int z, byte scale, boolean showIcons, boolean unlimitedTracking) static void
fillExplorationMap
(ServerWorld world, ItemStack map) private BlockState
getFluidStateIfVisible
(World world, BlockState state, BlockPos pos) getMapState
(@Nullable MapIdComponent id, World world) getMapState
(ItemStack map, World world) void
inventoryTick
(ItemStack stack, ServerWorld world, Entity entity, @Nullable EquipmentSlot slot) Called on both the client and the server every tick if the item is in a player or other entity's inventory.private static boolean
isAquaticBiome
(boolean[] biomes, int x, int z) void
Called when the item is made by crafting, smelting, smithing, etc.private static void
scale
(ItemStack map, ServerWorld world) void
updateColors
(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.Item
appendTooltip, asItem, byRawId, canBeNested, canMine, finishUsing, fromBlock, getBonusAttackDamage, getComponents, getDamageSource, getDefaultStack, getItemBarColor, getItemBarStep, getMaxCount, getMaxUseTime, getMiningSpeed, getName, getName, getRawId, getRecipeRemainder, getRegistryEntry, getRequiredFeatures, getTooltipData, getTranslationKey, getUseAction, hasGlint, isCorrectForDrops, isItemBarVisible, isUsedOnRelease, onClicked, onCraftByPlayer, onItemEntityDestroyed, onStackClicked, onStoppedUsing, postDamageEntity, postHit, postMine, postProcessComponents, raycast, shouldShowOperatorBlockWarnings, toString, usageTick, use, useOnEntity
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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_30907
Lnet/minecraft/item/FilledMapItem;field_30907:I
intermediary field_30907
Lnet/minecraft/class_1806;field_30907:I
official a
Ldax;a:I
-
field_30908
public static final int field_30908- See Also:
- Mappings:
Namespace Name Mixin selector named field_30908
Lnet/minecraft/item/FilledMapItem;field_30908:I
intermediary field_30908
Lnet/minecraft/class_1806;field_30908:I
official b
Ldax;b:I
-
-
Constructor Details
-
Method Details
-
createMap
public static ItemStack createMap(ServerWorld world, int x, int z, byte scale, boolean showIcons, boolean unlimitedTracking) - Mappings:
Namespace Name Mixin selector named createMap
Lnet/minecraft/item/FilledMapItem;createMap(Lnet/minecraft/server/world/ServerWorld;IIBZZ)Lnet/minecraft/item/ItemStack;
intermediary method_8005
Lnet/minecraft/class_1806;method_8005(Lnet/minecraft/class_3218;IIBZZ)Lnet/minecraft/class_1799;
official a
Ldax;a(Lasb;IIBZZ)Ldak;
-
getMapState
@Nullable public static @Nullable MapState getMapState(@Nullable @Nullable MapIdComponent id, World world) - Mappings:
Namespace Name Mixin selector named getMapState
Lnet/minecraft/item/FilledMapItem;getMapState(Lnet/minecraft/component/type/MapIdComponent;Lnet/minecraft/world/World;)Lnet/minecraft/item/map/MapState;
intermediary method_7997
Lnet/minecraft/class_1806;method_7997(Lnet/minecraft/class_9209;Lnet/minecraft/class_1937;)Lnet/minecraft/class_22;
official a
Ldax;a(Lezt;Ldkj;)Lezv;
-
getMapState
- Mappings:
Namespace Name Mixin selector named getMapState
Lnet/minecraft/item/FilledMapItem;getMapState(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;)Lnet/minecraft/item/map/MapState;
intermediary method_8001
Lnet/minecraft/class_1806;method_8001(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;)Lnet/minecraft/class_22;
official b
Ldax;b(Ldak;Ldkj;)Lezv;
-
allocateMapId
private static MapIdComponent allocateMapId(ServerWorld world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension) - Mappings:
Namespace Name Mixin selector named allocateMapId
Lnet/minecraft/item/FilledMapItem;allocateMapId(Lnet/minecraft/server/world/ServerWorld;IIIZZLnet/minecraft/registry/RegistryKey;)Lnet/minecraft/component/type/MapIdComponent;
intermediary method_32349
Lnet/minecraft/class_1806;method_32349(Lnet/minecraft/class_3218;IIIZZLnet/minecraft/class_5321;)Lnet/minecraft/class_9209;
official a
Ldax;a(Lasb;IIIZZLalq;)Lezt;
-
updateColors
- Mappings:
Namespace Name Mixin selector named updateColors
Lnet/minecraft/item/FilledMapItem;updateColors(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;Lnet/minecraft/item/map/MapState;)V
intermediary method_7998
Lnet/minecraft/class_1806;method_7998(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;Lnet/minecraft/class_22;)V
official a
Ldax;a(Ldkj;Lbxe;Lezv;)V
-
getFluidStateIfVisible
- Mappings:
Namespace Name Mixin selector named getFluidStateIfVisible
Lnet/minecraft/item/FilledMapItem;getFluidStateIfVisible(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
intermediary method_7995
Lnet/minecraft/class_1806;method_7995(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
official a
Ldax;a(Ldkj;Lebq;Liw;)Lebq;
-
isAquaticBiome
private static boolean isAquaticBiome(boolean[] biomes, int x, int z) - Mappings:
Namespace Name Mixin selector named isAquaticBiome
Lnet/minecraft/item/FilledMapItem;isAquaticBiome([ZII)Z
intermediary method_38988
Lnet/minecraft/class_1806;method_38988([ZII)Z
official a
Ldax;a([ZII)Z
-
fillExplorationMap
- Mappings:
Namespace Name Mixin selector named fillExplorationMap
Lnet/minecraft/item/FilledMapItem;fillExplorationMap(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)V
intermediary method_8002
Lnet/minecraft/class_1806;method_8002(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)V
official a
Ldax;a(Lasb;Ldak;)V
-
inventoryTick
public void inventoryTick(ItemStack stack, ServerWorld world, Entity entity, @Nullable @Nullable EquipmentSlot slot) Called on both the client and the server every tick if the item is in a player or other entity'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:
inventoryTick
in classItem
- Parameters:
entity
- the entity holding the item- Mappings:
Namespace Name Mixin selector named inventoryTick
Lnet/minecraft/item/Item;inventoryTick(Lnet/minecraft/item/ItemStack;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EquipmentSlot;)V
intermediary method_7888
Lnet/minecraft/class_1792;method_7888(Lnet/minecraft/class_1799;Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;Lnet/minecraft/class_1304;)V
official a
Ldag;a(Ldak;Lasb;Lbxe;Lbxo;)V
-
onCraft
Called when the item is made by crafting, smelting, smithing, etc.- Overrides:
onCraft
in classItem
- Mappings:
Namespace Name Mixin selector named onCraft
Lnet/minecraft/item/Item;onCraft(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;)V
intermediary method_7843
Lnet/minecraft/class_1792;method_7843(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;)V
official a
Ldag;a(Ldak;Ldkj;)V
-
scale
- Mappings:
Namespace Name Mixin selector named scale
Lnet/minecraft/item/FilledMapItem;scale(Lnet/minecraft/item/ItemStack;Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_7996
Lnet/minecraft/class_1806;method_7996(Lnet/minecraft/class_1799;Lnet/minecraft/class_3218;)V
official a
Ldax;a(Ldak;Lasb;)V
-
copyMap
- Mappings:
Namespace Name Mixin selector named copyMap
Lnet/minecraft/item/FilledMapItem;copyMap(Lnet/minecraft/item/ItemStack;Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_17442
Lnet/minecraft/class_1806;method_17442(Lnet/minecraft/class_1799;Lnet/minecraft/class_3218;)V
official b
Ldax;b(Ldak;Lasb;)V
-
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:
useOnBlock
in 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 useOnBlock
Lnet/minecraft/item/Item;useOnBlock(Lnet/minecraft/item/ItemUsageContext;)Lnet/minecraft/util/ActionResult;
intermediary method_7884
Lnet/minecraft/class_1792;method_7884(Lnet/minecraft/class_1838;)Lnet/minecraft/class_1269;
official a
Ldag;a(Ldef;)Lbvc;
-