类 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.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    appendHoverText(@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)
     
    boolean
     
    boolean
    canBeHurtBy(@NotNull net.minecraft.world.damagesource.DamageSource source)
     
    boolean
     
    static void
    ensureItemInInventory(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
    Ensure item in inventory.
    @NotNull net.minecraft.world.item.ItemStack
    finishUsingItem(@NotNull net.minecraft.world.item.ItemStack stack, @NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.entity.LivingEntity entity)
     
    static String
    Gets desc key.
    static String
    Gets msg key.
    static UUID
    getOrCreateItemUUID(net.minecraft.world.item.ItemStack stack)
    获取或生成 ItemStack 的唯一 UUID @param stack the stack
    @NotNull net.minecraft.world.item.UseAnim
    getUseAnimation(@NotNull net.minecraft.world.item.ItemStack stack)
     
    int
    getUseDuration(@NotNull net.minecraft.world.item.ItemStack stack)
     
    net.minecraftforge.common.capabilities.ICapabilityProvider
    initCapabilities(net.minecraft.world.item.ItemStack stack, net.minecraft.nbt.CompoundTag nbt)
     
    void
    inventoryTick(@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)
     
    boolean
    isFoil(@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.InteractionResult
    useOn(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

    从类继承的方法 java.lang.Object

    equals, 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, 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

      public static UUID getOrCreateItemUUID(net.minecraft.world.item.ItemStack stack)
      获取或生成 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

      public static String getDescKey(String name)
      Gets desc key.
      参数:
      name - the name
      返回:
      the desc key
    • getMsgKey

      public static String getMsgKey(String name)
      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 player
      stack - the stack
    • canBeDepleted

      public boolean canBeDepleted()
      覆盖:
      canBeDepleted 在类中 net.minecraft.world.item.Item