Some reformat code for 1.11.2 source (#84)

* Optimized imports

* Some code reformat

* Some refactoring and code reformat

* Some code reformat
This commit is contained in:
Alexander Kornilov authored and mezz committed 2017-06-01 00:48:08 -07:00
1 parent 886c36a308
commit c3809fbc27
508 files changed
+6677 -6238

No files matched your search

@@ -14,6 +14,8 @@ import net.minecraftforge.fml.relauncher.SideOnly;
public class ItemProduct extends Item implements IItemModelRegister {
protected IEBEnumItem[] types;
public ItemProduct(final IEBEnumItem[] types) {
this.setMaxStackSize(64);
this.setMaxDamage(0);
@@ -21,8 +23,6 @@ public class ItemProduct extends Item implements IItemModelRegister {
this.types = types;
}
protected IEBEnumItem[] types;
public IEBEnumItem get(final ItemStack stack) {
final int i = stack.getItemDamage();
if (i >= 0 && i < this.types.length) {
@@ -53,5 +53,4 @@ public class ItemProduct extends Item implements IItemModelRegister {
ModelLoader.setCustomModelResourceLocation(item, type.ordinal(), new ModelResourceLocation(getRegistryName(), "inventory"));
}
}
}