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 official cjm
intermediary net/minecraft/class_1806
named net/minecraft/item/FilledMapItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.Settings
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
static final int
static final int
private static final String
static final String
static final String
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, DEFAULT_MAX_COUNT, DEFAULT_MAX_USE_TIME, ITEM_BAR_STEPS
Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
allocateMapId
(World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension) void
appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.static void
static ItemStack
private static void
createMapState
(ItemStack stack, World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension) @Nullable Packet<?>
createSyncPacket
(ItemStack stack, World world, PlayerEntity player) Creates a packet that syncs additional item data to the client.static void
fillExplorationMap
(ServerWorld world, ItemStack map) private BlockState
getFluidStateIfVisible
(World world, BlockState state, BlockPos pos) private static Text
getIdText
(int id) static Text
static int
getMapColor
(ItemStack stack) static @Nullable Integer
static String
getMapName
(int mapId) static @Nullable MapState
getMapState
(@Nullable Integer id, World world) static @Nullable MapState
getMapState
(ItemStack map, World world) void
inventoryTick
(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 boolean
isAquaticBiome
(boolean[] biomes, int x, int z) void
onCraft
(ItemStack stack, World world, PlayerEntity player) Called when a player acquires the item by crafting, smelting, smithing, etc.private static void
private static void
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.NetworkSyncedItem
isNetworkSynced
Methods inherited from class net.minecraft.item.Item
asItem, byRawId, canBeNested, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getItemBarColor, getItemBarStep, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getRegistryEntry, getRequiredFeatures, getTooltipData, getTranslationKey, getTranslationKey, getUseAction, hasGlint, hasRecipeRemainder, isDamageable, isEnchantable, isFireproof, isFood, isItemBarVisible, isNbtSynced, isSuitableFor, isUsedOnRelease, onClicked, onItemEntityDestroyed, onStackClicked, onStoppedUsing, postHit, postMine, postProcessNbt, raycast, 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 official a
Lcjm;a:I
intermediary field_30907
Lnet/minecraft/class_1806;field_30907:I
named field_30907
Lnet/minecraft/item/FilledMapItem;field_30907:I
-
field_30908
public static final int field_30908- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lcjm;b:I
intermediary field_30908
Lnet/minecraft/class_1806;field_30908:I
named field_30908
Lnet/minecraft/item/FilledMapItem;field_30908:I
-
DEFAULT_MAP_COLOR
private static final int DEFAULT_MAP_COLOR- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lcjm;e:I
intermediary field_30909
Lnet/minecraft/class_1806;field_30909:I
named DEFAULT_MAP_COLOR
Lnet/minecraft/item/FilledMapItem;DEFAULT_MAP_COLOR:I
-
MAP_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lcjm;f:Ljava/lang/String;
intermediary field_30910
Lnet/minecraft/class_1806;field_30910:Ljava/lang/String;
named MAP_KEY
Lnet/minecraft/item/FilledMapItem;MAP_KEY:Ljava/lang/String;
-
MAP_SCALE_DIRECTION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lcjm;c:Ljava/lang/String;
intermediary field_41067
Lnet/minecraft/class_1806;field_41067:Ljava/lang/String;
named MAP_SCALE_DIRECTION_KEY
Lnet/minecraft/item/FilledMapItem;MAP_SCALE_DIRECTION_KEY:Ljava/lang/String;
-
MAP_TO_LOCK_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lcjm;d:Ljava/lang/String;
intermediary field_41068
Lnet/minecraft/class_1806;field_41068:Ljava/lang/String;
named MAP_TO_LOCK_KEY
Lnet/minecraft/item/FilledMapItem;MAP_TO_LOCK_KEY:Ljava/lang/String;
-
-
Constructor Details
-
FilledMapItem
- Mappings:
Namespace Name Mixin selector official <init>
Lcja;<init>(Lcja$a;)V
intermediary <init>
Lnet/minecraft/class_1792;<init>(Lnet/minecraft/class_1792$class_1793;)V
named <init>
Lnet/minecraft/item/Item;<init>(Lnet/minecraft/item/Item$Settings;)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 official a
Lcjm;a(Lcpv;IIBZZ)Lcjf;
intermediary method_8005
Lnet/minecraft/class_1806;method_8005(Lnet/minecraft/class_1937;IIBZZ)Lnet/minecraft/class_1799;
named createMap
Lnet/minecraft/item/FilledMapItem;createMap(Lnet/minecraft/world/World;IIBZZ)Lnet/minecraft/item/ItemStack;
-
getMapState
- Mappings:
Namespace Name Mixin selector official a
Lcjm;a(Ljava/lang/Integer;Lcpv;)Lebw;
intermediary method_7997
Lnet/minecraft/class_1806;method_7997(Ljava/lang/Integer;Lnet/minecraft/class_1937;)Lnet/minecraft/class_22;
named getMapState
Lnet/minecraft/item/FilledMapItem;getMapState(Ljava/lang/Integer;Lnet/minecraft/world/World;)Lnet/minecraft/item/map/MapState;
-
getMapState
- Mappings:
Namespace Name Mixin selector official a
Lcjm;a(Lcjf;Lcpv;)Lebw;
intermediary method_8001
Lnet/minecraft/class_1806;method_8001(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;)Lnet/minecraft/class_22;
named getMapState
Lnet/minecraft/item/FilledMapItem;getMapState(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;)Lnet/minecraft/item/map/MapState;
-
getMapId
- Mappings:
Namespace Name Mixin selector official d
Lcjm;d(Lcjf;)Ljava/lang/Integer;
intermediary method_8003
Lnet/minecraft/class_1806;method_8003(Lnet/minecraft/class_1799;)Ljava/lang/Integer;
named getMapId
Lnet/minecraft/item/FilledMapItem;getMapId(Lnet/minecraft/item/ItemStack;)Ljava/lang/Integer;
-
allocateMapId
private static int allocateMapId(World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension) - Mappings:
Namespace Name Mixin selector official a
Lcjm;a(Lcpv;IIIZZLaev;)I
intermediary method_32349
Lnet/minecraft/class_1806;method_32349(Lnet/minecraft/class_1937;IIIZZLnet/minecraft/class_5321;)I
named allocateMapId
Lnet/minecraft/item/FilledMapItem;allocateMapId(Lnet/minecraft/world/World;IIIZZLnet/minecraft/registry/RegistryKey;)I
-
setMapId
- Mappings:
Namespace Name Mixin selector official a
Lcjm;a(Lcjf;I)V
intermediary method_32348
Lnet/minecraft/class_1806;method_32348(Lnet/minecraft/class_1799;I)V
named setMapId
Lnet/minecraft/item/FilledMapItem;setMapId(Lnet/minecraft/item/ItemStack;I)V
-
createMapState
private static void createMapState(ItemStack stack, World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension) - Mappings:
Namespace Name Mixin selector official a
Lcjm;a(Lcjf;Lcpv;IIIZZLaev;)V
intermediary method_8000
Lnet/minecraft/class_1806;method_8000(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;IIIZZLnet/minecraft/class_5321;)V
named createMapState
Lnet/minecraft/item/FilledMapItem;createMapState(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;IIIZZLnet/minecraft/registry/RegistryKey;)V
-
getMapName
- Mappings:
Namespace Name Mixin selector official a
Lcjm;a(I)Ljava/lang/String;
intermediary method_17440
Lnet/minecraft/class_1806;method_17440(I)Ljava/lang/String;
named getMapName
Lnet/minecraft/item/FilledMapItem;getMapName(I)Ljava/lang/String;
-
updateColors
- Mappings:
Namespace Name Mixin selector official a
Lcjm;a(Lcpv;Lbiq;Lebw;)V
intermediary method_7998
Lnet/minecraft/class_1806;method_7998(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;Lnet/minecraft/class_22;)V
named updateColors
Lnet/minecraft/item/FilledMapItem;updateColors(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;Lnet/minecraft/item/map/MapState;)V
-
getFluidStateIfVisible
- Mappings:
Namespace Name Mixin selector official a
Lcjm;a(Lcpv;Ldfj;Lgw;)Ldfj;
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;
named getFluidStateIfVisible
Lnet/minecraft/item/FilledMapItem;getFluidStateIfVisible(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
isAquaticBiome
private static boolean isAquaticBiome(boolean[] biomes, int x, int z) - Mappings:
Namespace Name Mixin selector official a
Lcjm;a([ZII)Z
intermediary method_38988
Lnet/minecraft/class_1806;method_38988([ZII)Z
named isAquaticBiome
Lnet/minecraft/item/FilledMapItem;isAquaticBiome([ZII)Z
-
fillExplorationMap
- Mappings:
Namespace Name Mixin selector official a
Lcjm;a(Lakq;Lcjf;)V
intermediary method_8002
Lnet/minecraft/class_1806;method_8002(Lnet/minecraft/class_3218;Lnet/minecraft/class_1799;)V
named fillExplorationMap
Lnet/minecraft/item/FilledMapItem;fillExplorationMap(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/item/ItemStack;)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:
inventoryTick
in 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 official a
Lcja;a(Lcjf;Lcpv;Lbiq;IZ)V
intermediary method_7888
Lnet/minecraft/class_1792;method_7888(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;IZ)V
named inventoryTick
Lnet/minecraft/item/Item;inventoryTick(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;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:
createSyncPacket
in classNetworkSyncedItem
- Mappings:
Namespace Name Mixin selector official a
Lchk;a(Lcjf;Lcpv;Lcbu;)Lvd;
intermediary method_7757
Lnet/minecraft/class_1762;method_7757(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;)Lnet/minecraft/class_2596;
named createSyncPacket
Lnet/minecraft/item/NetworkSyncedItem;createSyncPacket(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/network/packet/Packet;
-
onCraft
Called when a player acquires the item by crafting, smelting, smithing, etc.- Overrides:
onCraft
in classItem
- Mappings:
Namespace Name Mixin selector official b
Lcja;b(Lcjf;Lcpv;Lcbu;)V
intermediary method_7843
Lnet/minecraft/class_1792;method_7843(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;)V
named onCraft
Lnet/minecraft/item/Item;onCraft(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)V
-
scale
- Mappings:
Namespace Name Mixin selector official a
Lcjm;a(Lcjf;Lcpv;I)V
intermediary method_7996
Lnet/minecraft/class_1806;method_7996(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;I)V
named scale
Lnet/minecraft/item/FilledMapItem;scale(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;I)V
-
copyMap
- Mappings:
Namespace Name Mixin selector official a
Lcjm;a(Lcpv;Lcjf;)V
intermediary method_17442
Lnet/minecraft/class_1806;method_17442(Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;)V
named copyMap
Lnet/minecraft/item/FilledMapItem;copyMap(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;)V
-
appendTooltip
public void appendTooltip(ItemStack stack, @Nullable @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item. Subclasses can override this and add custom tooltips totooltip
list.- Overrides:
appendTooltip
in classItem
- Parameters:
tooltip
- the list of tooltips to show- Mappings:
Namespace Name Mixin selector official a
Lcja;a(Lcjf;Lcpv;Ljava/util/List;Lckw;)V
intermediary method_7851
Lnet/minecraft/class_1792;method_7851(Lnet/minecraft/class_1799;Lnet/minecraft/class_1937;Ljava/util/List;Lnet/minecraft/class_1836;)V
named appendTooltip
Lnet/minecraft/item/Item;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Ljava/util/List;Lnet/minecraft/client/item/TooltipContext;)V
-
getIdText
- Mappings:
Namespace Name Mixin selector official c
Lcjm;c(I)Ltl;
intermediary method_53836
Lnet/minecraft/class_1806;method_53836(I)Lnet/minecraft/class_2561;
named getIdText
Lnet/minecraft/item/FilledMapItem;getIdText(I)Lnet/minecraft/text/Text;
-
getIdText
- Mappings:
Namespace Name Mixin selector official k
Lcjm;k(Lcjf;)Ltl;
intermediary method_53837
Lnet/minecraft/class_1806;method_53837(Lnet/minecraft/class_1799;)Lnet/minecraft/class_2561;
named getIdText
Lnet/minecraft/item/FilledMapItem;getIdText(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/text/Text;
-
getMapColor
- Mappings:
Namespace Name Mixin selector official o
Lcjm;o(Lcjf;)I
intermediary method_7999
Lnet/minecraft/class_1806;method_7999(Lnet/minecraft/class_1799;)I
named getMapColor
Lnet/minecraft/item/FilledMapItem;getMapColor(Lnet/minecraft/item/ItemStack;)I
-
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 official a
Lcja;a(Lclp;)Lbgy;
intermediary method_7884
Lnet/minecraft/class_1792;method_7884(Lnet/minecraft/class_1838;)Lnet/minecraft/class_1269;
named useOnBlock
Lnet/minecraft/item/Item;useOnBlock(Lnet/minecraft/item/ItemUsageContext;)Lnet/minecraft/util/ActionResult;
-