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
,IItemExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.Item
Item.Properties, Item.TooltipContext
-
Field Summary
Fields inherited from class net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH
Fields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendHoverText
(ItemStack p_42880_, Item.TooltipContext p_339653_, List<Component> p_42882_, TooltipFlag p_42883_) static ItemStack
create
(Level p_42887_, int p_42888_, int p_42889_, byte p_42890_, boolean p_42891_, boolean p_42892_) private static MapId
createNewSavedData
(Level p_151121_, int p_151122_, int p_151123_, int p_151124_, boolean p_151125_, boolean p_151126_, ResourceKey<Level> p_151127_) private BlockState
getCorrectStateForFluidBlock
(Level p_42901_, BlockState p_42902_, BlockPos p_42903_) protected MapItemSavedData
getCustomMapData
(ItemStack p_42854_, Level p_42855_) static MapItemSavedData
getSavedData
(ItemStack p_42854_, Level p_42855_) static MapItemSavedData
getSavedData
(MapId p_324036_, Level p_151130_) static Component
getTooltipForId
(MapId p_323616_) Packet
<?> getUpdatePacket
(ItemStack p_42876_, Level p_42877_, Player p_42878_) void
inventoryTick
(ItemStack p_42870_, Level p_42871_, Entity p_42872_, int p_42873_, boolean p_42874_) private static boolean
isBiomeWatery
(boolean[] p_212252_, int p_212253_, int p_212254_) static void
void
onCraftedPostProcess
(ItemStack p_42913_, Level p_42914_) static void
renderBiomePreviewMap
(ServerLevel p_42851_, ItemStack p_42852_) private static void
void
update
(Level p_42894_, Entity p_42895_, MapItemSavedData p_42896_) useOn
(UseOnContext p_42885_) Methods inherited from class net.minecraft.world.item.ComplexItem
isComplex
Methods inherited from class net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRenderPropertiesInternal, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, isBarVisible, isCorrectToolForDrops, isEnchantable, isFoil, isRepairable, isValidRepairItem, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, toString, use, useOnRelease, verifyComponentsAfterLoad
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabled
Methods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtension
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getEnchantmentLevel, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onAnimalArmorTick, onArmorTick, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
-
Field Details
-
IMAGE_WIDTH
public static final int IMAGE_WIDTH- See Also:
-
IMAGE_HEIGHT
public static final int IMAGE_HEIGHT- See Also:
-
-
Constructor Details
-
MapItem
-
-
Method Details
-
create
-
getSavedData
-
getSavedData
-
getCustomMapData
-
createNewSavedData
private static MapId createNewSavedData(Level p_151121_, int p_151122_, int p_151123_, int p_151124_, boolean p_151125_, boolean p_151126_, ResourceKey<Level> p_151127_) -
update
-
getCorrectStateForFluidBlock
private BlockState getCorrectStateForFluidBlock(Level p_42901_, BlockState p_42902_, BlockPos p_42903_) -
isBiomeWatery
private static boolean isBiomeWatery(boolean[] p_212252_, int p_212253_, int p_212254_) -
renderBiomePreviewMap
-
inventoryTick
public void inventoryTick(ItemStack p_42870_, Level p_42871_, Entity p_42872_, int p_42873_, boolean p_42874_) - Overrides:
inventoryTick
in classItem
-
getUpdatePacket
- Overrides:
getUpdatePacket
in classComplexItem
-
onCraftedPostProcess
- Overrides:
onCraftedPostProcess
in classItem
-
scaleMap
-
lockMap
-
appendHoverText
public void appendHoverText(ItemStack p_42880_, Item.TooltipContext p_339653_, List<Component> p_42882_, TooltipFlag p_42883_) - Overrides:
appendHoverText
in classItem
-
getTooltipForId
-
useOn
-