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

@ -10,11 +10,13 @@ import net.minecraftforge.fml.relauncher.SideOnly;
import java.util.List;
public class ItemBloodShard extends Item {
public class ItemBloodShard extends Item
{
public String[] names = { "weak", "demon" };
public ItemBloodShard() {
public ItemBloodShard()
{
super();
setCreativeTab(BloodMagic.tabBloodMagic);
@ -24,13 +26,15 @@ public class ItemBloodShard extends Item {
@Override
@SideOnly(Side.CLIENT)
public void getSubItems(Item id, CreativeTabs creativeTab, List<ItemStack> list) {
public void getSubItems(Item id, CreativeTabs creativeTab, List<ItemStack> list)
{
for (int i = 0; i < names.length; i++)
list.add(new ItemStack(id, 1, i));
}
@Override
public String getUnlocalizedName(ItemStack stack) {
public String getUnlocalizedName(ItemStack stack)
{
return super.getUnlocalizedName(stack) + names[stack.getItemDamage()];
}
}