當前位置: 首頁>>代碼示例>>Java>>正文


Java BiomeDictionary.addTypes方法代碼示例

本文整理匯總了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));
}
 
開發者ID:Alec-WAM,項目名稱:CrystalMod,代碼行數:12,代碼來源:ModBiomes.java

示例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);
}
 
開發者ID:TeamWizardry,項目名稱:Wizardry,代碼行數:9,代碼來源:ModBiomes.java

示例3: reg

import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
public void reg() {
	GameRegistry.register(this);
	BiomeDictionary.addTypes(this, types);
}
 
開發者ID:trigg,項目名稱:Firma,代碼行數:5,代碼來源:FirmaBiome.java

示例4: registerTypes

import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
	BiomeDictionary.addTypes(this, Type.FOREST, Type.HOT);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:6,代碼來源:ExPWarmForest.java

示例5: registerTypes

import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
	BiomeDictionary.addTypes(this, Type.FOREST);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:6,代碼來源:ExPDenseWarmForest.java

示例6: registerTypes

import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
	BiomeDictionary.addTypes(this, Type.PLAINS);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:6,代碼來源:ExPPlains.java

示例7: registerTypes

import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
	BiomeDictionary.addTypes(this, Type.SWAMP);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:6,代碼來源:ExPLake.java

示例8: registerTypes

import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
	BiomeDictionary.addTypes(this, Type.OCEAN);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:6,代碼來源:ExPOcean.java

示例9: registerTypes

import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
	BiomeDictionary.addTypes(this, Type.PLAINS, Type.HOT);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:6,代碼來源:ExPSavanna.java

示例10: registerTypes

import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
	BiomeDictionary.addTypes(this, Type.FOREST, Type.COLD);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:6,代碼來源:ExPColdForest.java

示例11: registerTypes

import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
	BiomeDictionary.addTypes(this, Type.PLAINS, Type.COLD);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:6,代碼來源:ExPColdPlains.java

示例12: registerTypes

import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
	BiomeDictionary.addTypes(this, Type.RIVER);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:6,代碼來源:ExPRiver.java

示例13: registerTypes

import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
	BiomeDictionary.addTypes(this, Type.BEACH);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:6,代碼來源:ExPBeach.java

示例14: registerTypes

import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
	BiomeDictionary.addTypes(this, Type.MOUNTAIN);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:6,代碼來源:ExPMountains.java

示例15: registerTypes

import net.minecraftforge.common.BiomeDictionary; //導入方法依賴的package包/類
@Override
public void registerTypes()
{
	BiomeDictionary.addTypes(this, Type.JUNGLE, Type.HOT, Type.LUSH);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:6,代碼來源:ExPJungle.java


注:本文中的net.minecraftforge.common.BiomeDictionary.addTypes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。