Search in sources :

Example 31 with BlockMeta

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);
            }
        }
    }
}
Also used : Block(net.minecraft.block.Block) BlockMeta(mcjty.lib.varia.BlockMeta)

Aggregations

BlockMeta (mcjty.lib.varia.BlockMeta)31 Block (net.minecraft.block.Block)18 ItemStack (net.minecraft.item.ItemStack)6 Random (java.util.Random)5 DimletKey (mcjty.rftools.items.dimlets.DimletKey)3 World (net.minecraft.world.World)3 BiomeGenBase (net.minecraft.world.biome.BiomeGenBase)3 HashMap (java.util.HashMap)2 Map (java.util.Map)2 Entity (net.minecraft.entity.Entity)2 EntityPlayer (net.minecraft.entity.player.EntityPlayer)2 TileEntity (net.minecraft.tileentity.TileEntity)2 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 GenericEnergyReceiverTileEntity (mcjty.lib.entity.GenericEnergyReceiverTileEntity)1 HorizontalLayout (mcjty.lib.gui.layout.HorizontalLayout)1 Label (mcjty.lib.gui.widgets.Label)1 Panel (mcjty.lib.gui.widgets.Panel)1 Coordinate (mcjty.lib.varia.Coordinate)1