类 EternalPotatoItem
java.lang.Object
net.minecraft.world.item.Item
top.r3944realms.superleadrope.content.item.EternalPotatoItem
- 所有已实现的接口:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike,net.minecraftforge.common.extensions.IForgeItem
public class EternalPotatoItem
extends net.minecraft.world.item.Item
The type Eternal potato item.
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.item.Item
net.minecraft.world.item.Item.Properties -
字段概要
从类继承的字段 net.minecraft.world.item.Item
BY_BLOCK, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE从接口继承的字段 net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
构造器概要
构造器构造器说明EternalPotatoItem(net.minecraft.world.item.Item.Properties properties) Instantiates a new Eternal potato item. -
方法概要
修饰符和类型方法说明voidappendHoverText(@NotNull net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, @NotNull List<net.minecraft.network.chat.Component> tooltip, @NotNull net.minecraft.world.item.TooltipFlag flag) booleanbooleancanBeHurtBy(@NotNull net.minecraft.world.damagesource.DamageSource source) booleanstatic voidensureItemInInventory(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) Ensure item in inventory.@NotNull net.minecraft.world.item.ItemStackfinishUsingItem(@NotNull net.minecraft.world.item.ItemStack stack, @NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.entity.LivingEntity entity) static StringgetDescKey(String name) Gets desc key.static StringGets msg key.static UUIDgetOrCreateItemUUID(net.minecraft.world.item.ItemStack stack) 获取或生成 ItemStack 的唯一 UUID @param stack the stack@NotNull net.minecraft.world.item.UseAnimgetUseAnimation(@NotNull net.minecraft.world.item.ItemStack stack) intgetUseDuration(@NotNull net.minecraft.world.item.ItemStack stack) net.minecraftforge.common.capabilities.ICapabilityProviderinitCapabilities(net.minecraft.world.item.ItemStack stack, net.minecraft.nbt.CompoundTag nbt) voidinventoryTick(@NotNull net.minecraft.world.item.ItemStack stack, @NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.entity.Entity entity, int slot, boolean selected) booleanisFoil(@NotNull net.minecraft.world.item.ItemStack stack) @NotNull net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>use(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand) @NotNull net.minecraft.world.InteractionResultuseOn(net.minecraft.world.item.context.UseOnContext context) 使用契约物品完成义务从类继承的方法 net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getRarity, getRenderPropertiesInternal, getTooltipImage, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, useOnRelease, verifyTagAfterLoad从接口继承的方法 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, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
-
构造器详细资料
-
EternalPotatoItem
public EternalPotatoItem(net.minecraft.world.item.Item.Properties properties) Instantiates a new Eternal potato item.- 参数:
properties- the properties
-
-
方法详细资料
-
initCapabilities
public net.minecraftforge.common.capabilities.ICapabilityProvider initCapabilities(net.minecraft.world.item.ItemStack stack, net.minecraft.nbt.CompoundTag nbt) -
getOrCreateItemUUID
获取或生成 ItemStack 的唯一 UUID @param stack the stack- 参数:
stack- the stack- 返回:
- the or create item uuid
-
useOn
@NotNull public @NotNull net.minecraft.world.InteractionResult useOn(net.minecraft.world.item.context.UseOnContext context) 使用契约物品完成义务- 覆盖:
useOn在类中net.minecraft.world.item.Item
-
appendHoverText
public void appendHoverText(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, @NotNull @NotNull List<net.minecraft.network.chat.Component> tooltip, @NotNull @NotNull net.minecraft.world.item.TooltipFlag flag) - 覆盖:
appendHoverText在类中net.minecraft.world.item.Item
-
use
@NotNull public @NotNull net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.entity.player.Player player, @NotNull @NotNull net.minecraft.world.InteractionHand hand) - 覆盖:
use在类中net.minecraft.world.item.Item
-
getUseDuration
public int getUseDuration(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - 覆盖:
getUseDuration在类中net.minecraft.world.item.Item
-
getUseAnimation
@NotNull public @NotNull net.minecraft.world.item.UseAnim getUseAnimation(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - 覆盖:
getUseAnimation在类中net.minecraft.world.item.Item
-
finishUsingItem
@NotNull public @NotNull net.minecraft.world.item.ItemStack finishUsingItem(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, @NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.entity.LivingEntity entity) - 覆盖:
finishUsingItem在类中net.minecraft.world.item.Item
-
getDescKey
Gets desc key.- 参数:
name- the name- 返回:
- the desc key
-
getMsgKey
Gets msg key.- 参数:
name- the name- 返回:
- the msg key
-
canBeHurtBy
public boolean canBeHurtBy(@NotNull @NotNull net.minecraft.world.damagesource.DamageSource source) - 覆盖:
canBeHurtBy在类中net.minecraft.world.item.Item
-
canFitInsideContainerItems
public boolean canFitInsideContainerItems()- 覆盖:
canFitInsideContainerItems在类中net.minecraft.world.item.Item
-
isFoil
public boolean isFoil(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - 覆盖:
isFoil在类中net.minecraft.world.item.Item
-
inventoryTick
public void inventoryTick(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, @NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.entity.Entity entity, int slot, boolean selected) - 覆盖:
inventoryTick在类中net.minecraft.world.item.Item
-
ensureItemInInventory
public static void ensureItemInInventory(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) Ensure item in inventory.- 参数:
player- the playerstack- the stack
-
canBeDepleted
public boolean canBeDepleted()- 覆盖:
canBeDepleted在类中net.minecraft.world.item.Item
-