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

@@ -27,20 +27,20 @@ import forestry.farming.gadgets.StructureLogicFarm;
public abstract class FarmLogicHomogeneous extends FarmLogic {
protected final ItemStack resource;
protected final ItemStack soilBlock;
private final ItemStack resource;
private final ItemStack soilBlock;
protected final Iterable<IFarmable> germlings;
ArrayList<ItemStack> produce = new ArrayList<ItemStack>();
public FarmLogicHomogeneous(IFarmHousing housing, ItemStack resource, ItemStack soilBlock, Iterable<IFarmable> germlings) {
protected FarmLogicHomogeneous(IFarmHousing housing, ItemStack resource, ItemStack soilBlock, Iterable<IFarmable> germlings) {
super(housing);
this.resource = resource;
this.soilBlock = soilBlock;
this.germlings = germlings;
}
public boolean isAcceptedSoil(ItemStack itemStack) {
protected boolean isAcceptedSoil(ItemStack itemStack) {
return StackUtils.isIdenticalItem(soilBlock, itemStack);
}
@@ -59,7 +59,7 @@ public abstract class FarmLogicHomogeneous extends FarmLogic {
return false;
}
public boolean isWindfall(ItemStack itemstack) {
protected boolean isWindfall(ItemStack itemstack) {
for (IFarmable germling : germlings) {
if (germling.isWindfall(itemstack)) {
return true;