Skip to content

Commit 50f22e3

Browse files
committed
Cleanup
1 parent 8d78ea9 commit 50f22e3

File tree

10 files changed

+61
-60
lines changed

10 files changed

+61
-60
lines changed

src/main/java/clashsoft/cslib/minecraft/block/BlockCustomFarmland.java

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
public class BlockCustomFarmland extends BlockFarmland
1515
{
16-
public Block dirtBlock;
17-
public int dirtMetadata;
16+
public Block dirtBlock;
17+
public int dirtMetadata;
1818

1919
public BlockCustomFarmland(Block dirtBlock)
2020
{
@@ -29,51 +29,51 @@ public BlockCustomFarmland(Block dirtBlock, int dirtMetadata)
2929

3030
@Override
3131
public void onFallenUpon(World world, int x, int y, int z, Entity entity, float f)
32-
{
33-
if (!world.isRemote && world.rand.nextFloat() < f - 0.5F)
34-
{
35-
if (!(entity instanceof EntityPlayer) && !world.getGameRules().getGameRuleBooleanValue("mobGriefing"))
36-
{
37-
return;
38-
}
39-
40-
world.setBlock(x, y, z, this.dirtBlock, this.dirtMetadata, 3);
41-
}
42-
}
32+
{
33+
if (!world.isRemote && world.rand.nextFloat() < f - 0.5F)
34+
{
35+
if (!(entity instanceof EntityPlayer) && !world.getGameRules().getGameRuleBooleanValue("mobGriefing"))
36+
{
37+
return;
38+
}
39+
40+
world.setBlock(x, y, z, this.dirtBlock, this.dirtMetadata, 3);
41+
}
42+
}
4343

4444
@Override
4545
public void onNeighborBlockChange(World world, int x, int y, int z, Block block)
46-
{
47-
super.onNeighborBlockChange(world, x, y, z, block);
48-
Material material = world.getBlock(x, y + 1, z).getMaterial();
49-
50-
if (material.isSolid())
51-
{
52-
world.setBlock(x, y, z, this.dirtBlock, this.dirtMetadata, 3);
53-
}
54-
}
46+
{
47+
super.onNeighborBlockChange(world, x, y, z, block);
48+
Material material = world.getBlock(x, y + 1, z).getMaterial();
49+
50+
if (material.isSolid())
51+
{
52+
world.setBlock(x, y, z, this.dirtBlock, this.dirtMetadata, 3);
53+
}
54+
}
5555

5656
@Override
5757
public IIcon getIcon(int side, int metadata)
5858
{
5959
return side == 1 ? super.getIcon(1, metadata) : this.dirtBlock.getIcon(side, this.dirtMetadata);
6060
}
61-
62-
@Override
61+
62+
@Override
6363
public Item getItemDropped(int metadata, Random random, int fortune)
64-
{
65-
return this.dirtBlock.getItemDropped(this.dirtMetadata, random, fortune);
66-
}
67-
68-
@Override
69-
public int damageDropped(int metadata)
70-
{
71-
return this.dirtBlock.damageDropped(this.dirtMetadata);
72-
}
73-
74-
@Override
64+
{
65+
return this.dirtBlock.getItemDropped(this.dirtMetadata, random, fortune);
66+
}
67+
68+
@Override
69+
public int damageDropped(int metadata)
70+
{
71+
return this.dirtBlock.damageDropped(this.dirtMetadata);
72+
}
73+
74+
@Override
7575
public Item getItem(World world, int x, int y, int z)
76-
{
77-
return Item.getItemFromBlock(this.dirtBlock);
78-
}
76+
{
77+
return Item.getItemFromBlock(this.dirtBlock);
78+
}
7979
}

src/main/java/clashsoft/cslib/minecraft/block/BlockCustomGlass.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,21 @@ public boolean isOpaqueCube()
4646

4747
@Override
4848
public boolean renderAsNormalBlock()
49-
{
50-
return false;
51-
}
52-
49+
{
50+
return false;
51+
}
52+
5353
@Override
5454
public int getRenderBlockPass()
5555
{
5656
return this.isTransparent ? 1 : 0;
5757
}
5858

59-
@Override
59+
@Override
6060
protected boolean canSilkHarvest()
61-
{
62-
return true;
63-
}
61+
{
62+
return true;
63+
}
6464

6565
@Override
6666
@SideOnly(Side.CLIENT)

src/main/java/clashsoft/cslib/minecraft/block/ICustomBlock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
public interface ICustomBlock
99
{
10-
public static final String[] DEFAULT_NAMES = new String[] { null };
10+
public static final String[] DEFAULT_NAMES = new String[] { null };
1111

1212
public String getUnlocalizedName(ItemStack stack);
1313

src/main/java/clashsoft/cslib/minecraft/block/ore/BlockOre2.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,8 @@ public void registerBlockIcons(IIconRegister iconRegister)
147147
{
148148
return;
149149
}
150-
for (int i = 0; i < this.bases.length; i++)
150+
for (OreBase base : this.bases)
151151
{
152-
OreBase base = this.bases[i];
153152
if (base != null)
154153
{
155154
base.registerIcons(iconRegister);

src/main/java/clashsoft/cslib/minecraft/block/ore/OreBaseStone.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
public class OreBaseStone extends OreBase
88
{
9-
public IIcon coalIcon;
10-
public IIcon ironIcon;
11-
public IIcon goldIcon;
12-
public IIcon diamondIcon;
13-
public IIcon emeraldIcon;
14-
public IIcon redstoneIcon;
15-
public IIcon lapisIcon;
9+
public IIcon coalIcon;
10+
public IIcon ironIcon;
11+
public IIcon goldIcon;
12+
public IIcon diamondIcon;
13+
public IIcon emeraldIcon;
14+
public IIcon redstoneIcon;
15+
public IIcon lapisIcon;
1616

1717
OreBaseStone(String name, float multiplier)
1818
{

src/main/java/clashsoft/cslib/minecraft/client/renderer/block/RenderBlockSimple.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
public abstract class RenderBlockSimple implements ISimpleBlockRenderingHandler
99
{
10-
protected boolean rendering;
10+
protected boolean rendering;
1111

1212
@Override
1313
public void renderInventoryBlock(Block block, int metadata, int modelId, RenderBlocks renderer)

src/main/java/clashsoft/cslib/minecraft/entity/CSEntities.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public static void register(String name, int id, Class<? extends Entity> clazz,
7474
/**
7575
* @deprecated Use {@link #replace(Class, Class)} instead.
7676
*/
77+
@Deprecated
7778
public static void replace(String name, int id, Class<? extends Entity> clazz)
7879
{
7980
register(name, id, clazz);
@@ -82,6 +83,7 @@ public static void replace(String name, int id, Class<? extends Entity> clazz)
8283
/**
8384
* @deprecated Use {@link #replace(Class, Class)} instead.
8485
*/
86+
@Deprecated
8587
public static void replace(String name, int id, Class<? extends Entity> clazz, int eggColor1, int eggColor2)
8688
{
8789
register(name, id, clazz, eggColor1, eggColor2);

src/main/java/clashsoft/cslib/minecraft/item/block/ItemCustomSlab.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public ItemCustomSlab(Block block)
2222

2323
if (block instanceof BlockCustomSlab)
2424
{
25-
BlockCustomSlab slab = ((BlockCustomSlab) block);
25+
BlockCustomSlab slab = (BlockCustomSlab) block;
2626
BlockCustomSlab otherSlab = slab.otherSlab;
2727

2828
this.isDoubleSlab = block.isOpaqueCube();

src/main/java/clashsoft/cslib/minecraft/world/CustomBiomeLayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public GenLayer[] generate(long seed, WorldType worldType)
3030
biomes.initWorldGenSeed(seed);
3131
voronoiZoom.initWorldGenSeed(seed);
3232

33-
return new GenLayer[] { biomes, voronoiZoom };
33+
return new GenLayer[] { biomes, voronoiZoom };
3434
}
3535

3636
@Override

src/main/java/clashsoft/cslib/minecraft/world/biome/CustomBiome.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public abstract class CustomBiome extends BiomeGenBase implements ICustomBiome
1818
public Block waterBlock = Blocks.water;
1919
public byte waterMetadata;
2020

21-
public int waterLevel;
21+
public int waterLevel;
2222

2323
public CustomBiome(int id)
2424
{

0 commit comments

Comments
 (0)