diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2018-05-24 16:03:42 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2018-05-24 16:03:42 -0400 |
| commit | 9a4d1e95ea7784f0f98ea2913701a3a3c28aefaa (patch) | |
| tree | b4307f58fe2197d2215707bb3f44cf8952229c6d /src/main/java/darkknight/jewelrycraft/item/ItemStructureGen.java | |
| parent | 4f7ad220df0438b6f3382110577b53f29da46453 (diff) | |
Formatting pass
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/item/ItemStructureGen.java')
| -rwxr-xr-x | src/main/java/darkknight/jewelrycraft/item/ItemStructureGen.java | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/item/ItemStructureGen.java b/src/main/java/darkknight/jewelrycraft/item/ItemStructureGen.java index 4ff91df..a929430 100755 --- a/src/main/java/darkknight/jewelrycraft/item/ItemStructureGen.java +++ b/src/main/java/darkknight/jewelrycraft/item/ItemStructureGen.java @@ -20,9 +20,11 @@ public class ItemStructureGen extends Item { @Override
public ItemStack onItemRightClick(ItemStack stack, World world,
EntityPlayer player) {
- if (!world.isRemote && player.capabilities.isCreativeMode) {
+ 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;
@@ -30,22 +32,23 @@ 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, float par2,
- float par3, float par4) {
+ 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);
+ world.getBiomeGenForCoords(x, z),
+ itemRand, x, y + 1, z);
return true;
}
|
