Search in sources :

Example 1 with MaterialNegativeSpace

use of ivorius.reccomplex.block.materials.MaterialNegativeSpace in project RecurrentComplex by Ivorforce.

the class RCRegistryHandler method preInit.

public static void preInit(FMLPreInitializationEvent event, RecurrentComplex mod) {
    if (!RecurrentComplex.isLite()) {
        tabStructureTools = new CreativeTabs("structureTools") {

            @Override
            public ItemStack getTabIconItem() {
                return new ItemStack(RCItems.blockSelector);
            }
        };
        tabLoot = new CreativeTabs("inventoryGenerators") {

            @Override
            public ItemStack getTabIconItem() {
                return new ItemStack(RCItems.lootGenerationTag);
            }
        };
    }
    RCMaterials.materialNegativeSpace = new MaterialNegativeSpace();
    RCMaterials.materialGenericSolid = (new Material(MapColor.STONE));
    CapabilityManager.INSTANCE.register(RCEntityInfo.class, new NBTCompoundObjectCapabilityStorage<>(RCEntityInfo.class), RCEntityInfo::new);
    CapabilityManager.INSTANCE.register(CapabilitySelection.class, new NBTCompoundObjectCapabilityStorage<>(CapabilitySelection.class), CapabilitySelection::new);
    blockSelector = new ItemBlockSelectorBlock().setUnlocalizedName("blockSelector");
    blockSelector.setCreativeTab(tabStructureTools);
    register(blockSelector, "block_selector");
    RecurrentComplex.cremapper.registerLegacyIDs(blockSelector, "blockSelector");
    blockSelectorFloating = new ItemBlockSelectorFloating().setUnlocalizedName("blockSelectorFloating");
    blockSelectorFloating.setCreativeTab(tabStructureTools);
    register(blockSelectorFloating, "block_selector_floating");
    RecurrentComplex.cremapper.registerLegacyIDs(blockSelectorFloating, "blockSelectorFloating");
    lootGenerationTag = (ItemLootGenMultiTag) new ItemLootGenMultiTag().setUnlocalizedName("inventoryGenerationTag");
    lootGenerationTag.setCreativeTab(tabLoot);
    register(lootGenerationTag, "inventory_generation_tag");
    RecurrentComplex.cremapper.registerLegacyIDs(lootGenerationTag, "inventoryGenerationTag");
    lootGenerationSingleTag = (ItemLootGenSingleTag) new ItemLootGenSingleTag().setUnlocalizedName("inventoryGenerationSingleTag");
    lootGenerationSingleTag.setCreativeTab(tabLoot);
    register(lootGenerationSingleTag, "inventory_generation_single_tag");
    RecurrentComplex.cremapper.registerLegacyIDs(lootGenerationSingleTag, "inventoryGenerationSingleTag");
    lootGenerationComponentTag = (ItemLootTableComponentTag) new ItemLootTableComponentTag().setUnlocalizedName("inventoryGenerationComponentTag");
    lootGenerationComponentTag.setCreativeTab(tabLoot);
    register(lootGenerationComponentTag, "inventory_generation_component_tag");
    artifactGenerationTag = new ItemArtifactGenerator().setUnlocalizedName("artifactGenerationTag");
    artifactGenerationTag.setCreativeTab(tabLoot);
    register(artifactGenerationTag, "artifact_generation_tag");
    RecurrentComplex.cremapper.registerLegacyIDs(artifactGenerationTag, "artifactGenerationTag");
    bookGenerationTag = new ItemBookGenerator().setUnlocalizedName("bookGenerationTag");
    bookGenerationTag.setCreativeTab(tabLoot);
    register(bookGenerationTag, "book_generation_tag");
    RecurrentComplex.cremapper.registerLegacyIDs(bookGenerationTag, "bookGenerationTag");
    genericSpace = (BlockGenericSpace) new BlockGenericSpace().setUnlocalizedName("negativeSpace");
    genericSpace.setCreativeTab(tabStructureTools);
    register(genericSpace, "generic_space", new ItemBlockGenericSpace(genericSpace));
    RecurrentComplex.cremapper.registerLegacyIDs(genericSpace, true, "negativeSpace");
    genericSolid = new BlockGenericSolid().setUnlocalizedName("naturalFloor");
    genericSolid.setCreativeTab(tabStructureTools);
    register(genericSolid, "generic_solid", new ItemBlockGenericSolid(genericSolid));
    RecurrentComplex.cremapper.registerLegacyIDs(genericSolid, true, "naturalFloor");
    structureGenerator = new BlockStructureGenerator().setUnlocalizedName("structureGenerator");
    register(structureGenerator, "structure_generator");
    register(BlockStructureGenerator.TileEntityStructureGenerator.class, "RCStructureGenerator", "SGStructureGenerator");
    RecurrentComplex.cremapper.registerLegacyIDs(structureGenerator, true, "structureGenerator");
    mazeGenerator = new BlockMazeGenerator().setUnlocalizedName("mazeGenerator");
    register(mazeGenerator, "maze_generator");
    register(BlockMazeGenerator.TileEntityMazeGenerator.class, "RCMazeGenerator", "SGMazeGenerator");
    RecurrentComplex.cremapper.registerLegacyIDs(mazeGenerator, true, "mazeGenerator");
    spawnCommands = new BlockSpawnCommand().setUnlocalizedName("spawn_command");
    register(spawnCommands, "weighted_command_block");
    register(BlockSpawnCommand.TileEntitySpawnCommand.class, "RCSpawnCommand");
    RecurrentComplex.cremapper.registerLegacyIDs(spawnCommands, true, "spawnCommand");
    spawnScript = new BlockScript().setUnlocalizedName("spawn_script");
    spawnScript.setCreativeTab(tabStructureTools);
    register(spawnScript, "spawn_script");
    register(TileEntityBlockScript.class, "RCSpawnScript");
    inspector = new ItemInspector().setUnlocalizedName("recinspector");
    inspector.setCreativeTab(tabStructureTools);
    register(inspector, "inspector");
    // Set preset defaults
    GenericPlacerPresets.instance().getRegistry().register("clear", MOD_ID, PresetRegistry.fullPreset("clear", new GenericPlacer(), new PresetRegistry.Metadata("Clear", "Do not place anywhere")), true, LeveledRegistry.Level.INTERNAL);
    GenericPlacerPresets.instance().setDefault("clear");
    DimensionMatcherPresets.instance().getRegistry().register("clear", MOD_ID, PresetRegistry.fullPreset("clear", new ArrayList<>(), new PresetRegistry.Metadata("None", "No dimensions")), true, LeveledRegistry.Level.INTERNAL);
    DimensionMatcherPresets.instance().setDefault("clear");
    BiomeMatcherPresets.instance().getRegistry().register("clear", MOD_ID, PresetRegistry.fullPreset("clear", new ArrayList<>(), new PresetRegistry.Metadata("None", "No biomes")), true, LeveledRegistry.Level.INTERNAL);
    BiomeMatcherPresets.instance().setDefault("clear");
    WeightedBlockStatePresets.instance().getRegistry().register("clear", MOD_ID, PresetRegistry.fullPreset("clear", new ArrayList<>(), new PresetRegistry.Metadata("None", "No blocks")), true, LeveledRegistry.Level.INTERNAL);
    WeightedBlockStatePresets.instance().setDefault("clear");
    TransfomerPresets.instance().getRegistry().register("clear", MOD_ID, PresetRegistry.fullPreset("clear", new TransformerMulti.Data(), new PresetRegistry.Metadata("None", "No transformers")), true, LeveledRegistry.Level.INTERNAL);
    TransfomerPresets.instance().setDefault("clear");
    GenerationSanityChecker.init();
}
Also used : ArrayList(java.util.ArrayList) GenericPlacer(ivorius.reccomplex.world.gen.feature.structure.generic.placement.GenericPlacer) CapabilitySelection(ivorius.reccomplex.capability.CapabilitySelection) BlockMazeGenerator(ivorius.reccomplex.block.legacy.BlockMazeGenerator) Material(net.minecraft.block.material.Material) BlockStructureGenerator(ivorius.reccomplex.block.legacy.BlockStructureGenerator) CreativeTabs(net.minecraft.creativetab.CreativeTabs) RCEntityInfo(ivorius.reccomplex.capability.RCEntityInfo) MaterialNegativeSpace(ivorius.reccomplex.block.materials.MaterialNegativeSpace) BlockSpawnCommand(ivorius.reccomplex.block.legacy.BlockSpawnCommand) ItemStack(net.minecraft.item.ItemStack)

Aggregations

BlockMazeGenerator (ivorius.reccomplex.block.legacy.BlockMazeGenerator)1 BlockSpawnCommand (ivorius.reccomplex.block.legacy.BlockSpawnCommand)1 BlockStructureGenerator (ivorius.reccomplex.block.legacy.BlockStructureGenerator)1 MaterialNegativeSpace (ivorius.reccomplex.block.materials.MaterialNegativeSpace)1 CapabilitySelection (ivorius.reccomplex.capability.CapabilitySelection)1 RCEntityInfo (ivorius.reccomplex.capability.RCEntityInfo)1 GenericPlacer (ivorius.reccomplex.world.gen.feature.structure.generic.placement.GenericPlacer)1 ArrayList (java.util.ArrayList)1 Material (net.minecraft.block.material.Material)1 CreativeTabs (net.minecraft.creativetab.CreativeTabs)1 ItemStack (net.minecraft.item.ItemStack)1