mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-25 06:24:26 +00:00
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:
1 parent
886c36a308
commit
c3809fbc27
508 files changed
+6677
-6238
No files matched your search
@@ -15,6 +15,22 @@ import java.util.List;
|
||||
|
||||
public class ItemIndustrialFrame extends Item {
|
||||
|
||||
public ItemIndustrialFrame() {
|
||||
this.setCreativeTab(CreativeTabs.MISC);
|
||||
this.setMaxDamage(400);
|
||||
this.setMaxStackSize(1);
|
||||
this.setUnlocalizedName("industrialFrame");
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static IndustrialFrame getFrame(final ItemStack stack) {
|
||||
NBTTagCompound tagCompound = stack.getTagCompound();
|
||||
if (tagCompound == null || !tagCompound.hasKey("frame")) {
|
||||
return null;
|
||||
}
|
||||
return IndustrialFrame.values()[tagCompound.getInteger("frame")];
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(final Item itemIn, final CreativeTabs tab, final NonNullList<ItemStack> subItems) {
|
||||
@@ -43,21 +59,4 @@ public class ItemIndustrialFrame extends Item {
|
||||
public String getItemStackDisplayName(final ItemStack itemStack) {
|
||||
return "Industrial Frame";
|
||||
}
|
||||
|
||||
public ItemIndustrialFrame() {
|
||||
this.setCreativeTab(CreativeTabs.MISC);
|
||||
this.setMaxDamage(400);
|
||||
this.setMaxStackSize(1);
|
||||
this.setUnlocalizedName("industrialFrame");
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static IndustrialFrame getFrame(final ItemStack stack) {
|
||||
NBTTagCompound tagCompound = stack.getTagCompound();
|
||||
if (tagCompound == null || !tagCompound.hasKey("frame")) {
|
||||
return null;
|
||||
}
|
||||
return IndustrialFrame.values()[tagCompound.getInteger("frame")];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user