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


Java Biome.BiomeProperties方法代碼示例

本文整理匯總了Java中net.minecraft.world.biome.Biome.BiomeProperties方法的典型用法代碼示例。如果您正苦於以下問題:Java Biome.BiomeProperties方法的具體用法?Java Biome.BiomeProperties怎麽用?Java Biome.BiomeProperties使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.minecraft.world.biome.Biome的用法示例。


在下文中一共展示了Biome.BiomeProperties方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: init

import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
@CustomRegistry
public static void init() {
	Biome.BiomeProperties properties = new Biome.BiomeProperties("Rubber Plantation");
	properties.setTemperature(0.95F);
	properties.setRainfall(0.95F);
	properties.setBaseHeight(0.45F);
	properties.setHeightVariation(0.4F);

	rubberPlantationBiome = new RubberPlantationBiome(properties);
	rubberPlantationBiome.setRegistryName(new ResourceLocation(TRConstants.MOD_ID, "rubberPlantation"));

	GameRegistry.register(rubberPlantationBiome);

	BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(rubberPlantationBiome, 20));
	BiomeManager.addSpawnBiome(rubberPlantationBiome);
	BiomeProvider.allowedBiomes.add(rubberPlantationBiome);
}
 
開發者ID:TechReborn,項目名稱:TechReborn3,代碼行數:18,代碼來源:TechRebornWorld.java

示例2: NeoBiome

import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public NeoBiome(String name, Biome.BiomeProperties properties) {
	super(properties.setRainDisabled());
	this.setRegistryName(name);
	this.name = name;
}
 
開發者ID:elytra,項目名稱:ThermionicsWorld,代碼行數:6,代碼來源:NeoBiome.java

示例3: PLBiome

import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public PLBiome(Biome.BiomeProperties properties)
{
    super(properties);
}
 
開發者ID:ProxyNeko,項目名稱:Proxys-Lib,代碼行數:5,代碼來源:PLBiome.java

示例4: create

import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public static ExPDenseWarmForest create()
{
	return new ExPDenseWarmForest(new Biome.BiomeProperties("densewarmforest"), 1.2F, 1.2F, 8F, 0F);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:5,代碼來源:ExPDenseWarmForest.java

示例5: create

import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public static ExPRareForest create()
{
	return new ExPRareForest(new Biome.BiomeProperties("rareforest"), 1.05F, 1F, 3F, 0F);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:5,代碼來源:ExPRareForest.java

示例6: create

import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public static ExPForest create()
{
	return new ExPForest(new Biome.BiomeProperties("forest"), 1.05F, 1F, 3F, 0F);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:5,代碼來源:ExPForest.java

示例7: create

import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public static ExPDenseForest create()
{
	return new ExPDenseForest(new Biome.BiomeProperties("denseforest"), 1.2F, 1.2F, 0F, 0F);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:5,代碼來源:ExPDenseForest.java

示例8: create

import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public static ExPColdForest create()
{
	return new ExPColdForest(new Biome.BiomeProperties("coldforest"), 1.05F, 1F, -7F, 0F);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:5,代碼來源:ExPColdForest.java

示例9: create

import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public static ExPDenseColdForest create()
{
	return new ExPDenseColdForest(new Biome.BiomeProperties("densecoldforest"), 1.2F, 1.2F, -8F, 0F);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:5,代碼來源:ExPDenseColdForest.java

示例10: create

import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public static ExPJungle create()
{
	return new ExPJungle(new Biome.BiomeProperties("jungle"), 1.3F, 1.5F, 6F, 0.1F);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:5,代碼來源:ExPJungle.java

示例11: create

import net.minecraft.world.biome.Biome; //導入方法依賴的package包/類
public static ExPWarmForest create()
{
	return new ExPWarmForest(new Biome.BiomeProperties("warmforest"), 1.05F, 1F, 9F, 0F);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:5,代碼來源:ExPWarmForest.java


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