Class ArtifactItem

java.lang.Object
net.minecraft.world.item.Item
com.binaris.wizardry.api.content.item.ArtifactItem
All Implemented Interfaces:
net.fabricmc.fabric.api.item.v1.FabricItem, net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike
Direct Known Subclasses:
AccessoriesArtifactItem, TrinketsArtifactItem

public class ArtifactItem extends net.minecraft.world.item.Item
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     

    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
    ArtifactItem(net.minecraft.world.item.Rarity rarity)
     
    ArtifactItem(net.minecraft.world.item.Rarity rarity, @Nullable IArtifactEffect effect)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    appendHoverText(@NotNull net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.world.level.Level level, @NotNull List<net.minecraft.network.chat.Component> list, @NotNull net.minecraft.world.item.TooltipFlag isAdvanced)
     
    @Nullable IArtifactEffect
     
    static void
     
    static void
     
    static void
     
    static void
     
    static void
     
    static void
     

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

    asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarColor, getBarWidth, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isValidRepairItem, mineBlock, 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

    • ArtifactItem

      public ArtifactItem(net.minecraft.world.item.Rarity rarity)
    • ArtifactItem

      public ArtifactItem(net.minecraft.world.item.Rarity rarity, @Nullable @Nullable IArtifactEffect effect)
  • Method Details

    • onTick

      public static void onTick(EBLivingTick event)
    • onHurtEntity

      public static void onHurtEntity(EBLivingHurtEvent event)
    • onPlayerHurt

      public static void onPlayerHurt(EBLivingHurtEvent event)
    • onKillEntity

      public static void onKillEntity(EBLivingDeathEvent event)
    • onSpellPreCast

      public static void onSpellPreCast(SpellCastEvent.Pre event)
    • onSpellPostCast

      public static void onSpellPostCast(SpellCastEvent.Post event)
    • appendHoverText

      public void appendHoverText(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, @Nullable @Nullable net.minecraft.world.level.Level level, @NotNull @NotNull List<net.minecraft.network.chat.Component> list, @NotNull @NotNull net.minecraft.world.item.TooltipFlag isAdvanced)
      Overrides:
      appendHoverText in class net.minecraft.world.item.Item
    • getEffect

      @Nullable public @Nullable IArtifactEffect getEffect()