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
public class FilledMapItem extends NetworkSyncedItem
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM -
Constructor Summary
Constructors Constructor Description FilledMapItem(Item.Settings settings) -
Method Summary
Modifier and Type Method Description voidappendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context)static ItemStackcopyMap(World world, ItemStack stack)static ItemStackcreateMap(World world, int x, int z, byte scale, boolean showIcons, boolean unlimitedTracking)private static MapStatecreateMapState(ItemStack stack, World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension)Packet<?>createSyncPacket(ItemStack stack, World world, PlayerEntity player)static voidfillExplorationMap(ServerWorld serverWorld, ItemStack map)private BlockStategetFluidStateIfVisible(World world, BlockState state, BlockPos pos)static intgetMapColor(ItemStack stack)static intgetMapId(ItemStack stack)static StringgetMapName(int mapId)static MapStategetMapState(ItemStack stack, World world)static MapStategetOrCreateMapState(ItemStack map, World world)private static booleanhasPositiveDepth(Biome[] biomes, int scale, int x, int z)voidinventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected)voidonCraft(ItemStack stack, World world, PlayerEntity player)protected static voidscale(ItemStack map, World world, int amount)voidupdateColors(World world, Entity entity, MapState state)ActionResultuseOnBlock(ItemUsageContext context)Methods inherited from class net.minecraft.item.Item
appendStacks, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasRecipeRemainder, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isUsedOnRelease, onStoppedUsing, postHit, postMine, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, use, useOnEntity
-
Constructor Details
-
Method Details
-
createMap
-
getMapState
-
getOrCreateMapState
-
getMapId
-
createMapState
private static MapState createMapState(ItemStack stack, World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension) -
getMapName
-
updateColors
-
getFluidStateIfVisible
-
hasPositiveDepth
-
fillExplorationMap
-
inventoryTick
- Overrides:
inventoryTickin classItem
-
createSyncPacket
- Overrides:
createSyncPacketin classNetworkSyncedItem
-
onCraft
-
scale
-
copyMap
-
appendTooltip
@Environment(CLIENT) public void appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)- Overrides:
appendTooltipin classItem
-
getMapColor
-
useOnBlock
- Overrides:
useOnBlockin classItem
-