Search in sources :

Example 6 with Material

use of slimeknights.tconstruct.library.materials.Material 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

Material (slimeknights.tconstruct.library.materials.Material)6 MMDMaterial (com.mcmoddev.lib.material.MMDMaterial)3 MaterialIntegration (slimeknights.tconstruct.library.MaterialIntegration)2 Block (net.minecraft.block.Block)1 Item (net.minecraft.item.Item)1 ItemStack (net.minecraft.item.ItemStack)1 Fluid (net.minecraftforge.fluids.Fluid)1 IForgeRegistry (net.minecraftforge.registries.IForgeRegistry)1 RecipeMatch (slimeknights.mantle.util.RecipeMatch)1 ArrowShaftMaterialStats (slimeknights.tconstruct.library.materials.ArrowShaftMaterialStats)1 BowMaterialStats (slimeknights.tconstruct.library.materials.BowMaterialStats)1 ExtraMaterialStats (slimeknights.tconstruct.library.materials.ExtraMaterialStats)1 FletchingMaterialStats (slimeknights.tconstruct.library.materials.FletchingMaterialStats)1 HandleMaterialStats (slimeknights.tconstruct.library.materials.HandleMaterialStats)1 HeadMaterialStats (slimeknights.tconstruct.library.materials.HeadMaterialStats)1