java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.TieredItem
net.minecraft.world.item.SwordItem
committee.nova.mods.avaritia.common.item.tools.infinity.InfinitySwordItem
所有已实现的接口:
InitEnchantItem, ISwitchable, IToolTransform, IUndamageable, net.minecraft.world.flag.FeatureElement, net.minecraft.world.item.Vanishable, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeItem

public class InfinitySwordItem extends net.minecraft.world.item.SwordItem implements InitEnchantItem, ISwitchable, IUndamageable, IToolTransform
Description:
  • 嵌套类概要

    从类继承的嵌套类/接口 net.minecraft.world.item.Item

    net.minecraft.world.item.Item.Properties
  • 字段概要

    从类继承的字段 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(@NotNull net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.world.level.Level level, List<net.minecraft.network.chat.Component> tooltipComponents, @NotNull net.minecraft.world.item.TooltipFlag isAdvanced)
     
    @Nullable net.minecraft.world.entity.Entity
    createEntity(net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity location, net.minecraft.world.item.ItemStack stack)
     
    protected void
    createWitherRose(net.minecraft.world.entity.LivingEntity victim, @Nullable net.minecraft.world.entity.LivingEntity pEntitySource)
     
    void
    die(net.minecraft.world.entity.LivingEntity victim, net.minecraft.world.damagesource.DamageSource pDamageSource)
     
    int
    getEnchantmentValue(net.minecraft.world.item.ItemStack stack)
     
    int
    getInitEnchantLevel(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.enchantment.Enchantment enchantment)
     
    boolean
    hasCustomEntity(net.minecraft.world.item.ItemStack stack)
     
    boolean
    hurt(net.minecraft.world.entity.LivingEntity victim, net.minecraft.world.damagesource.DamageSource pSource, float pAmount)
     
    boolean
    isDamageable(net.minecraft.world.item.ItemStack stack)
     
    boolean
    isFoil(@NotNull net.minecraft.world.item.ItemStack pStack)
     
    boolean
    onLeftClickEntity(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.Entity entity)
     
    @NotNull net.minecraft.world.InteractionResultHolder<net.minecraft.world.item.ItemStack>
    use(@NotNull net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player, @NotNull net.minecraft.world.InteractionHand hand)
     

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

    canAttackBlock, canPerformAction, getDamage, getDefaultAttributeModifiers, getDestroySpeed, hurtEnemy, isCorrectToolForDrops, mineBlock

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

    getEnchantmentValue, getTier, isValidRepairItem

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

    asItem, builtInRegistryHolder, byBlock, byId, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDrinkingSound, getEatingSound, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getRenderPropertiesInternal, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isEdible, isEnchantable, isFireResistant, isRepairable, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, useOn, 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, canWalkOnPowderedSnow, damageItem, doesSneakBypassUse, elytraFlightTick, getAllEnchantments, getArmorTexture, getAttributeModifiers, getBurnTime, getCraftingRemainingItem, getCreatorModId, getDamage, getDefaultTooltipHideFlags, getEnchantmentLevel, getEntityLifespan, getEquipmentSlot, getFoodProperties, getHighlightTip, getMaxDamage, getMaxStackSize, getShareTag, getSweepHitBox, getXpRepairRatio, hasCraftingRemainingItem, initCapabilities, isBookEnchantable, isCorrectToolForDrops, isDamaged, isEnderMask, isNotReplaceableByPickAction, isPiglinCurrency, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation

    从接口继承的方法 committee.nova.mods.avaritia.api.iface.ISwitchable

    cycleMode, getCurrentModeIndex, isActive, setMode, switchMode, switchToMode

    从接口继承的方法 committee.nova.mods.avaritia.api.iface.IToolTransform

    getToolTransform
  • 构造器详细资料

    • InfinitySwordItem

      public InfinitySwordItem()
  • 方法详细资料

    • onLeftClickEntity

      public boolean onLeftClickEntity(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.Entity entity)
      指定者:
      onLeftClickEntity 在接口中 net.minecraftforge.common.extensions.IForgeItem
    • hurt

      public boolean hurt(net.minecraft.world.entity.LivingEntity victim, net.minecraft.world.damagesource.DamageSource pSource, float pAmount)
    • die

      public void die(net.minecraft.world.entity.LivingEntity victim, net.minecraft.world.damagesource.DamageSource pDamageSource)
    • createWitherRose

      protected void createWitherRose(net.minecraft.world.entity.LivingEntity victim, @Nullable @Nullable net.minecraft.world.entity.LivingEntity pEntitySource)
    • use

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

      public boolean isDamageable(net.minecraft.world.item.ItemStack stack)
      指定者:
      isDamageable 在接口中 net.minecraftforge.common.extensions.IForgeItem
    • getEnchantmentValue

      public int getEnchantmentValue(net.minecraft.world.item.ItemStack stack)
      指定者:
      getEnchantmentValue 在接口中 net.minecraftforge.common.extensions.IForgeItem
    • isFoil

      public boolean isFoil(@NotNull @NotNull net.minecraft.world.item.ItemStack pStack)
      覆盖:
      isFoil 在类中 net.minecraft.world.item.Item
    • hasCustomEntity

      public boolean hasCustomEntity(net.minecraft.world.item.ItemStack stack)
      指定者:
      hasCustomEntity 在接口中 net.minecraftforge.common.extensions.IForgeItem
    • createEntity

      @Nullable public @Nullable net.minecraft.world.entity.Entity createEntity(net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity location, net.minecraft.world.item.ItemStack stack)
      指定者:
      createEntity 在接口中 net.minecraftforge.common.extensions.IForgeItem
    • getInitEnchantLevel

      public int getInitEnchantLevel(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.enchantment.Enchantment enchantment)
      指定者:
      getInitEnchantLevel 在接口中 InitEnchantItem
    • appendHoverText

      public void appendHoverText(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, @Nullable @Nullable net.minecraft.world.level.Level level, List<net.minecraft.network.chat.Component> tooltipComponents, @NotNull @NotNull net.minecraft.world.item.TooltipFlag isAdvanced)
      覆盖:
      appendHoverText 在类中 net.minecraft.world.item.Item