Class WizardArmorItem
java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ArmorItem
com.binaris.wizardry.content.item.WizardArmorItem
- All Implemented Interfaces:
IElementValue,IManaStoringItem,IWorkbenchItem,net.fabricmc.fabric.api.item.v1.FabricItem,net.minecraft.world.flag.FeatureElement,net.minecraft.world.item.Equipable,net.minecraft.world.item.Vanishable,net.minecraft.world.level.ItemLike
public class WizardArmorItem
extends net.minecraft.world.item.ArmorItem
implements IManaStoringItem, IWorkbenchItem, IElementValue
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.item.ArmorItem
net.minecraft.world.item.ArmorItem.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.ArmorItem
DISPENSE_ITEM_BEHAVIOR, knockbackResistance, material, typeFields 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_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionWizardArmorItem(WizardArmorType material, net.minecraft.world.item.ArmorItem.Type type, Element element) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendHoverText(@NotNull net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, @NotNull List<net.minecraft.network.chat.Component> tooltip, @NotNull net.minecraft.world.item.TooltipFlag advanced) protected voidapplySpellModifiers(net.minecraft.world.entity.LivingEntity caster, Spell spell, SpellModifiers modifiers) net.minecraft.world.item.ItemStackapplyUpgrade(@Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack upgrade) intgetBarColor(@NotNull net.minecraft.world.item.ItemStack stack) Gets the element associated with this item.intgetMana(net.minecraft.world.item.ItemStack stack) intgetManaCapacity(net.minecraft.world.item.ItemStack stack) @NotNull net.minecraft.network.chat.ComponentgetName(@NotNull net.minecraft.world.item.ItemStack stack) intgetSpellSlotCount(net.minecraft.world.item.ItemStack stack) voidinventoryTick(@NotNull net.minecraft.world.item.ItemStack stack, @NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.world.entity.Entity entity, int slotId, boolean isSelected) booleanisValidRepairItem(@NotNull net.minecraft.world.item.ItemStack toRepair, @NotNull net.minecraft.world.item.ItemStack repair) booleanonApplyButtonPressed(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.Slot centre, net.minecraft.world.inventory.Slot crystals, net.minecraft.world.inventory.Slot upgrade, net.minecraft.world.inventory.Slot[] spellBooks) static voidonSpellPreCast(SpellCastEvent.Pre event) voidsetMana(net.minecraft.world.item.ItemStack stack, int mana) booleanshowTooltip(net.minecraft.world.item.ItemStack stack) booleanDetermines if this item is valid for use in a receptacle.Methods inherited from class net.minecraft.world.item.ArmorItem
dispenseArmor, getDefaultAttributeModifiers, getDefense, getEnchantmentValue, getEquipmentSlot, getEquipSound, getMaterial, getToughness, getType, useMethods inherited from class net.minecraft.world.item.Item
asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, canFitInsideContainerItems, finishUsingItem, getBarWidth, getCraftingRemainingItem, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getFoodProperties, getId, getMaxDamage, getMaxStackSize, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, isBarVisible, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, 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.item.Equipable
swapWithEquipmentSlotMethods inherited from interface net.fabricmc.fabric.api.item.v1.FabricItem
allowContinuingBlockBreaking, allowNbtUpdateAnimation, getAttributeModifiers, getRecipeRemainder, isSuitableForMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface com.binaris.wizardry.api.content.item.IManaStoringItem
consumeMana, getFullness, isManaEmpty, isManaFull, rechargeMana, showManaInWorkbenchMethods inherited from interface com.binaris.wizardry.api.content.item.IWorkbenchItem
canPlace, isClearable, onClearButtonPressed
-
Constructor Details
-
WizardArmorItem
public WizardArmorItem(WizardArmorType material, net.minecraft.world.item.ArmorItem.Type type, Element element)
-
-
Method Details
-
onSpellPreCast
-
applyUpgrade
public net.minecraft.world.item.ItemStack applyUpgrade(@Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.ItemStack upgrade) - Specified by:
applyUpgradein interfaceIWorkbenchItem
-
onApplyButtonPressed
public boolean onApplyButtonPressed(net.minecraft.world.entity.player.Player player, net.minecraft.world.inventory.Slot centre, net.minecraft.world.inventory.Slot crystals, net.minecraft.world.inventory.Slot upgrade, net.minecraft.world.inventory.Slot[] spellBooks) - Specified by:
onApplyButtonPressedin interfaceIWorkbenchItem
-
appendHoverText
public void appendHoverText(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, @NotNull @NotNull List<net.minecraft.network.chat.Component> tooltip, @NotNull @NotNull net.minecraft.world.item.TooltipFlag advanced) - Overrides:
appendHoverTextin classnet.minecraft.world.item.Item
-
inventoryTick
public void inventoryTick(@NotNull @NotNull net.minecraft.world.item.ItemStack stack, @NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.world.entity.Entity entity, int slotId, boolean isSelected) - Overrides:
inventoryTickin classnet.minecraft.world.item.Item
-
applySpellModifiers
protected void applySpellModifiers(net.minecraft.world.entity.LivingEntity caster, Spell spell, SpellModifiers modifiers) -
getName
@NotNull public @NotNull net.minecraft.network.chat.Component getName(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Overrides:
getNamein classnet.minecraft.world.item.Item
-
getWizardArmorType
-
getElement
Description copied from interface:IElementValueGets the element associated with this item.- Specified by:
getElementin interfaceIElementValue- Returns:
- The element of the item.
-
validForReceptacle
public boolean validForReceptacle()Description copied from interface:IElementValueDetermines if this item is valid for use in a receptacle.- Specified by:
validForReceptaclein interfaceIElementValue- Returns:
- true if the item can be used in a receptacle, false otherwise.
-
getBarColor
public int getBarColor(@NotNull @NotNull net.minecraft.world.item.ItemStack stack) - Overrides:
getBarColorin classnet.minecraft.world.item.Item
-
getMana
public int getMana(net.minecraft.world.item.ItemStack stack) - Specified by:
getManain interfaceIManaStoringItem
-
setMana
public void setMana(net.minecraft.world.item.ItemStack stack, int mana) - Specified by:
setManain interfaceIManaStoringItem
-
getManaCapacity
public int getManaCapacity(net.minecraft.world.item.ItemStack stack) - Specified by:
getManaCapacityin interfaceIManaStoringItem
-
getSpellSlotCount
public int getSpellSlotCount(net.minecraft.world.item.ItemStack stack) - Specified by:
getSpellSlotCountin interfaceIWorkbenchItem
-
showTooltip
public boolean showTooltip(net.minecraft.world.item.ItemStack stack) - Specified by:
showTooltipin interfaceIWorkbenchItem
-
isValidRepairItem
public boolean isValidRepairItem(@NotNull @NotNull net.minecraft.world.item.ItemStack toRepair, @NotNull @NotNull net.minecraft.world.item.ItemStack repair) - Overrides:
isValidRepairItemin classnet.minecraft.world.item.ArmorItem
-