Class ItemArtifact
java.lang.Object
net.minecraft.world.item.Item
at.petrak.hexcasting.common.items.magic.ItemMediaHolder
at.petrak.hexcasting.common.items.magic.ItemPackagedHex
at.petrak.hexcasting.common.items.magic.ItemArtifact
- All Implemented Interfaces:
HexHolderItem,MediaHolderItem,VariantItem,net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike
-
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 at.petrak.hexcasting.common.items.magic.ItemPackagedHex
HAS_PATTERNS_PRED, TAG_PIGMENT, TAG_PROGRAMFields inherited from class at.petrak.hexcasting.common.items.magic.ItemMediaHolder
HEX_COLOR, TAG_MAX_MEDIA, TAG_MEDIAFields 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_SIZEFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIESFields inherited from interface at.petrak.hexcasting.api.item.VariantItem
TAG_VARIANT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanDrawMediaFromInventory(net.minecraft.world.item.ItemStack stack) intcooldown()intMethods inherited from class at.petrak.hexcasting.common.items.magic.ItemPackagedHex
canProvideMedia, canRecharge, clearHex, getHex, getPigment, getUseAnimation, hasHex, use, writeHexMethods inherited from class at.petrak.hexcasting.common.items.magic.ItemMediaHolder
appendHoverText, canBeDepleted, getBarColor, getBarWidth, getMaxMedia, getMedia, isBarVisible, setMedia, withMediaMethods inherited from class net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTooltipImage, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isValidRepairItem, mineBlock, onCraftedBy, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, releaseUsing, requiredFeatures, shouldOverrideMultiplayerNbt, toString, 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 at.petrak.hexcasting.api.item.MediaHolderItem
getConsumptionPriority, getMaxMedia, getMedia, getMediaFullness, insertMedia, setMedia, withdrawMediaMethods inherited from interface at.petrak.hexcasting.api.item.VariantItem
clampVariant, getVariant, setVariant
-
Constructor Details
-
ItemArtifact
public ItemArtifact(net.minecraft.world.item.Item.Properties pProperties)
-
-
Method Details
-
canDrawMediaFromInventory
public boolean canDrawMediaFromInventory(net.minecraft.world.item.ItemStack stack) - Specified by:
canDrawMediaFromInventoryin interfaceHexHolderItem
-
breakAfterDepletion
public boolean breakAfterDepletion()- Specified by:
breakAfterDepletionin classItemPackagedHex
-
cooldown
public int cooldown()- Specified by:
cooldownin classItemPackagedHex
-
numVariants
public int numVariants()- Specified by:
numVariantsin interfaceVariantItem
-