Class CuriosArtifactItem

java.lang.Object
net.minecraft.world.item.Item
com.binaris.wizardry.api.content.item.ArtifactItem
com.binaris.wizardry.integration.curios.CuriosArtifactItem
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeItem, top.theillusivec4.curios.api.type.capability.ICurioItem

public class CuriosArtifactItem extends ArtifactItem implements top.theillusivec4.curios.api.type.capability.ICurioItem
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.binaris.wizardry.api.content.item.ArtifactItem

    ArtifactItem.Type

    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, canRepair, EAT_DURATION, MAX_BAR_WIDTH, MAX_STACK_SIZE

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

    FILTERED_REGISTRIES

    Fields inherited from interface top.theillusivec4.curios.api.type.capability.ICurioItem

    defaultInstance
  • Constructor Summary

    Constructors
    Constructor
    Description
    CuriosArtifactItem(net.minecraft.world.item.Rarity rarity, @Nullable IArtifactEffect effect)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canEquip(top.theillusivec4.curios.api.SlotContext slotContext, net.minecraft.world.item.ItemStack stack)
    Determines if the ItemStack can be equipped into a slot.
    boolean
    canUnequip(top.theillusivec4.curios.api.SlotContext slotContext, net.minecraft.world.item.ItemStack stack)
    Determines if the ItemStack can be unequipped from a slot.
    void
    curioTick(top.theillusivec4.curios.api.SlotContext slotContext, net.minecraft.world.item.ItemStack stack)
    Called every tick on both client and server while the ItemStack is equipped.
    void
    onEquip(top.theillusivec4.curios.api.SlotContext slotContext, net.minecraft.world.item.ItemStack prevStack, net.minecraft.world.item.ItemStack stack)
    Called when the ItemStack is equipped into a slot or its data changes.
    void
    onUnequip(top.theillusivec4.curios.api.SlotContext slotContext, net.minecraft.world.item.ItemStack newStack, net.minecraft.world.item.ItemStack stack)
    Called when the ItemStack is unequipped from a slot or its data changes.

    Methods inherited from class com.binaris.wizardry.api.content.item.ArtifactItem

    appendHoverText, getEffect, onHurtEntity, onKillEntity, onPlayerHurt, onSpellPostCast, onSpellPreCast, onTick

    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, getRenderPropertiesInternal, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, initializeClient, interactLivingEntity, inventoryTick, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, 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.minecraft.world.flag.FeatureElement

    isEnabled

    Methods inherited from interface top.theillusivec4.curios.api.type.capability.ICurioItem

    canEquip, canEquipFromUse, canRightClickEquip, canSync, canSync, canUnequip, canWalkOnPowderedSnow, curioAnimate, curioBreak, curioBreak, curioTick, getAttributeModifiers, getAttributeModifiers, getAttributesTooltip, getDropRule, getDropRule, getEquipSound, getFortuneBonus, getFortuneLevel, getLootingBonus, getLootingLevel, getSlotsTooltip, getTagsTooltip, hasCurioCapability, isEnderMask, makesPiglinsNeutral, onEquip, onEquipFromUse, onUnequip, playRightClickEquipSound, readSyncData, readSyncData, showAttributesTooltip, writeSyncData, writeSyncData

    Methods inherited from interface 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, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onInventoryTick, onItemUseFirst, onLeftClickEntity, onStopUsing, readShareTag, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation
  • Constructor Details

    • CuriosArtifactItem

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

    • canEquip

      public boolean canEquip(top.theillusivec4.curios.api.SlotContext slotContext, net.minecraft.world.item.ItemStack stack)
      Description copied from interface: top.theillusivec4.curios.api.type.capability.ICurioItem
      Determines if the ItemStack can be equipped into a slot.
      Specified by:
      canEquip in interface top.theillusivec4.curios.api.type.capability.ICurioItem
      Parameters:
      slotContext - Context about the slot that the ItemStack is attempting to equip into
      stack - The ItemStack in question
      Returns:
      True if the ItemStack can be equipped/put in, false if not
    • canUnequip

      public boolean canUnequip(top.theillusivec4.curios.api.SlotContext slotContext, net.minecraft.world.item.ItemStack stack)
      Description copied from interface: top.theillusivec4.curios.api.type.capability.ICurioItem
      Determines if the ItemStack can be unequipped from a slot.
      Specified by:
      canUnequip in interface top.theillusivec4.curios.api.type.capability.ICurioItem
      Parameters:
      slotContext - Context about the slot that the ItemStack is attempting to unequip from
      stack - The ItemStack in question
      Returns:
      True if the ItemStack can be unequipped/taken out, false if not
    • onEquip

      public void onEquip(top.theillusivec4.curios.api.SlotContext slotContext, net.minecraft.world.item.ItemStack prevStack, net.minecraft.world.item.ItemStack stack)
      Description copied from interface: top.theillusivec4.curios.api.type.capability.ICurioItem
      Called when the ItemStack is equipped into a slot or its data changes.
      Specified by:
      onEquip in interface top.theillusivec4.curios.api.type.capability.ICurioItem
      Parameters:
      slotContext - Context about the slot that the ItemStack was just unequipped from
      prevStack - The previous ItemStack in the slot
      stack - The ItemStack in question
    • onUnequip

      public void onUnequip(top.theillusivec4.curios.api.SlotContext slotContext, net.minecraft.world.item.ItemStack newStack, net.minecraft.world.item.ItemStack stack)
      Description copied from interface: top.theillusivec4.curios.api.type.capability.ICurioItem
      Called when the ItemStack is unequipped from a slot or its data changes.
      Specified by:
      onUnequip in interface top.theillusivec4.curios.api.type.capability.ICurioItem
      Parameters:
      slotContext - Context about the slot that the ItemStack was just unequipped from
      newStack - The new ItemStack in the slot
      stack - The ItemStack in question
    • curioTick

      public void curioTick(top.theillusivec4.curios.api.SlotContext slotContext, net.minecraft.world.item.ItemStack stack)
      Description copied from interface: top.theillusivec4.curios.api.type.capability.ICurioItem
      Called every tick on both client and server while the ItemStack is equipped.
      Specified by:
      curioTick in interface top.theillusivec4.curios.api.type.capability.ICurioItem
      Parameters:
      slotContext - The context for the slot that the ItemStack is in
      stack - The ItemStack in question