Class TerrasteelHelmItem

java.lang.Object
net.minecraft.world.item.Item
net.minecraft.world.item.ArmorItem
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.item.Equipable, net.minecraft.world.level.ItemLike, AncientWillContainer, PhantomInkable, ManaDiscountArmor, CustomDamageItem

public class TerrasteelHelmItem extends TerrasteelArmorItem implements ManaDiscountArmor, AncientWillContainer
  • 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

    Nested classes/interfaces inherited from interface vazkii.botania.api.item.AncientWillContainer

    AncientWillContainer.AncientWillType
  • Field Summary

    Fields inherited from class vazkii.botania.common.item.equipment.armor.manasteel.ManasteelArmorItem

    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
    TerrasteelHelmItem(net.minecraft.world.item.Item.Properties props)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAncientWill(net.minecraft.world.item.ItemStack stack, AncientWillContainer.AncientWillType will)
     
    void
    addArmorSetDescription(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> list)
     
    static float
    getCritDamageMult(net.minecraft.world.entity.player.Player player)
     
    float
    getDiscount(net.minecraft.world.item.ItemStack stack, int slot, net.minecraft.world.entity.player.Player player, @Nullable net.minecraft.world.item.ItemStack tool)
    Gets the mana discount that this piece of armor provides for the specified tool.
    boolean
    hasAncientWill(net.minecraft.world.item.ItemStack stack, AncientWillContainer.AncientWillType will)
     
    static boolean
    hasAnyWill(net.minecraft.world.item.ItemStack stack)
     
    static boolean
    hasTerraArmorSet(net.minecraft.world.entity.player.Player player)
     
    void
    inventoryTick(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level world, net.minecraft.world.entity.Entity entity, int slot, boolean selected)
     
    static net.minecraft.world.damagesource.DamageSource
    onEntityAttacked(net.minecraft.world.damagesource.DamageSource source, float amount, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.LivingEntity entity)
     

    Methods inherited from class vazkii.botania.common.item.equipment.armor.terrasteel.TerrasteelArmorItem

    getArmorSetName, getArmorSetStacks, getArmorTextureAfterInk, getDefaultAttributeModifiers, hasArmorSetItem, makesPiglinsNeutral

    Methods inherited from class vazkii.botania.common.item.equipment.armor.manasteel.ManasteelArmorItem

    addInformationAfterShift, appendHoverText, damageItem, getArmorTexture, getManaPerDamage, hasArmorSet, hasPhantomInk, setPhantomInk

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

    dispenseArmor, 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
  • Constructor Details

    • TerrasteelHelmItem

      public TerrasteelHelmItem(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 ManasteelArmorItem
    • getDiscount

      public float getDiscount(net.minecraft.world.item.ItemStack stack, int slot, net.minecraft.world.entity.player.Player player, @Nullable @Nullable net.minecraft.world.item.ItemStack tool)
      Description copied from interface: ManaDiscountArmor
      Gets the mana discount that this piece of armor provides for the specified tool. This is added together to create the full discount. Value is to be from 0.0 to 1.0. 0.1 is 10% discount, as an example. You can also return negative values to make tools cost more.
      Specified by:
      getDiscount in interface ManaDiscountArmor
    • addAncientWill

      public void addAncientWill(net.minecraft.world.item.ItemStack stack, AncientWillContainer.AncientWillType will)
      Specified by:
      addAncientWill in interface AncientWillContainer
    • hasAncientWill

      public boolean hasAncientWill(net.minecraft.world.item.ItemStack stack, AncientWillContainer.AncientWillType will)
      Specified by:
      hasAncientWill in interface AncientWillContainer
    • addArmorSetDescription

      public void addArmorSetDescription(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> list)
      Overrides:
      addArmorSetDescription in class TerrasteelArmorItem
    • hasAnyWill

      public static boolean hasAnyWill(net.minecraft.world.item.ItemStack stack)
    • hasTerraArmorSet

      public static boolean hasTerraArmorSet(net.minecraft.world.entity.player.Player player)
    • getCritDamageMult

      public static float getCritDamageMult(net.minecraft.world.entity.player.Player player)
    • onEntityAttacked

      public static net.minecraft.world.damagesource.DamageSource onEntityAttacked(net.minecraft.world.damagesource.DamageSource source, float amount, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.LivingEntity entity)