Search in sources :

Example 1 with BlockProtectors

use of mcjty.rftools.blocks.blockprotector.BlockProtectors in project RFTools by McJty.

the class ForgeEventHandlers method getProtectors.

private Collection<GlobalCoordinate> getProtectors(World world, int x, int y, int z) {
    Collection<GlobalCoordinate> protectors;
    BlockProtectors blockProtectors = BlockProtectors.getProtectors(world);
    if (blockProtectors == null) {
        protectors = Collections.emptyList();
    } else {
        int id = world.provider.dimensionId;
        protectors = blockProtectors.findProtectors(x, y, z, id, 2);
    }
    return protectors;
}
Also used : GlobalCoordinate(mcjty.lib.varia.GlobalCoordinate) BlockProtectors(mcjty.rftools.blocks.blockprotector.BlockProtectors)

Aggregations

GlobalCoordinate (mcjty.lib.varia.GlobalCoordinate)1 BlockProtectors (mcjty.rftools.blocks.blockprotector.BlockProtectors)1