Package forestry.api.farming

Examples of forestry.api.farming.ICrop


    @Override
    public Collection<ICrop> harvest(int x, int y, int z, ForgeDirection d, int extent){
        List<ICrop> crops = new ArrayList<ICrop>();
        for(int i = 0; i < extent; i++) {
            ICrop crop = farmable.getCropAt(housing.getWorld(), x + d.offsetX * i, y + d.offsetY * i + 1, z + d.offsetZ * i);
            if(crop != null) crops.add(crop);
        }
        return crops;
    }
View Full Code Here


    @Override
    public Collection<ICrop> harvest(int x, int y, int z, ForgeDirection d, int extent){
        List<ICrop> crops = new ArrayList<ICrop>();
        for(int i = 0; i < extent; i++) {
            ICrop crop = farmable.getCropAt(housing.getWorld(), x + d.offsetX * i, y + d.offsetY * i - 3, z + d.offsetZ * i);
            if(crop != null) crops.add(crop);
        }
        return crops;
    }
View Full Code Here

TOP

Related Classes of forestry.api.farming.ICrop

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.