use of org.spongepowered.common.world.gen.SpongePopulatorType in project SpongeCommon by SpongePowered.
the class PopulatorTypeRegistryModule method registerDefaults.
@Override
public void registerDefaults() {
this.populatorTypeMappings.put("minecraft:big_mushroom", new SpongePopulatorType("big_mushroom"));
this.populatorTypeMappings.put("minecraft:block_blob", new SpongePopulatorType("block_blob"));
this.populatorTypeMappings.put("minecraft:cactus", new SpongePopulatorType("cactus"));
this.populatorTypeMappings.put("minecraft:chorus_flower", new SpongePopulatorType("chorus_flower"));
this.populatorTypeMappings.put("minecraft:dead_bush", new SpongePopulatorType("dead_bush"));
this.populatorTypeMappings.put("minecraft:desert_well", new SpongePopulatorType("desert_well"));
this.populatorTypeMappings.put("minecraft:double_plant", new SpongePopulatorType("double_plant"));
this.populatorTypeMappings.put("minecraft:dungeon", new SpongePopulatorType("dungeon"));
this.populatorTypeMappings.put("minecraft:end_island", new SpongePopulatorType("end_island"));
this.populatorTypeMappings.put("minecraft:flower", new SpongePopulatorType("flower"));
this.populatorTypeMappings.put("minecraft:forest", new SpongePopulatorType("forest"));
this.populatorTypeMappings.put("minecraft:fossil", new SpongePopulatorType("fossil"));
this.populatorTypeMappings.put("minecraft:glowstone", new SpongePopulatorType("glowstone"));
this.populatorTypeMappings.put("minecraft:ice_path", new SpongePopulatorType("ice_path"));
this.populatorTypeMappings.put("minecraft:ice_spike", new SpongePopulatorType("ice_spike"));
this.populatorTypeMappings.put("minecraft:lake", new SpongePopulatorType("lake"));
this.populatorTypeMappings.put("minecraft:melon", new SpongePopulatorType("melon"));
this.populatorTypeMappings.put("minecraft:mushroom", new SpongePopulatorType("mushroom"));
this.populatorTypeMappings.put("minecraft:nether_fire", new SpongePopulatorType("nether_fire"));
this.populatorTypeMappings.put("minecraft:ore", new SpongePopulatorType("ore"));
this.populatorTypeMappings.put("minecraft:pumpkin", new SpongePopulatorType("pumpkin"));
this.populatorTypeMappings.put("minecraft:generic_block", new SpongePopulatorType("generic_block"));
this.populatorTypeMappings.put("minecraft:generic_object", new SpongePopulatorType("generic_object"));
this.populatorTypeMappings.put("minecraft:reed", new SpongePopulatorType("reed"));
this.populatorTypeMappings.put("minecraft:sea_floor", new SpongePopulatorType("sea_floor"));
this.populatorTypeMappings.put("minecraft:shrub", new SpongePopulatorType("shrub"));
this.populatorTypeMappings.put("minecraft:vine", new SpongePopulatorType("vine"));
this.populatorTypeMappings.put("minecraft:water_lily", new SpongePopulatorType("water_lily"));
// internal
this.populatorTypeMappings.put("minecraft:animal", new SpongePopulatorType("animal"));
this.populatorTypeMappings.put("minecraft:bonus_chest", new SpongePopulatorType("bonus_chest"));
this.populatorTypeMappings.put("minecraft:end_spike", new SpongePopulatorType("end_spike"));
this.populatorTypeMappings.put("minecraft:ender_dragon", new SpongePopulatorType("ender_dragon"));
this.populatorTypeMappings.put("minecraft:plains_grass", new SpongePopulatorType("plains_grass"));
this.populatorTypeMappings.put("minecraft:snow", new SpongePopulatorType("snow"));
this.populatorTypeMappings.put("minecraft:structure", new SpongePopulatorType("structure"));
this.populatorTypeMappings.put("minecraft:unknown", new SpongePopulatorType("unknown"));
this.populatorClassToTypeMappings.put(WorldGenBigMushroom.class, this.populatorTypeMappings.get("minecraft:big_mushroom"));
this.populatorClassToTypeMappings.put(WorldGenBigTree.class, this.populatorTypeMappings.get("minecraft:forest"));
this.populatorClassToTypeMappings.put(WorldGenBirchTree.class, this.populatorTypeMappings.get("minecraft:forest"));
this.populatorClassToTypeMappings.put(WorldGenBlockBlob.class, this.populatorTypeMappings.get("minecraft:block_blob"));
this.populatorClassToTypeMappings.put(WorldGenBush.class, this.populatorTypeMappings.get("minecraft:mushroom"));
this.populatorClassToTypeMappings.put(WorldGenCactus.class, this.populatorTypeMappings.get("minecraft:cactus"));
this.populatorClassToTypeMappings.put(WorldGenClay.class, this.populatorTypeMappings.get("minecraft:sea_floor"));
this.populatorClassToTypeMappings.put(WorldGenDeadBush.class, this.populatorTypeMappings.get("minecraft:dead_bush"));
this.populatorClassToTypeMappings.put(WorldGenDesertWells.class, this.populatorTypeMappings.get("minecraft:desert_well"));
this.populatorClassToTypeMappings.put(WorldGenDoublePlant.class, this.populatorTypeMappings.get("minecraft:double_plant"));
this.populatorClassToTypeMappings.put(WorldGenDungeons.class, this.populatorTypeMappings.get("minecraft:dungeon"));
this.populatorClassToTypeMappings.put(WorldGenEndIsland.class, this.populatorTypeMappings.get("minecraft:end_island"));
this.populatorClassToTypeMappings.put(WorldGeneratorBonusChest.class, this.populatorTypeMappings.get("minecraft:bonus_chest"));
this.populatorClassToTypeMappings.put(WorldGenFire.class, this.populatorTypeMappings.get("minecraft:generic_block"));
this.populatorClassToTypeMappings.put(WorldGenFlowers.class, this.populatorTypeMappings.get("minecraft:flower"));
this.populatorClassToTypeMappings.put(WorldGenFossils.class, this.populatorTypeMappings.get("minecraft:fossil"));
this.populatorClassToTypeMappings.put(WorldGenGlowStone1.class, this.populatorTypeMappings.get("minecraft:glowstone"));
this.populatorClassToTypeMappings.put(WorldGenGlowStone2.class, this.populatorTypeMappings.get("minecraft:glowstone"));
this.populatorClassToTypeMappings.put(WorldGenHellLava.class, this.populatorTypeMappings.get("minecraft:generic_block"));
this.populatorClassToTypeMappings.put(WorldGenHugeTrees.class, this.populatorTypeMappings.get("minecraft:forest"));
this.populatorClassToTypeMappings.put(WorldGenIcePath.class, this.populatorTypeMappings.get("minecraft:ice_path"));
this.populatorClassToTypeMappings.put(WorldGenIceSpike.class, this.populatorTypeMappings.get("minecraft:ice_spike"));
this.populatorClassToTypeMappings.put(WorldGenLakes.class, this.populatorTypeMappings.get("minecraft:lake"));
this.populatorClassToTypeMappings.put(WorldGenLiquids.class, this.populatorTypeMappings.get("minecraft:generic_block"));
this.populatorClassToTypeMappings.put(WorldGenMegaJungle.class, this.populatorTypeMappings.get("minecraft:forest"));
this.populatorClassToTypeMappings.put(WorldGenMegaPineTree.class, this.populatorTypeMappings.get("minecraft:forest"));
this.populatorClassToTypeMappings.put(WorldGenMelon.class, this.populatorTypeMappings.get("minecraft:melon"));
this.populatorClassToTypeMappings.put(WorldGenMinable.class, this.populatorTypeMappings.get("minecraft:ore"));
this.populatorClassToTypeMappings.put(WorldGenPumpkin.class, this.populatorTypeMappings.get("minecraft:pumpkin"));
this.populatorClassToTypeMappings.put(WorldGenReed.class, this.populatorTypeMappings.get("minecraft:reed"));
this.populatorClassToTypeMappings.put(WorldGenSand.class, this.populatorTypeMappings.get("minecraft:sea_floor"));
this.populatorClassToTypeMappings.put(WorldGenSavannaTree.class, this.populatorTypeMappings.get("minecraft:forest"));
this.populatorClassToTypeMappings.put(WorldGenShrub.class, this.populatorTypeMappings.get("minecraft:forest"));
this.populatorClassToTypeMappings.put(WorldGenSpikes.class, this.populatorTypeMappings.get("minecraft:ender_crystal_platform"));
this.populatorClassToTypeMappings.put(WorldGenSwamp.class, this.populatorTypeMappings.get("minecraft:forest"));
this.populatorClassToTypeMappings.put(WorldGenTaiga1.class, this.populatorTypeMappings.get("minecraft:forest"));
this.populatorClassToTypeMappings.put(WorldGenTaiga2.class, this.populatorTypeMappings.get("minecraft:forest"));
this.populatorClassToTypeMappings.put(WorldGenTallGrass.class, this.populatorTypeMappings.get("minecraft:shrub"));
this.populatorClassToTypeMappings.put(WorldGenTrees.class, this.populatorTypeMappings.get("minecraft:forest"));
this.populatorClassToTypeMappings.put(WorldGenVines.class, this.populatorTypeMappings.get("minecraft:vine"));
this.populatorClassToTypeMappings.put(WorldGenWaterlily.class, this.populatorTypeMappings.get("minecraft:water_lily"));
}
use of org.spongepowered.common.world.gen.SpongePopulatorType in project SpongeForge by SpongePowered.
the class SpongeForgeModuleRegistry method registerForgeData.
public static void registerForgeData() {
SpongePropertyRegistry propertyRegistry = SpongeImpl.getPropertyRegistry();
// Property registration
propertyRegistry.register(LightEmissionProperty.class, new ForgeLightEmissionPropertyStore());
propertyRegistry.register(MatterProperty.class, new ForgeMatterPropertyStore());
propertyRegistry.register(SolidCubeProperty.class, new ForgeSolidCubePropertyStore());
// Data registration
DataUtil.registerDualProcessor(FluidTankData.class, SpongeFluidTankData.class, ImmutableFluidTankData.class, ImmutableSpongeFluidTankData.class, new ForgeFluidTankDataProcessor());
// Value registration
// Populator types
PopulatorTypeRegistryModule populatorTypeModule = PopulatorTypeRegistryModule.getInstance();
populatorTypeModule.customTypeFunction = (type) -> new SpongePopulatorType(type.getSimpleName(), StaticMixinForgeHelper.getModIdFromClass(type));
}
Aggregations