use of mcjty.lib.varia.BlockMeta in project RFTools by McJty.
the class DimensionInformation method getMaterialAndFluidModifiers.
public static void getMaterialAndFluidModifiers(List<DimletKey> modifiers, List<BlockMeta> blocks, List<Block> fluids) {
if (modifiers != null) {
for (DimletKey modifier : modifiers) {
if (modifier.getType() == DimletType.DIMLET_MATERIAL) {
BlockMeta block = DimletObjectMapping.idToBlock.get(modifier);
blocks.add(block);
} else if (modifier.getType() == DimletType.DIMLET_LIQUID) {
Block fluid = DimletObjectMapping.idToFluid.get(modifier);
fluids.add(fluid);
}
}
}
}
Aggregations