Changed formatting to have bracing on a new line

This commit is contained in:
WayofTime 2015-12-30 15:34:40 -05:00
parent e5eddd6c45
commit e48eedb874
189 changed files with 6092 additions and 4041 deletions

View file

@ -7,11 +7,13 @@ import net.minecraft.entity.Entity;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
public class ItemLivingArmour extends ItemArmor {
public class ItemLivingArmour extends ItemArmor
{
public static String[] names = {"helmet", "chest", "legs", "boots"};
public static String[] names = { "helmet", "chest", "legs", "boots" };
public ItemLivingArmour(int armorType) {
public ItemLivingArmour(int armorType)
{
super(ItemArmor.ArmorMaterial.IRON, 0, armorType);
setUnlocalizedName(Constants.Mod.MODID + ".livingArmour.");
setMaxDamage(250);
@ -19,22 +21,25 @@ public class ItemLivingArmour extends ItemArmor {
}
@Override
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) {
if (this == ModItems.livingArmourChest
|| this == ModItems.livingArmourHelmet
|| this == ModItems.livingArmourBoots) {
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type)
{
if (this == ModItems.livingArmourChest || this == ModItems.livingArmourHelmet || this == ModItems.livingArmourBoots)
{
return "bloodmagic:models/armor/boundArmour_layer_1.png";
}
if (this == ModItems.livingArmourLegs) {
if (this == ModItems.livingArmourLegs)
{
return "bloodmagic:models/armor/boundArmour_layer_2.png";
} else {
} else
{
return null;
}
}
@Override
public String getUnlocalizedName(ItemStack stack) {
public String getUnlocalizedName(ItemStack stack)
{
return super.getUnlocalizedName(stack) + names[armorType];
}
}