Examples of ITileFilter


Examples of mods.railcraft.common.util.misc.ITileFilter

        }
        return map;
    }

    public static IInventory getInventoryFromSide(World world, int x, int y, int z, ForgeDirection side, final Class<? extends IInventory> type, final Class<? extends IInventory> exclude) {
        return getInventoryFromSide(world, x, y, z, side, new ITileFilter() {
            @Override
            public boolean matches(TileEntity tile) {
                if (type != null && !type.isAssignableFrom(tile.getClass()))
                    return false;
                return exclude == null || !exclude.isAssignableFrom(tile.getClass());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.