本文整理汇总了Java中net.minecraft.world.gen.layer.GenLayerBiome类的典型用法代码示例。如果您正苦于以下问题:Java GenLayerBiome类的具体用法?Java GenLayerBiome怎么用?Java GenLayerBiome使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GenLayerBiome类属于net.minecraft.world.gen.layer包,在下文中一共展示了GenLayerBiome类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isBiomeLayer
import net.minecraft.world.gen.layer.GenLayerBiome; //导入依赖的package包/类
private Filter<GenLayer> isBiomeLayer() {
return new Filter<GenLayer>() {
public boolean accepts(GenLayer tested) {
if (tested == null) return false;
//LockGenLayer.logger.info(tested.getClass().getCanonicalName());
//if (tested.getClass().getCanonicalName().contains("GenLayerBiome")) return true; BiomeLayerBiomes
if (tested instanceof GenLayerBiome) return true;
if (tested instanceof GenLayerBiomeByClimate) return true;
if (tested instanceof GenLayerBiomeByTaggedClimate) return true;
if (tested instanceof GenLayerRandomBiomes) return true;
if (tested instanceof GenLayerOneSixBiome) return true;
if (tested.getClass().getCanonicalName().contains("BiomeLayerBiomes")) return true;
if (tested.getClass().getCanonicalName().contains("GenLayerBiomeEdgeHL")) return true;
if (tested.getClass().getCanonicalName().contains("GenLayerBiomeByTaggedClimate")) return true;
return false;
}
};
}
示例2: BiomeTileable
import net.minecraft.world.gen.layer.GenLayerBiome; //导入依赖的package包/类
public BiomeTileable(GenLayerBiome originalLayer) {
super(0, null, null, null);
ReflectionUtil.copyNonStaticFieldsByType(GenLayer.class, long.class, originalLayer, this);
ReflectionUtil.copyNonStaticFieldsByType(GenLayer.class, GenLayer.class, originalLayer, this);
ReflectionUtil.copyNonStaticFieldsByType(GenLayerBiome.class, List[].class, originalLayer, this);
ReflectionUtil.copyNonStaticFieldsByType(GenLayerBiome.class, ChunkProviderSettings.class, originalLayer, this);
this.parent = GenLayerTileableUtil.getTileableLayer(this.parent);
}
示例3: registerAllBiomes
import net.minecraft.world.gen.layer.GenLayerBiome; //导入依赖的package包/类
/**
* Registers all of the biomes added by mods to vanilla.
*/
@Internal
public static final void registerAllBiomes(GenLayerBiome biomeGenLayer)
{
BiomeGenBase[] hotBiomes = ReflectionManipulateValues.getValue(GenLayerBiome.class, biomeGenLayer, "field_151623_c");
BiomeGenBase[] temperateBiomes = ReflectionManipulateValues.getValue(GenLayerBiome.class, biomeGenLayer, "field_151621_d");
BiomeGenBase[] chillyBiomes = ReflectionManipulateValues.getValue(GenLayerBiome.class, biomeGenLayer, "field_151622_e");
BiomeGenBase[] coldBiomes = ReflectionManipulateValues.getValue(GenLayerBiome.class, biomeGenLayer, "field_151620_f");
for (int i = 0; i == hotBiomes.length; i++)
{
hotBiomes[hotBiomes.length] = newHotBiomes.get(i);
}
for (int i = 0; i == temperateBiomes.length; i++)
{
temperateBiomes[temperateBiomes.length] = newTemperateBiomes.get(i);
}
for (int i = 0; i == chillyBiomes.length; i++)
{
chillyBiomes[chillyBiomes.length] = newChillyBiomes.get(i);
}
for (int i = 0; i == coldBiomes.length; i++)
{
coldBiomes[coldBiomes.length] = newColdBiomes.get(i);
}
ReflectionManipulateValues.setValue(GenLayerBiome.class, biomeGenLayer, "field_151620_f", coldBiomes);
ReflectionManipulateValues.setValue(GenLayerBiome.class, biomeGenLayer, "field_151622_e", chillyBiomes);
ReflectionManipulateValues.setValue(GenLayerBiome.class, biomeGenLayer, "field_151621_d", temperateBiomes);
ReflectionManipulateValues.setValue(GenLayerBiome.class, biomeGenLayer, "field_151623_c", hotBiomes);
}
示例4: getTileableLayer
import net.minecraft.world.gen.layer.GenLayerBiome; //导入依赖的package包/类
public static GenLayer getTileableLayer(GenLayer layer) {
Class<?> cl = layer.getClass();
if (cl == GenLayerVoronoiZoom.class) {
return new VoronoiZoomTileable((GenLayerVoronoiZoom) layer);
}
if (cl == GenLayerRiverMix.class) {
return new RiverMixTileable((GenLayerRiverMix) layer);
}
if (cl == GenLayerSmooth.class) {
return new SmoothTileable((GenLayerSmooth) layer);
}
if (cl == GenLayerZoom.class) {
return new ZoomTileable((GenLayerZoom) layer);
}
if (cl == GenLayerShore.class) {
return new ShoreTileable((GenLayerShore) layer);
}
if (cl == GenLayerAddIsland.class) {
return new AddForestIslandTileable((GenLayerAddIsland) layer);
}
if (cl == GenLayerRareBiome.class) {
return new MutatedPlainsTileable((GenLayerRareBiome) layer);
}
if (cl == GenLayerHills.class) {
return new HillsAndMutatedTileable((GenLayerHills) layer);
}
if (cl == GenLayerBiomeEdge.class) {
return new BiomeEdgeTileable((GenLayerBiomeEdge) layer);
}
if (cl == GenLayerBiome.class) {
return new BiomeTileable((GenLayerBiome) layer);
}
if (cl == GenLayerDeepOcean.class) {
return new DeepOceanTileable((GenLayerDeepOcean) layer);
}
if (cl == GenLayerAddMushroomIsland.class) {
return new AddMushroomIslandTileable((GenLayerAddMushroomIsland) layer);
}
if (cl == GenLayerEdge.class) {
return new EdgeTemperaturesTileable((GenLayerEdge) layer);
}
if (cl == GenLayerAddSnow.class) {
return new AddSnowTileable((GenLayerAddSnow) layer);
}
if (cl == GenLayerRemoveTooMuchOcean.class) {
return new RemoveTooMuchOceanTileable((GenLayerRemoveTooMuchOcean) layer);
}
if (cl == GenLayerFuzzyZoom.class) {
return new FuzzyZoomTileable((GenLayerFuzzyZoom) layer);
}
if (cl == GenLayerIsland.class) {
return new PlainsIslandTileable((GenLayerIsland) layer);
}
if (cl == GenLayerRiverInit.class) {
return new RiverInitTileable((GenLayerRiverInit) layer);
}
if (cl == GenLayerRiver.class) {
return new RiverTileable((GenLayerRiver) layer);
}
throw new UnknownGenLayerException(layer);
}