use of forestry.arboriculture.commands.CommandTree 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();
}
}
Aggregations