private void registerSpatialBiome( IForgeRegistry<Biome> registry ) { if( !AEConfig.instance().isFeatureEnabled( AEFeature.SPATIAL_IO ) ) { return; } if( this.storageBiome == null ) { this.storageBiome = new BiomeGenStorage(); } registry.register( this.storageBiome.setRegistryName( "appliedenergistics2:storage_biome" ) ); }
private static void register(IForgeRegistry<Biome> r, Biome item, BiomeDictionary.Type... types) { r.register(item.setRegistryName(MOD_ID, item.biomeName.replace(MOD_NAME + " ", "").replace(' ', '_').toLowerCase())); BiomeDictionary.addTypes(item, types); }
private static <T extends Biome> void registerBiome(final IForgeRegistry<Biome> registry, final T biome, final String biomeName, final BiomeManager.BiomeType biomeType, final int weight, final BiomeDictionary.Type... types) { registry.register(biome.setRegistryName(Reference.MOD_ID, biomeName)); BiomeDictionary.addTypes(biome, types); //BiomeManager.addBiome(biomeType, new BiomeManager.BiomeEntry(biome, weight)); for(int x = 0; x < weight; x++) BIOME_LIST.add((BiomeBaseErebus) biome); //temp hack for now } }
public static void register(IForgeRegistry<Biome> registry, Biome biome, String name, BiomeType type, int weight, boolean enable, boolean spawn, boolean village, BiomeDictionary.Type... biomeDictTypes) { if (!enable) { return; } biome.setRegistryName(name); registry.register(biome); for (BiomeDictionary.Type biomeDictType : biomeDictTypes) { BiomeDictionary.addTypes(biome, biomeDictType); } biomeList.add(new WrappedBiomeEntry(biome, type, weight, spawn, village)); }
biome.setRegistryName(ModData.MOD_ID, this.rLoc.toLowerCase()); RegistryEventHandler.registry.register(biome);