mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-27 15:22:57 +00:00
Use the generic types now available in 1.8+. remove warning suppressions
This commit is contained in:
1 parent
2ddad6ec37
commit
626d0d8fb5
60 files changed
+56
-137
No files matched your search
@@ -34,7 +34,6 @@ import forestry.api.farming.IFarmLogic;
|
||||
import forestry.core.config.Constants;
|
||||
import forestry.core.entities.EntitySelector;
|
||||
import forestry.core.utils.BlockUtil;
|
||||
import forestry.core.utils.EntityUtil;
|
||||
import forestry.core.utils.vect.Vect;
|
||||
|
||||
public abstract class FarmLogic implements IFarmLogic {
|
||||
@@ -118,7 +117,7 @@ public abstract class FarmLogic implements IFarmLogic {
|
||||
protected List<ItemStack> collectEntityItems(boolean toWorldHeight) {
|
||||
AxisAlignedBB harvestBox = getHarvestBox(housing, toWorldHeight);
|
||||
|
||||
List<EntityItem> entityItems = EntityUtil.selectEntitiesWithinAABB(housing.getWorld(), entitySelectorFarm, harvestBox);
|
||||
List<EntityItem> entityItems = housing.getWorld().getEntitiesWithinAABB(entitySelectorFarm.getEntityClass(), harvestBox, entitySelectorFarm);
|
||||
List<ItemStack> stacks = new ArrayList<>();
|
||||
for (EntityItem entity : entityItems) {
|
||||
ItemStack contained = entity.getEntityItem();
|
||||
|
||||
Reference in new issue
Block a user