Class Armor

All Implemented Interfaces:
ICommonType, IItem, IMCItemProvider, ITabContainedElement

public class Armor extends GeneratableElement implements IItem, ITabContainedElement
  • Field Details

    • enableHelmet

      public boolean enableHelmet
    • textureHelmet

      public String textureHelmet
    • enableBody

      public boolean enableBody
    • textureBody

      public String textureBody
    • enableLeggings

      public boolean enableLeggings
    • textureLeggings

      public String textureLeggings
    • enableBoots

      public boolean enableBoots
    • textureBoots

      public String textureBoots
    • onHelmetTick

      public Procedure onHelmetTick
    • onBodyTick

      public Procedure onBodyTick
    • onLeggingsTick

      public Procedure onLeggingsTick
    • onBootsTick

      public Procedure onBootsTick
    • creativeTab

      public TabEntry creativeTab
    • armorTextureFile

      public String armorTextureFile
    • helmetName

      public String helmetName
    • bodyName

      public String bodyName
    • leggingsName

      public String leggingsName
    • bootsName

      public String bootsName
    • helmetSpecialInformation

      public StringListProcedure helmetSpecialInformation
    • bodySpecialInformation

      public StringListProcedure bodySpecialInformation
    • leggingsSpecialInformation

      public StringListProcedure leggingsSpecialInformation
    • bootsSpecialInformation

      public StringListProcedure bootsSpecialInformation
    • helmetModelName

      public String helmetModelName
    • helmetModelPart

      public String helmetModelPart
    • helmetModelTexture

      public String helmetModelTexture
    • bodyModelName

      public String bodyModelName
    • bodyModelPart

      public String bodyModelPart
    • armsModelPartL

      public String armsModelPartL
    • armsModelPartR

      public String armsModelPartR
    • bodyModelTexture

      public String bodyModelTexture
    • leggingsModelName

      public String leggingsModelName
    • leggingsModelPartL

      public String leggingsModelPartL
    • leggingsModelPartR

      public String leggingsModelPartR
    • leggingsModelTexture

      public String leggingsModelTexture
    • bootsModelName

      public String bootsModelName
    • bootsModelPartL

      public String bootsModelPartL
    • bootsModelPartR

      public String bootsModelPartR
    • bootsModelTexture

      public String bootsModelTexture
    • helmetItemRenderType

      public int helmetItemRenderType
    • helmetItemCustomModelName

      public String helmetItemCustomModelName
    • bodyItemRenderType

      public int bodyItemRenderType
    • bodyItemCustomModelName

      public String bodyItemCustomModelName
    • leggingsItemRenderType

      public int leggingsItemRenderType
    • leggingsItemCustomModelName

      public String leggingsItemCustomModelName
    • bootsItemRenderType

      public int bootsItemRenderType
    • bootsItemCustomModelName

      public String bootsItemCustomModelName
    • helmetImmuneToFire

      public boolean helmetImmuneToFire
    • bodyImmuneToFire

      public boolean bodyImmuneToFire
    • leggingsImmuneToFire

      public boolean leggingsImmuneToFire
    • bootsImmuneToFire

      public boolean bootsImmuneToFire
    • helmetGlowCondition

      public LogicProcedure helmetGlowCondition
    • bodyGlowCondition

      public LogicProcedure bodyGlowCondition
    • leggingsGlowCondition

      public LogicProcedure leggingsGlowCondition
    • bootsGlowCondition

      public LogicProcedure bootsGlowCondition
    • helmetPiglinNeutral

      public LogicProcedure helmetPiglinNeutral
    • bodyPiglinNeutral

      public LogicProcedure bodyPiglinNeutral
    • leggingsPiglinNeutral

      public LogicProcedure leggingsPiglinNeutral
    • bootsPiglinNeutral

      public LogicProcedure bootsPiglinNeutral
    • maxDamage

      public int maxDamage
    • damageValueHelmet

      public int damageValueHelmet
    • damageValueBody

      public int damageValueBody
    • damageValueLeggings

      public int damageValueLeggings
    • damageValueBoots

      public int damageValueBoots
    • enchantability

      public int enchantability
    • toughness

      public double toughness
    • knockbackResistance

      public double knockbackResistance
    • equipSound

      public Sound equipSound
    • repairItems

      public List<MItemBlock> repairItems
  • Constructor Details

  • Method Details

    • generateModElementPicture

      public BufferedImage generateModElementPicture()
      Overrides:
      generateModElementPicture in class GeneratableElement
      Returns:
      BufferedImage of mod element preview or null if default mod element icon should be used
    • getHelmetModel

      @Nullable public Model getHelmetModel()
    • getBodyModel

      @Nullable public Model getBodyModel()
    • getLeggingsModel

      @Nullable public Model getLeggingsModel()
    • getBootsModel

      @Nullable public Model getBootsModel()
    • getHelmetItemModel

      @Nullable public Model getHelmetItemModel()
    • getBodyItemModel

      @Nullable public Model getBodyItemModel()
    • getLeggingsItemModel

      @Nullable public Model getLeggingsItemModel()
    • getBootsItemModel

      @Nullable public Model getBootsItemModel()
    • getItemCustomModelNameFor

      public String getItemCustomModelNameFor(String part)
    • getItemModelTextureMap

      public Map<String,String> getItemModelTextureMap(String part)
    • getItemTextureFor

      public String getItemTextureFor(String part)
    • hasHelmetNormalModel

      public boolean hasHelmetNormalModel()
    • hasHelmetToolModel

      public boolean hasHelmetToolModel()
    • hasBodyNormalModel

      public boolean hasBodyNormalModel()
    • hasBodyToolModel

      public boolean hasBodyToolModel()
    • hasLeggingsNormalModel

      public boolean hasLeggingsNormalModel()
    • hasLeggingsToolModel

      public boolean hasLeggingsToolModel()
    • hasBootsNormalModel

      public boolean hasBootsNormalModel()
    • hasBootsToolModel

      public boolean hasBootsToolModel()
    • getArmorModelsCode

      public String getArmorModelsCode()
    • providedMCItems

      public List<MCItem> providedMCItems()
      Description copied from interface: IMCItemProvider
      This method determines what MCItems are provided by this generatable element

      WARNING: Calls to this method are generally not thread safe. Implementations can call MCItem.Custom::new that calls getBlockIconBasedOnName which calls ModElement#getGeneratableElement that is not thread safe

      Specified by:
      providedMCItems in interface IMCItemProvider
      Returns:
      A list of MCItems provided by this generatable element
    • getCreativeTabItems

      public List<MCItem> getCreativeTabItems()
      Description copied from interface: ITabContainedElement
      WARNING: Calls to this method are generally not thread safe. Implementations can call MCItem.Custom::new that calls getBlockIconBasedOnName that calls ModElement#getGeneratableElement which is not thread safe
      Specified by:
      getCreativeTabItems in interface ITabContainedElement
      Returns:
      list of items in the creative tab of this element
    • getIconForMCItem

      public ImageIcon getIconForMCItem(Workspace workspace, String suffix)
      Description copied from interface: IMCItemProvider
      This method determines what icon should be used for a custom MCItem, according to its eventual suffix
      Specified by:
      getIconForMCItem in interface IMCItemProvider
      Parameters:
      workspace - The current workspace
      suffix - The suffix of the given MCItem (for example, "bucket" for fluid buckets). If this MCItem has no suffix, this will be the empty string.
      Returns:
      An ImageIcon to use for the given MCItem, or null to use the element preview image.
    • getCreativeTab

      public TabEntry getCreativeTab()
      Specified by:
      getCreativeTab in interface ITabContainedElement