diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2019-08-22 20:01:40 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2019-08-22 20:01:40 -0400 |
| commit | 20bef6e26d948698398bd16aeab8c9e6b89110e4 (patch) | |
| tree | 8a21e17f78b330435f4ce2d4355d72b773230aa7 /src/main/java/darkknight/jewelrycraft/item/ItemStructureGen.java | |
| parent | 26fb28edd1ebb6390f8803fed3876d222cb8fdba (diff) | |
Format/import cleanup
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/item/ItemStructureGen.java')
| -rwxr-xr-x | src/main/java/darkknight/jewelrycraft/item/ItemStructureGen.java | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/item/ItemStructureGen.java b/src/main/java/darkknight/jewelrycraft/item/ItemStructureGen.java index a929430..e06b3f4 100755 --- a/src/main/java/darkknight/jewelrycraft/item/ItemStructureGen.java +++ b/src/main/java/darkknight/jewelrycraft/item/ItemStructureGen.java @@ -18,13 +18,10 @@ public class ItemStructureGen extends Item { }
@Override
- public ItemStack onItemRightClick(ItemStack stack, World world,
- EntityPlayer player) {
- if (!world.isRemote
- && player.capabilities.isCreativeMode) {
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
+ if (!world.isRemote && player.capabilities.isCreativeMode) {
if (!player.isSneaking()) {
- if (no < JewelrycraftUtil.structures.size()
- - 1)
+ if (no < JewelrycraftUtil.structures.size() - 1)
no++;
else
no = 0;
@@ -32,29 +29,24 @@ public class ItemStructureGen extends Item { if (no > 0)
no--;
else
- no = JewelrycraftUtil.structures
- .size() - 1;
+ no = JewelrycraftUtil.structures.size() - 1;
}
- player.addChatMessage(new ChatComponentText(
- "Structure no. " + (no + 1)));
+ player.addChatMessage(new ChatComponentText("Structure no. " + (no + 1)));
}
return stack;
}
@Override
- public boolean onItemUse(ItemStack stack, EntityPlayer player,
- World world, int x, int y, int z, int par1,
+ public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int par1,
float par2, float par3, float par4) {
if (player.capabilities.isCreativeMode)
- JewelrycraftUtil.structures.get(no).generate(world,
- world.getBiomeGenForCoords(x, z),
- itemRand, x, y + 1, z);
+ JewelrycraftUtil.structures.get(no).generate(world, world.getBiomeGenForCoords(x, z), itemRand, x, y + 1,
+ z);
return true;
}
@Override
- public void addInformation(ItemStack stack, EntityPlayer player,
- List list, boolean par4) {
+ public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
list.add(EnumChatFormatting.GRAY + "Creative Only");
}
}
\ No newline at end of file |
