Package net.mcreator.element.types
Class Armor
java.lang.Object
net.mcreator.element.GeneratableElement
net.mcreator.element.types.Armor
- All Implemented Interfaces:
ICommonType
,IItem
,IMCItemProvider
,ITabContainedElement
-
Nested Class Summary
Nested classes/interfaces inherited from class net.mcreator.element.GeneratableElement
GeneratableElement.GSONAdapter, GeneratableElement.Unknown
-
Field Summary
Modifier and TypeFieldDescriptionboolean
int
boolean
int
int
int
int
int
boolean
boolean
boolean
boolean
int
boolean
int
double
boolean
int
int
double
Fields inherited from class net.mcreator.element.GeneratableElement
formatVersion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionWARNING: Calls to this method are generally not thread safe.getIconForMCItem
(Workspace workspace, String suffix) This method determines what icon should be used for a custom MCItem, according to its eventual suffixgetItemModelTextureMap
(String part) getItemTextureFor
(String part) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
This method determines what MCItems are provided by this generatable elementMethods inherited from class net.mcreator.element.GeneratableElement
finalizeModElementGeneration, getAdditionalTemplateData, getModElement, isUnknown, performQuickValidation, setModElement, wasConversionApplied
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.mcreator.element.types.interfaces.IItem
getBaseTypesProvided
-
Field Details
-
enableHelmet
public boolean enableHelmet -
textureHelmet
-
enableBody
public boolean enableBody -
textureBody
-
enableLeggings
public boolean enableLeggings -
textureLeggings
-
enableBoots
public boolean enableBoots -
textureBoots
-
onHelmetTick
-
onBodyTick
-
onLeggingsTick
-
onBootsTick
-
creativeTab
-
armorTextureFile
-
helmetName
-
bodyName
-
leggingsName
-
bootsName
-
helmetSpecialInformation
-
bodySpecialInformation
-
leggingsSpecialInformation
-
bootsSpecialInformation
-
helmetModelName
-
helmetModelPart
-
helmetModelTexture
-
bodyModelName
-
bodyModelPart
-
armsModelPartL
-
armsModelPartR
-
bodyModelTexture
-
leggingsModelName
-
leggingsModelPartL
-
leggingsModelPartR
-
leggingsModelTexture
-
bootsModelName
-
bootsModelPartL
-
bootsModelPartR
-
bootsModelTexture
-
helmetItemRenderType
public int helmetItemRenderType -
helmetItemCustomModelName
-
bodyItemRenderType
public int bodyItemRenderType -
bodyItemCustomModelName
-
leggingsItemRenderType
public int leggingsItemRenderType -
leggingsItemCustomModelName
-
bootsItemRenderType
public int bootsItemRenderType -
bootsItemCustomModelName
-
helmetImmuneToFire
public boolean helmetImmuneToFire -
bodyImmuneToFire
public boolean bodyImmuneToFire -
leggingsImmuneToFire
public boolean leggingsImmuneToFire -
bootsImmuneToFire
public boolean bootsImmuneToFire -
helmetGlowCondition
-
bodyGlowCondition
-
leggingsGlowCondition
-
bootsGlowCondition
-
helmetPiglinNeutral
-
bodyPiglinNeutral
-
leggingsPiglinNeutral
-
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
-
repairItems
-
-
Constructor Details
-
Armor
-
-
Method Details
-
generateModElementPicture
- Overrides:
generateModElementPicture
in classGeneratableElement
- Returns:
- BufferedImage of mod element preview or null if default mod element icon should be used
-
getHelmetModel
-
getBodyModel
-
getLeggingsModel
-
getBootsModel
-
getHelmetItemModel
-
getBodyItemModel
-
getLeggingsItemModel
-
getBootsItemModel
-
getItemCustomModelNameFor
-
getItemModelTextureMap
-
getItemTextureFor
-
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
-
providedMCItems
Description copied from interface:IMCItemProvider
This method determines what MCItems are provided by this generatable elementWARNING: 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 interfaceIMCItemProvider
- Returns:
- A list of MCItems provided by this generatable element
-
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 interfaceITabContainedElement
- Returns:
- list of items in the creative tab of this element
-
getIconForMCItem
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 interfaceIMCItemProvider
- Parameters:
workspace
- The current workspacesuffix
- 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
- Specified by:
getCreativeTab
in interfaceITabContainedElement
-