本文整理匯總了Java中net.minecraftforge.common.BiomeDictionary.addTypes方法的典型用法代碼示例。如果您正苦於以下問題:Java BiomeDictionary.addTypes方法的具體用法?Java BiomeDictionary.addTypes怎麽用?Java BiomeDictionary.addTypes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraftforge.common.BiomeDictionary
的用法示例。
在下文中一共展示了BiomeDictionary.addTypes方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: init
import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
public static void init(){
float height = ((float)68 - 65.0F) / 17.0F;
float heightVar = Math.abs((((float)10 - 7.0F) / (20.0F * 4.0F) + ((float)5 - 4.0F) / 20.0F) / 2.0F);
Biome.BiomeProperties bambooProperties = new Biome.BiomeProperties("Bamboo Forest").setBaseHeight(height).setHeightVariation(heightVar).setTemperature(0.8F).setRainfall(0.4F);
BAMBOO_FOREST = (BiomeBambooForest) new BiomeBambooForest(bambooProperties).setRegistryName(CrystalMod.resourceL("bambooforest"));
GameRegistry.register(BAMBOO_FOREST);
BiomeManager.addBiome(BiomeType.WARM, new BiomeEntry(BAMBOO_FOREST, 10));
BiomeDictionary.addTypes(BAMBOO_FOREST, BiomeDictionary.Type.FOREST, BiomeDictionary.Type.WET);
BiomeManager.addSpawnBiome(BAMBOO_FOREST);
ModLogger.info("Added "+BAMBOO_FOREST.getBiomeName()+" id = "+Biome.getIdForBiome(BAMBOO_FOREST));
}
示例2: register
import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@SubscribeEvent
public static void register(RegistryEvent.Register<Biome> evt) {
IForgeRegistry<Biome> r = evt.getRegistry();
r.register(BIOME_UNDERWORLD);
BiomeDictionary.addTypes(BIOME_UNDERWORLD, BiomeDictionary.Type.VOID, BiomeDictionary.Type.SPOOKY, BiomeDictionary.Type.MAGICAL, BiomeDictionary.Type.DRY, BiomeDictionary.Type.COLD);
}
示例3: reg
import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
public void reg() {
GameRegistry.register(this);
BiomeDictionary.addTypes(this, types);
}
示例4: registerTypes
import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
BiomeDictionary.addTypes(this, Type.FOREST, Type.HOT);
}
示例5: registerTypes
import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
BiomeDictionary.addTypes(this, Type.FOREST);
}
示例6: registerTypes
import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
BiomeDictionary.addTypes(this, Type.PLAINS);
}
示例7: registerTypes
import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
BiomeDictionary.addTypes(this, Type.SWAMP);
}
示例8: registerTypes
import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
BiomeDictionary.addTypes(this, Type.OCEAN);
}
示例9: registerTypes
import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
BiomeDictionary.addTypes(this, Type.PLAINS, Type.HOT);
}
示例10: registerTypes
import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
BiomeDictionary.addTypes(this, Type.FOREST, Type.COLD);
}
示例11: registerTypes
import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
BiomeDictionary.addTypes(this, Type.PLAINS, Type.COLD);
}
示例12: registerTypes
import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
BiomeDictionary.addTypes(this, Type.RIVER);
}
示例13: registerTypes
import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
BiomeDictionary.addTypes(this, Type.BEACH);
}
示例14: registerTypes
import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
BiomeDictionary.addTypes(this, Type.MOUNTAIN);
}
示例15: registerTypes
import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
BiomeDictionary.addTypes(this, Type.JUNGLE, Type.HOT, Type.LUSH);
}