Search in sources :

Example 1 with TreeDecorator

use of forestry.arboriculture.worldgen.TreeDecorator in project ForestryMC by ForestryMC.

the class ModuleArboriculture method preInit.

@Override
public void preInit() {
    MinecraftForge.EVENT_BUS.register(this);
    if (Config.generateTrees) {
        MinecraftForge.TERRAIN_GEN_BUS.register(new TreeDecorator());
    }
    BlockRegistryArboriculture blocks = getBlocks();
    WoodAccess woodAccess = WoodAccess.getInstance();
    woodAccess.registerLogs(blocks.logs);
    woodAccess.registerPlanks(blocks.planks);
    woodAccess.registerSlabs(blocks.slabs);
    woodAccess.registerFences(blocks.fences);
    woodAccess.registerFenceGates(blocks.fenceGates);
    woodAccess.registerStairs(blocks.stairs);
    woodAccess.registerDoors(blocks.doors);
    woodAccess.registerLogs(blocks.logsFireproof);
    woodAccess.registerPlanks(blocks.planksFireproof);
    woodAccess.registerSlabs(blocks.slabsFireproof);
    woodAccess.registerFences(blocks.fencesFireproof);
    woodAccess.registerFenceGates(blocks.fenceGatesFireproof);
    woodAccess.registerStairs(blocks.stairsFireproof);
    woodAccess.registerLogs(blocks.logsVanillaFireproof);
    woodAccess.registerPlanks(blocks.planksVanillaFireproof);
    woodAccess.registerSlabs(blocks.slabsVanillaFireproof);
    woodAccess.registerFences(blocks.fencesVanillaFireproof);
    woodAccess.registerFenceGates(blocks.fenceGatesVanillaFireproof);
    woodAccess.registerStairs(blocks.stairsVanillaFireproof);
    // Init rendering
    proxy.initializeModels();
    // Commands
    ModuleCore.rootCommand.addChildCommand(new CommandTree());
    if (ModuleManager.getInstance().isModuleEnabled(Constants.MOD_ID, ForestryModuleUids.SORTING)) {
        ArboricultureFilterRuleType.init();
    }
}
Also used : TreeDecorator(forestry.arboriculture.worldgen.TreeDecorator) BlockRegistryArboriculture(forestry.arboriculture.blocks.BlockRegistryArboriculture) CommandTree(forestry.arboriculture.commands.CommandTree)

Aggregations

BlockRegistryArboriculture (forestry.arboriculture.blocks.BlockRegistryArboriculture)1 CommandTree (forestry.arboriculture.commands.CommandTree)1 TreeDecorator (forestry.arboriculture.worldgen.TreeDecorator)1