-
Notifications
You must be signed in to change notification settings - Fork 5
Using SimpleArmor
AleXndrTheGr8st edited this page Dec 14, 2014
·
3 revisions
Using SimpleArmor
Creates a basic armor item, such as the Copper Chestplate. Note that this won't include any methods that are already detailed in the SimpleItem wiki page.
Usage:
yourArmorItem = new SimpleArmor(ArmorMaterial material, int renderer, int slotnumber);Where slotnumber is the armor slot the item will go in. 0 = helmet, 1= chestplate, 2 = leggings, 3 = boots.
Customising Methods:
You can customise your item using the below methods. In most cases, they will be appended to your initialization code (above, see the example below).
- setType(String armorType):
Sets the type of the armor, such as "copper" or "mythril". This is important, as it is used to determine the armor textures.
yourArmorItem = new SimpleArmor(yourArmorMaterial, yourRenderer, 0).modId("yourModId").setType("yourArmorType");Example:
yourArmorItem = new SimpleArmor(yourArmorMaterial, yourRenderer, 1).modId("yourModId").setType("yourArmorType").setUnlocalizedName("your_armor_item");