本文整理汇总了Java中net.minecraft.init.Biomes.STONE_BEACH属性的典型用法代码示例。如果您正苦于以下问题:Java Biomes.STONE_BEACH属性的具体用法?Java Biomes.STONE_BEACH怎么用?Java Biomes.STONE_BEACH使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类net.minecraft.init.Biomes
的用法示例。
在下文中一共展示了Biomes.STONE_BEACH属性的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isPermitted
@Override
public boolean isPermitted(Biome biome) {
return biome instanceof BiomeTaiga || biome instanceof BiomeHills ||
biome == Biomes.STONE_BEACH ||
biome instanceof BiomeForest ||
biome == Biomes.RIVER || biome instanceof BiomePlains;
}
示例2: chooseTemp
/** Assigns a temperature to the biome.
* @return The base temperature for the biome */
private static float chooseTemp(Biome biome) {
if (biome == Biomes.MUTATED_ICE_FLATS) {
return -4;
} else if (biome instanceof BiomeSnow) {
return -3;
} else if (biome == Biomes.FROZEN_RIVER) {
return -2;
} else if (biome == Biomes.COLD_TAIGA ||
biome == Biomes.COLD_TAIGA_HILLS ||
biome == Biomes.MUTATED_TAIGA_COLD) {
return -1;
} else if (biome == Biomes.COLD_BEACH) {
return -0.5F;
} else if (biome instanceof BiomeHills || biome instanceof BiomeTaiga ||
biome instanceof BiomeVoid || biome instanceof BiomeEnd) {
return 0;
} else if (biome == Biomes.STONE_BEACH) {
return 0.5F;
} else if (biome == Biomes.BIRCH_FOREST ||
biome == Biomes.BIRCH_FOREST_HILLS) {
return 1;
} else if (biome instanceof BiomeOcean || biome instanceof BiomeForest
|| biome instanceof BiomeRiver) {
return 2;
} else if (biome instanceof BiomePlains) {
return 2.5F;
} else if (biome instanceof BiomeSwamp || biome instanceof BiomeBeach) {
return 3;
} else if (biome instanceof BiomeMushroomIsland) {
return 4;
} else if (biome instanceof BiomeJungle) {
return 4.5F;
} else if (biome instanceof BiomeSavanna) {
return 5;
} else if (biome instanceof BiomeDesert || biome instanceof BiomeMesa ||
biome instanceof BiomeHell) {
return 6;
} else {
float base = biome.getTemperature();
float converted = (base - 1) * 10;
Geomastery.LOG.info("Unsupported biome {} has had its temperature set to {}", biome.getBiomeName(), converted);
return converted;
}
}