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.TypeNested 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_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIESFields inherited from interface top.theillusivec4.curios.api.type.capability.ICurioItem
defaultInstance -
Constructor Summary
ConstructorsConstructorDescriptionCuriosArtifactItem(net.minecraft.world.item.Rarity rarity, @Nullable IArtifactEffect effect) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEquip(top.theillusivec4.curios.api.SlotContext slotContext, net.minecraft.world.item.ItemStack stack) Determines if the ItemStack can be equipped into a slot.booleancanUnequip(top.theillusivec4.curios.api.SlotContext slotContext, net.minecraft.world.item.ItemStack stack) Determines if the ItemStack can be unequipped from a slot.voidcurioTick(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.voidonEquip(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.voidonUnequip(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, onTickMethods 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, verifyTagAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods 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, writeSyncDataMethods 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.ICurioItemDetermines if the ItemStack can be equipped into a slot.- Specified by:
canEquipin interfacetop.theillusivec4.curios.api.type.capability.ICurioItem- Parameters:
slotContext- Context about the slot that the ItemStack is attempting to equip intostack- 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.ICurioItemDetermines if the ItemStack can be unequipped from a slot.- Specified by:
canUnequipin interfacetop.theillusivec4.curios.api.type.capability.ICurioItem- Parameters:
slotContext- Context about the slot that the ItemStack is attempting to unequip fromstack- 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.ICurioItemCalled when the ItemStack is equipped into a slot or its data changes.- Specified by:
onEquipin interfacetop.theillusivec4.curios.api.type.capability.ICurioItem- Parameters:
slotContext- Context about the slot that the ItemStack was just unequipped fromprevStack- The previous ItemStack in the slotstack- 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.ICurioItemCalled when the ItemStack is unequipped from a slot or its data changes.- Specified by:
onUnequipin interfacetop.theillusivec4.curios.api.type.capability.ICurioItem- Parameters:
slotContext- Context about the slot that the ItemStack was just unequipped fromnewStack- The new ItemStack in the slotstack- 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.ICurioItemCalled every tick on both client and server while the ItemStack is equipped.- Specified by:
curioTickin interfacetop.theillusivec4.curios.api.type.capability.ICurioItem- Parameters:
slotContext- The context for the slot that the ItemStack is instack- The ItemStack in question
-