Package mods.railcraft.common.util.misc

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

Related Classes of mods.railcraft.common.util.misc.ITileFilter

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.