mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 20:42:35 +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
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user