Search in sources :

Example 1 with BlockType

use of mekanism.common.content.blocktype.BlockType in project Mekanism by mekanism.

the class AttributeTier method getPassthroughType.

public static <T extends ITier> BlockType getPassthroughType(T tier) {
    if (typeCache.containsKey(tier)) {
        return typeCache.get(tier);
    }
    BlockType type = BlockTypeBuilder.createBlock(MekanismLang.EMPTY).with(new AttributeTier<>(tier)).build();
    typeCache.put(tier, type);
    return type;
}
Also used : BlockType(mekanism.common.content.blocktype.BlockType)

Aggregations

BlockType (mekanism.common.content.blocktype.BlockType)1