Package net.minecraft.world.item
Class MapItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ComplexItem
net.minecraft.world.item.MapItem
- All Implemented Interfaces:
- FeatureElement,- ItemLike,- IForgeItem
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.item.ItemItem.Properties
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intstatic final intstatic final intstatic final Stringstatic final Stringprivate static final StringFields inherited from class net.minecraft.world.item.ItemBASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidappendHoverText(ItemStack p_42880_, Level p_42881_, List<Component> p_42882_, TooltipFlag p_42883_) static ItemStackcreate(Level p_42887_, int p_42888_, int p_42889_, byte p_42890_, boolean p_42891_, boolean p_42892_) private static voidcreateAndStoreSavedData(ItemStack p_151112_, Level p_151113_, int p_151114_, int p_151115_, int p_151116_, boolean p_151117_, boolean p_151118_, ResourceKey<Level> p_151119_) private static intcreateNewSavedData(Level p_151121_, int p_151122_, int p_151123_, int p_151124_, boolean p_151125_, boolean p_151126_, ResourceKey<Level> p_151127_) static intprivate BlockStategetCorrectStateForFluidBlock(Level p_42901_, BlockState p_42902_, BlockPos p_42903_) protected MapItemSavedDatagetCustomMapData(ItemStack p_42910_, Level p_42911_) static Integerstatic MapItemSavedDatagetSavedData(Integer p_151129_, Level p_151130_) static MapItemSavedDatagetSavedData(ItemStack p_42854_, Level p_42855_) private static ComponentgetTooltipForId(int p_301261_) static ComponentgetTooltipForId(ItemStack p_299069_) Packet<?>getUpdatePacket(ItemStack p_42876_, Level p_42877_, Player p_42878_) voidinventoryTick(ItemStack p_42870_, Level p_42871_, Entity p_42872_, int p_42873_, boolean p_42874_) private static booleanisBiomeWatery(boolean[] p_212252_, int p_212253_, int p_212254_) static voidstatic StringmakeKey(int p_42849_) voidonCraftedBy(ItemStack p_42913_, Level p_42914_, Player p_42915_) static voidrenderBiomePreviewMap(ServerLevel p_42851_, ItemStack p_42852_) private static voidprivate static voidstoreMapData(ItemStack p_151109_, int p_151110_) voidupdate(Level p_42894_, Entity p_42895_, MapItemSavedData p_42896_) useOn(UseOnContext p_42885_) Methods inherited from class net.minecraft.world.item.ComplexItemisComplexMethods inherited from class net.minecraft.world.item.ItemasItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, isBarVisible, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, use, useOnRelease, verifyTagAfterLoadMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.minecraftforge.common.extensions.IForgeItemcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, initCapabilities, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
- 
Field Details- 
IMAGE_WIDTHpublic static final int IMAGE_WIDTH- See Also:
 
- 
IMAGE_HEIGHTpublic static final int IMAGE_HEIGHT- See Also:
 
- 
DEFAULT_MAP_COLORprivate static final int DEFAULT_MAP_COLOR- See Also:
 
- 
TAG_MAP- See Also:
 
- 
MAP_SCALE_TAG- See Also:
 
- 
MAP_LOCK_TAG- See Also:
 
 
- 
- 
Constructor Details- 
MapItem
 
- 
- 
Method Details- 
create
- 
getSavedData
- 
getSavedData
- 
getCustomMapData
- 
getMapId
- 
createNewSavedDataprivate static int createNewSavedData(Level p_151121_, int p_151122_, int p_151123_, int p_151124_, boolean p_151125_, boolean p_151126_, ResourceKey<Level> p_151127_) 
- 
storeMapData
- 
createAndStoreSavedDataprivate static void createAndStoreSavedData(ItemStack p_151112_, Level p_151113_, int p_151114_, int p_151115_, int p_151116_, boolean p_151117_, boolean p_151118_, ResourceKey<Level> p_151119_) 
- 
makeKey
- 
update
- 
getCorrectStateForFluidBlockprivate BlockState getCorrectStateForFluidBlock(Level p_42901_, BlockState p_42902_, BlockPos p_42903_) 
- 
isBiomeWateryprivate static boolean isBiomeWatery(boolean[] p_212252_, int p_212253_, int p_212254_) 
- 
renderBiomePreviewMap
- 
inventoryTickpublic void inventoryTick(ItemStack p_42870_, Level p_42871_, Entity p_42872_, int p_42873_, boolean p_42874_) - Overrides:
- inventoryTickin class- Item
 
- 
getUpdatePacket- Overrides:
- getUpdatePacketin class- ComplexItem
 
- 
onCraftedBy- Overrides:
- onCraftedByin class- Item
 
- 
scaleMap
- 
lockMap
- 
appendHoverTextpublic void appendHoverText(ItemStack p_42880_, @Nullable Level p_42881_, List<Component> p_42882_, TooltipFlag p_42883_) - Overrides:
- appendHoverTextin class- Item
 
- 
getTooltipForId
- 
getTooltipForId
- 
getColor
- 
useOn
 
-