Class SpectralSwordItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.TieredItem
net.minecraft.world.item.SwordItem
com.binaris.wizardry.content.item.SpectralSwordItem
All Implemented Interfaces:
net.fabricmc.fabric.api.item.v1.FabricItem, net.minecraft.world.flag.FeatureElement, net.minecraft.world.item.Vanishable, net.minecraft.world.level.ItemLike

public class SpectralSwordItem extends net.minecraft.world.item.SwordItem
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.item.Item

    net.minecraft.world.item.Item.Properties
  • Field Summary

    Fields inherited from class net.minecraft.world.item.Item

    BASE_ATTACK_DAMAGE_UUID, BASE_ATTACK_SPEED_UUID, BY_BLOCK, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    boolean
    isEnchantable(@NotNull net.minecraft.world.item.ItemStack stack)
     
    boolean
    isValidRepairItem(@NotNull net.minecraft.world.item.ItemStack stack, @NotNull net.minecraft.world.item.ItemStack stack1)
     

    Methods inherited from class net.minecraft.world.item.SwordItem

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

    Methods inherited from class net.minecraft.world.item.TieredItem

    getTier

    Methods inherited from class net.minecraft.world.item.Item

    appendHoverText, 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, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isEdible, isFireResistant, isFoil, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, use, useOn, useOnRelease, verifyTagAfterLoad

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.fabricmc.fabric.api.item.v1.FabricItem

    allowContinuingBlockBreaking, allowNbtUpdateAnimation, getAttributeModifiers, getRecipeRemainder, isSuitableFor

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled
  • Constructor Details

    • SpectralSwordItem

      public SpectralSwordItem()
  • Method Details

    • isValidRepairItem

      public boolean isValidRepairItem(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, @NotNull @NotNull net.minecraft.world.item.ItemStack stack1)
      Overrides:
      isValidRepairItem in class net.minecraft.world.item.TieredItem
    • getEnchantmentValue

      public int getEnchantmentValue()
      Overrides:
      getEnchantmentValue in class net.minecraft.world.item.TieredItem
    • isEnchantable

      public boolean isEnchantable(@NotNull @NotNull net.minecraft.world.item.ItemStack stack)
      Overrides:
      isEnchantable in class net.minecraft.world.item.Item