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 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_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH, STREAM_CODEC
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_334384_, 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_) static MapItemSavedData
getSavedData
(ItemStack p_42854_, Level p_42855_) static MapItemSavedData
getSavedData
(MapId p_332257_, Level p_151130_) static Component
getTooltipForId
(MapId p_327759_) 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, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, 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.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, doesSneakBypassUse, elytraFlightTick, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDefaultTooltipHideFlags, getEnchantmentValue, getEntityLifespan, getEquipmentSlot, getHighlightTip, getSweepHitBox, hasCraftingRemainingItem, hasCustomEntity, isBookEnchantable, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, 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
-
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_334384_, List<Component> p_42882_, TooltipFlag p_42883_) - Overrides:
appendHoverText
in classItem
-
getTooltipForId
-
useOn
-