类 MapItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ComplexItem
net.minecraft.world.item.MapItem
- 所有已实现的接口:
FeatureElement
,ItemLike
,IForgeItem
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.item.Item
Item.Properties
-
字段概要
字段修饰符和类型字段说明private static final int
static final int
static final int
static final String
static final String
private static final String
从类继承的字段 net.minecraft.world.item.Item
BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE
从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
appendHoverText
(ItemStack pStack, Level pLevel, List<Component> pTooltip, TooltipFlag pFlag) static ItemStack
create
(Level pLevel, int pLevelX, int pLevelZ, byte pScale, boolean pTrackingPosition, boolean pUnlimitedTracking) private static void
createAndStoreSavedData
(ItemStack pStack, Level pLevel, int pX, int pZ, int pScale, boolean pTrackingPosition, boolean pUnlimitedTracking, ResourceKey<Level> pDimension) private static int
createNewSavedData
(Level pLevel, int pX, int pZ, int pScale, boolean pTrackingPosition, boolean pUnlimitedTracking, ResourceKey<Level> pDimension) static int
private BlockState
getCorrectStateForFluidBlock
(Level pLevel, BlockState pState, BlockPos pPos) protected MapItemSavedData
getCustomMapData
(ItemStack p_42910_, Level p_42911_) static Integer
static MapItemSavedData
getSavedData
(Integer pMapId, Level pLevel) static MapItemSavedData
getSavedData
(ItemStack pStack, Level pLevel) Packet<?>
getUpdatePacket
(ItemStack pStack, Level pLevel, Player pPlayer) void
inventoryTick
(ItemStack pStack, Level pLevel, Entity pEntity, int pItemSlot, boolean pIsSelected) private static boolean
isBiomeWatery
(boolean[] pWateryMap, int pXSample, int pZSample) static void
static String
makeKey
(int pMapId) void
onCraftedBy
(ItemStack pStack, Level pLevel, Player pPlayer) static void
renderBiomePreviewMap
(ServerLevel pServerLevel, ItemStack pStack) private static void
private static void
storeMapData
(ItemStack pStack, int pMapId) void
update
(Level pLevel, Entity pViewer, MapItemSavedData pData) useOn
(UseOnContext pContext) 从类继承的方法 net.minecraft.world.item.ComplexItem
isComplex
从类继承的方法 net.minecraft.world.item.Item
asItem, 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, verifyTagAfterLoad
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 net.minecraft.world.flag.FeatureElement
isEnabled
从接口继承的方法 net.minecraftforge.common.extensions.IForgeItem
canApplyAtEnchantingTable, 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, onItemUseFirst, onLeftClickEntity, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
-
字段详细资料
-
构造器详细资料
-
MapItem
-
-
方法详细资料
-
create
-
getSavedData
-
getSavedData
-
getCustomMapData
-
getMapId
-
createNewSavedData
private static int createNewSavedData(Level pLevel, int pX, int pZ, int pScale, boolean pTrackingPosition, boolean pUnlimitedTracking, ResourceKey<Level> pDimension) -
storeMapData
-
createAndStoreSavedData
private static void createAndStoreSavedData(ItemStack pStack, Level pLevel, int pX, int pZ, int pScale, boolean pTrackingPosition, boolean pUnlimitedTracking, ResourceKey<Level> pDimension) -
makeKey
-
update
-
getCorrectStateForFluidBlock
-
isBiomeWatery
private static boolean isBiomeWatery(boolean[] pWateryMap, int pXSample, int pZSample) -
renderBiomePreviewMap
-
inventoryTick
public void inventoryTick(ItemStack pStack, Level pLevel, Entity pEntity, int pItemSlot, boolean pIsSelected) - 覆盖:
inventoryTick
在类中Item
-
getUpdatePacket
- 覆盖:
getUpdatePacket
在类中ComplexItem
-
onCraftedBy
- 覆盖:
onCraftedBy
在类中Item
-
scaleMap
-
lockMap
-
appendHoverText
public void appendHoverText(ItemStack pStack, @Nullable Level pLevel, List<Component> pTooltip, TooltipFlag pFlag) - 覆盖:
appendHoverText
在类中Item
-
getColor
-
useOn
-