类 SuperLeadRopeItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.TieredItem
top.r3944realms.superleadrope.content.item.SuperLeadRopeItem
所有已实现的接口:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeItem

public class SuperLeadRopeItem extends net.minecraft.world.item.TieredItem implements net.minecraftforge.common.extensions.IForgeItem
The type Super lead rope 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
  • 构造器概要

    构造器
    构造器
    说明
    SuperLeadRopeItem(@NotNull net.minecraft.world.item.Item.Properties pProperties)
    Instantiates a new Super lead rope item.
  • 方法概要

    修饰符和类型
    方法
    说明
    static boolean
    bindToBlock(@NotNull net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack leashStack, boolean shouldBindSelf)
    右键蹲下绑定到支持方块上
    static boolean
    bindToBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack leashStack, boolean shouldBindSelf)
    右键蹲下绑定到支持方块上
    static boolean
    bindToEntity(net.minecraft.world.entity.Entity newHolder, net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level)
    右键蹲下绑定到另一实体上
    static boolean
    bindToEntity(net.minecraft.world.entity.Entity newHolder, net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos)
    右键蹲下绑定到另一实体上
    static boolean
    canUse(@NotNull net.minecraft.world.item.ItemStack itemStack)
    Can use boolean.
    @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 livingEntity)
     
    static float
    getChargeProgress(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity entity)
    获取当前蓄力进度(用于客户端渲染)
    static int
    getRingTossEnchantmentLevel(net.minecraft.world.item.ItemStack stack)
    Gets ring toss enchantment level.
    @NotNull net.minecraft.world.item.UseAnim
    getUseAnimation(@NotNull net.minecraft.world.item.ItemStack stack)
     
    int
    getUseDuration(@NotNull net.minecraft.world.item.ItemStack stack)
     
    static boolean
    hasPrisonerCurse(net.minecraft.world.item.ItemStack stack)
    Has prisoner curse boolean.
    void
    onUseTick(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.entity.LivingEntity livingEntity, @NotNull net.minecraft.world.item.ItemStack stack, int remainingUseDuration)
     
    void
    releaseUsing(@NotNull net.minecraft.world.item.ItemStack stack, @NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.entity.LivingEntity livingEntity, int timeCharged)
     
    @NotNull net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>
    use(@NotNull net.minecraft.world.level.Level pLevel, @NotNull net.minecraft.world.entity.player.Player pPlayer, @NotNull net.minecraft.world.InteractionHand pUsedHand)
     
    @NotNull net.minecraft.world.InteractionResult
    useOn(@NotNull net.minecraft.world.item.context.UseOnContext context)
     

    从类继承的方法 net.minecraft.world.item.TieredItem

    getEnchantmentValue, getTier, isValidRepairItem

    从类继承的方法 net.minecraft.world.item.Item

    appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getRarity, getRenderPropertiesInternal, getTooltipImage, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, mineBlock, onCraftedBy, onDestroyed, overrideOtherStackedOnMe, overrideStackedOnOther, 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, initCapabilities, isBookEnchantable, isCorrectToolForDrops, isDamageable, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, isRepairable, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
  • 构造器详细资料

    • SuperLeadRopeItem

      public SuperLeadRopeItem(@NotNull @NotNull net.minecraft.world.item.Item.Properties pProperties)
      Instantiates a new Super lead rope item.
      参数:
      pProperties - the p properties
  • 方法详细资料

    • 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
    • use

      @NotNull public @NotNull net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack> use(@NotNull @NotNull net.minecraft.world.level.Level pLevel, @NotNull @NotNull net.minecraft.world.entity.player.Player pPlayer, @NotNull @NotNull net.minecraft.world.InteractionHand pUsedHand)
      覆盖:
      use 在类中 net.minecraft.world.item.Item
    • getRingTossEnchantmentLevel

      public static int getRingTossEnchantmentLevel(net.minecraft.world.item.ItemStack stack)
      Gets ring toss enchantment level.
      参数:
      stack - the stack
      返回:
      the ring toss enchantment level
    • hasPrisonerCurse

      public static boolean hasPrisonerCurse(net.minecraft.world.item.ItemStack stack)
      Has prisoner curse boolean.
      参数:
      stack - the stack
      返回:
      the boolean
    • onUseTick

      public void onUseTick(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.entity.LivingEntity livingEntity, @NotNull @NotNull net.minecraft.world.item.ItemStack stack, int remainingUseDuration)
      覆盖:
      onUseTick 在类中 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 livingEntity)
      覆盖:
      finishUsingItem 在类中 net.minecraft.world.item.Item
    • releaseUsing

      public void releaseUsing(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, @NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.entity.LivingEntity livingEntity, int timeCharged)
      覆盖:
      releaseUsing 在类中 net.minecraft.world.item.Item
    • getChargeProgress

      public static float getChargeProgress(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.LivingEntity entity)
      获取当前蓄力进度(用于客户端渲染)
      参数:
      stack - the stack
      entity - the entity
      返回:
      the charge progress
    • canUse

      public static boolean canUse(@NotNull @NotNull net.minecraft.world.item.ItemStack itemStack)
      Can use boolean.
      参数:
      itemStack - the item stack
      返回:
      the boolean
    • useOn

      @NotNull public @NotNull net.minecraft.world.InteractionResult useOn(@NotNull @NotNull net.minecraft.world.item.context.UseOnContext context)
      覆盖:
      useOn 在类中 net.minecraft.world.item.Item
    • bindToEntity

      public static boolean bindToEntity(net.minecraft.world.entity.Entity newHolder, net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level)
      右键蹲下绑定到另一实体上
      参数:
      newHolder - 新实体
      player - 明确持有玩家
      level - 维度世界
      返回:
      是否成功 boolean
    • bindToEntity

      public static boolean bindToEntity(net.minecraft.world.entity.Entity newHolder, net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos)
      右键蹲下绑定到另一实体上
      参数:
      newHolder - 新实体
      player - 明确持有玩家
      level - 维度世界
      pos - 坐标(一般是明确持有玩家的位置)
      返回:
      是否成功 boolean
    • bindToBlock

      public static boolean bindToBlock(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, net.minecraft.world.item.ItemStack leashStack, boolean shouldBindSelf)
      右键蹲下绑定到支持方块上
      参数:
      player - 明确持有玩家
      level - 维度世界
      leashStack - 拴绳物品实例
      shouldBindSelf - 是否应该触发拴自己逻辑检查
      返回:
      是否成功 boolean
    • bindToBlock

      public static boolean bindToBlock(@NotNull @NotNull net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, net.minecraft.world.item.ItemStack leashStack, boolean shouldBindSelf)
      右键蹲下绑定到支持方块上
      参数:
      player - 明确持有玩家
      level - 维度世界
      pos - 坐标(一般是明确持有玩家的位置)
      leashStack - 拴绳物品实例
      shouldBindSelf - 是否应该触发拴自己逻辑检查
      返回:
      是否成功 boolean