Class ManasteelArmorItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ArmorItem
vazkii.botania.common.item.equipment.armor.manasteel.ManasteelArmorItem
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.item.Equipable, net.minecraft.world.level.ItemLike, PhantomInkable, CustomDamageItem
Direct Known Subclasses:
ElementiumArmorItem, ManasteelHelmItem, ManaweaveArmorItem, TerrasteelArmorItem

public class ManasteelArmorItem extends net.minecraft.world.item.ArmorItem implements CustomDamageItem, PhantomInkable
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.item.ArmorItem

    net.minecraft.world.item.ArmorItem.Type

    Nested classes/interfaces inherited from class net.minecraft.world.item.Item

    net.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.TooltipContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.world.item.ArmorItem.Type
     

    Fields inherited from class net.minecraft.world.item.ArmorItem

    DISPENSE_ITEM_BEHAVIOR, material

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

    ABSOLUTE_MAX_STACK_SIZE, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, DEFAULT_MAX_STACK_SIZE, MAX_BAR_WIDTH

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

    FILTERED_REGISTRIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    ManasteelArmorItem(net.minecraft.world.item.ArmorItem.Type type, net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> mat, net.minecraft.world.item.Item.Properties props)
     
    ManasteelArmorItem(net.minecraft.world.item.ArmorItem.Type type, net.minecraft.world.item.Item.Properties props)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addArmorSetDescription(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> list)
     
    void
    addInformationAfterShift(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag flags)
     
    void
    appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag flags)
     
    <T extends net.minecraft.world.entity.LivingEntity>
    int
    damageItem(net.minecraft.world.item.ItemStack stack, int amount, T entity, Consumer<net.minecraft.world.item.Item> breakCallback)
     
    net.minecraft.network.chat.MutableComponent
     
    net.minecraft.world.item.ItemStack[]
     
    final net.minecraft.resources.ResourceLocation
    getArmorTexture(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.item.ArmorMaterial.Layer layer, boolean innerModel)
     
    net.minecraft.resources.ResourceLocation
    getArmorTextureAfterInk(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.EquipmentSlot slot)
     
    protected int
     
    boolean
    hasArmorSet(net.minecraft.world.entity.player.Player player)
     
    boolean
    hasArmorSetItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.EquipmentSlot slot)
     
    boolean
    hasPhantomInk(net.minecraft.world.item.ItemStack stack)
     
    void
    inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int slot, boolean selected)
     
    void
    setPhantomInk(net.minecraft.world.item.ItemStack stack, boolean ink)
     

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

    dispenseArmor, getDefaultAttributeModifiers, getDefense, getEnchantmentValue, getEquipmentSlot, getEquipSound, getMaterial, getToughness, getType, isValidRepairItem, use

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

    asItem, builtInRegistryHolder, byBlock, byId, canAttackBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getBreakingSound, getCraftingRemainingItem, getDefaultInstance, getDefaultMaxStackSize, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getId, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, isBarVisible, isComplex, isCorrectToolForDrops, isEnchantable, isFoil, mineBlock, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, releaseUsing, requiredFeatures, toString, useOn, useOnRelease, verifyComponentsAfterLoad

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.item.Equipable

    swapWithEquipmentSlot

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

    isEnabled
  • Field Details

    • type

      public final net.minecraft.world.item.ArmorItem.Type type
  • Constructor Details

    • ManasteelArmorItem

      public ManasteelArmorItem(net.minecraft.world.item.ArmorItem.Type type, net.minecraft.world.item.Item.Properties props)
    • ManasteelArmorItem

      public ManasteelArmorItem(net.minecraft.world.item.ArmorItem.Type type, net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> mat, net.minecraft.world.item.Item.Properties props)
  • Method Details

    • inventoryTick

      public void inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int slot, boolean selected)
      Overrides:
      inventoryTick in class net.minecraft.world.item.Item
    • damageItem

      public <T extends net.minecraft.world.entity.LivingEntity> int damageItem(net.minecraft.world.item.ItemStack stack, int amount, @Nullable T entity, Consumer<net.minecraft.world.item.Item> breakCallback)
      Specified by:
      damageItem in interface CustomDamageItem
    • getManaPerDamage

      protected int getManaPerDamage()
    • getArmorTexture

      public final net.minecraft.resources.ResourceLocation getArmorTexture(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.item.ArmorMaterial.Layer layer, boolean innerModel)
    • getArmorTextureAfterInk

      public net.minecraft.resources.ResourceLocation getArmorTextureAfterInk(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.EquipmentSlot slot)
    • appendHoverText

      public void appendHoverText(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag flags)
      Overrides:
      appendHoverText in class net.minecraft.world.item.Item
    • addInformationAfterShift

      public void addInformationAfterShift(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, List<net.minecraft.network.chat.Component> list, net.minecraft.world.item.TooltipFlag flags)
    • getArmorSetStacks

      public net.minecraft.world.item.ItemStack[] getArmorSetStacks()
    • hasArmorSet

      public boolean hasArmorSet(net.minecraft.world.entity.player.Player player)
    • hasArmorSetItem

      public boolean hasArmorSetItem(net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.EquipmentSlot slot)
    • getArmorSetName

      public net.minecraft.network.chat.MutableComponent getArmorSetName()
    • addArmorSetDescription

      public void addArmorSetDescription(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> list)
    • hasPhantomInk

      public boolean hasPhantomInk(net.minecraft.world.item.ItemStack stack)
      Specified by:
      hasPhantomInk in interface PhantomInkable
    • setPhantomInk

      public void setPhantomInk(net.minecraft.world.item.ItemStack stack, boolean ink)
      Specified by:
      setPhantomInk in interface PhantomInkable