Code cleanup and remove some unused code

This commit is contained in:
mezz committed 2015-08-02 22:53:19 -07:00
1 parent f0f8c9a984
commit fdf3493ed0
295 files changed
+899 -2840

No files matched your search

+1 -12
View File
@@ -25,7 +25,7 @@ public abstract class Crop implements ICrop {
protected final World world;
protected final Vect position;
public Crop(World world, Vect position) {
protected Crop(World world, Vect position) {
this.world = world;
this.position = position;
}
@@ -34,13 +34,6 @@ public abstract class Crop implements ICrop {
world.setBlock(position.x, position.y, position.z, block, meta, Defaults.FLAG_BLOCK_SYNCH);
}
protected final void clearBlock(Vect position) {
world.setBlockToAir(position.x, position.y, position.z);
if (world.getTileEntity(position.x, position.y, position.z) != null) {
world.setTileEntity(position.x, position.y, position.z, null);
}
}
protected final Block getBlock(Vect position) {
return world.getBlock(position.x, position.y, position.z);
}
@@ -49,10 +42,6 @@ public abstract class Crop implements ICrop {
return world.getBlockMetadata(position.x, position.y, position.z);
}
protected final ItemStack getAsItemStack(Vect position) {
return new ItemStack(getBlock(position), 1, getBlockMeta(position));
}
protected abstract boolean isCrop(Vect pos);
protected abstract Collection<ItemStack> harvestBlock(Vect pos);