mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-23 21:39:51 +00:00
Code cleanup and remove some unused code
This commit is contained in:
1 parent
f0f8c9a984
commit
fdf3493ed0
295 files changed
+899
-2840
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user