Search in sources :

Example 1 with IForgeRegistry

use of net.minecraftforge.registries.IForgeRegistry in project EnderIO by SleepyTrousers.

the class Metal method createMaterial.

public static void createMaterial(@Nonnull final Alloy alloy) {
    TicMaterials.setMaterial(alloy, new Material(alloy.getBaseName(), alloy.getColor()));
    TicMaterials.getMaterial(alloy).addCommonItems(alloy.getOreName());
    TinkerRegistry.integrate(new MaterialIntegration(TicMaterials.getMaterial(alloy), null, alloy.getOreName()) {

        @Override
        public void registerFluidBlock(IForgeRegistry<Block> registry) {
        }
    }).preInit();
    TicMaterials.getData(alloy).stats(TicMaterials.getMaterial(alloy));
}
Also used : MaterialIntegration(slimeknights.tconstruct.library.MaterialIntegration) IForgeRegistry(net.minecraftforge.registries.IForgeRegistry) Material(slimeknights.tconstruct.library.materials.Material)

Aggregations

IForgeRegistry (net.minecraftforge.registries.IForgeRegistry)1 MaterialIntegration (slimeknights.tconstruct.library.MaterialIntegration)1 Material (slimeknights.tconstruct.library.materials.Material)1