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


Java GenLayer類代碼示例

本文整理匯總了Java中net.minecraft.world.gen.layer.GenLayer的典型用法代碼示例。如果您正苦於以下問題:Java GenLayer類的具體用法?Java GenLayer怎麽用?Java GenLayer使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


GenLayer類屬於net.minecraft.world.gen.layer包,在下文中一共展示了GenLayer類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: GenLayerBiomeMod

import net.minecraft.world.gen.layer.GenLayer; //導入依賴的package包/類
public GenLayerBiomeMod(long p_i45560_1_, GenLayer p_i45560_3_, WorldType p_i45560_4_, ChunkGeneratorSettings p_i45560_5_)
{
    super(p_i45560_1_);
    this.parent = p_i45560_3_;
    this.biomes.add(new BiomeEntry(ExPBiomes.plains, 10));
       this.biomes.add(new BiomeEntry(ExPBiomes.forest, 10));
       this.biomes.add(new BiomeEntry(ExPBiomes.mountains, 10));
       this.biomes.add(new BiomeEntry(ExPBiomes.dense_forest, 10));
       this.biomes.add(new BiomeEntry(ExPBiomes.swampland, 10));
       this.biomes.add(new BiomeEntry(ExPBiomes.rare_forest, 10));
       this.biomes.add(new BiomeEntry(ExPBiomes.hills, 10));
       this.biomes.add(new BiomeEntry(ExPBiomes.cold_forest, 10));
   	this.biomes.add(new BiomeEntry(ExPBiomes.dense_cold_forest, 10));
   	this.biomes.add(new BiomeEntry(ExPBiomes.cold_plains, 10));
   	this.biomes.add(new BiomeEntry(ExPBiomes.savanna, 10));
   	this.biomes.add(new BiomeEntry(ExPBiomes.warm_forest, 10));
   	this.biomes.add(new BiomeEntry(ExPBiomes.warm_plains, 10));
   	this.biomes.add(new BiomeEntry(ExPBiomes.dense_warm_forest, 10));
   	this.biomes.add(new BiomeEntry(ExPBiomes.jungle, 10));
    this.biomes.add(new BiomeEntry(ExPBiomes.desert, 10));
    this.settings = p_i45560_5_;
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:23,代碼來源:WorldTypeExP.java

示例2: GenLayerBiomeEpic

import net.minecraft.world.gen.layer.GenLayer; //導入依賴的package包/類
public GenLayerBiomeEpic(long p_i2122_1_, GenLayer p_i2122_3_, WorldType p_i2122_4_)
{
    super(p_i2122_1_);
    
    this.parent = p_i2122_3_;
    
    this.desertBiomes.removeAll(BiomeManager.desertBiomes);
    this.warmBiomes.removeAll(BiomeManager.warmBiomes);
    this.coolBiomes.removeAll(BiomeManager.coolBiomes);
    this.icyBiomes.removeAll(BiomeManager.icyBiomes);
    
    if (p_i2122_4_ == WorldType.DEFAULT_1_1)
    {

        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomePat, 10));
        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeJen, 10));
    }
    else
    {

        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomePat, 10));
        desertBiomes.add(new BiomeEntry(BiomeRegistry.biomeJen, 10));
    }
}
 
開發者ID:jtrent238,項目名稱:PopularMMOS-EpicProportions-Mod,代碼行數:25,代碼來源:GenLayerBiomeEpic.java

示例3: isBiomeLayer

import net.minecraft.world.gen.layer.GenLayer; //導入依賴的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;
        }

    };
}
 
開發者ID:Zeno410,項目名稱:Geographicraft,代碼行數:20,代碼來源:LockGenLayers.java

示例4: smoothClimateParent

import net.minecraft.world.gen.layer.GenLayer; //導入依賴的package包/類
private Filter<GenLayer> smoothClimateParent() {
    return new Filter<GenLayer>() {
        private GenLayer smoothClimateLayer = null;
        public boolean accepts(GenLayer tested) {
            if (tested == null) return false;
            //LockGenLayer.logger.info(tested.toString());
            if (tested instanceof GenLayerSmoothClimate||tested instanceof GenLayerBiomeByTaggedClimate) {
                smoothClimateLayer = tested;
                //LockGenLayer.logger.info("smooth climate is "+tested.toString());
                //LockGenLayer.logger.info("parent is "+parent(tested).toString());
                return false; // obviously not the parent
            }
            // not parent if we haven't hit the smoothclimate layer
            if (smoothClimateLayer == null) return false;
            if (tested.equals(parent(smoothClimateLayer))) {
                //LockGenLayer.logger.info("smooth climate on "+tested.toString());
                return true;
            }
            return false;
        }

    };
}
 
開發者ID:Zeno410,項目名稱:Geographicraft,代碼行數:24,代碼來源:LockGenLayers.java

示例5: FirmaBiomeProvider

import net.minecraft.world.gen.layer.GenLayer; //導入依賴的package包/類
public FirmaBiomeProvider(long seed, WorldType worldTypeIn, String options) {
	this.biomeCache = new BiomeCache(this);
	FirmaBiome[] allowedBiomesFirma = { FirmaBiome.PLAINS, FirmaBiome.HILLS ,FirmaBiome.SWAMP };
	this.biomesToSpawnIn = Lists.newArrayList(allowedBiomesFirma);
	GenLayer[] agenlayer = FirmaGenLayer.initialize(seed, worldTypeIn);
	this.genBiomes = agenlayer[0];
	this.biomeIndexLayer = agenlayer[1];
}
 
開發者ID:trigg,項目名稱:Firma,代碼行數:9,代碼來源:FirmaBiomeProvider.java

示例6: WorldChunkManager

import net.minecraft.world.gen.layer.GenLayer; //導入依賴的package包/類
public WorldChunkManager(long seed, WorldType p_i45744_3_, String p_i45744_4_)
{
    this();
    this.field_180301_f = p_i45744_4_;
    GenLayer[] agenlayer = GenLayer.initializeAllBiomeGenerators(seed, p_i45744_3_, p_i45744_4_);
    this.genBiomes = agenlayer[0];
    this.biomeIndexLayer = agenlayer[1];
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:9,代碼來源:WorldChunkManager.java

示例7: BiomeProvider

import net.minecraft.world.gen.layer.GenLayer; //導入依賴的package包/類
private BiomeProvider(long seed, WorldType worldTypeIn, String options)
{
    this();

    if (worldTypeIn == WorldType.CUSTOMIZED && !options.isEmpty())
    {
        this.field_190945_a = ChunkProviderSettings.Factory.jsonToFactory(options).build();
    }

    GenLayer[] agenlayer = GenLayer.initializeAllBiomeGenerators(seed, worldTypeIn, this.field_190945_a);
    this.genBiomes = agenlayer[0];
    this.biomeIndexLayer = agenlayer[1];
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:14,代碼來源:BiomeProvider.java

示例8: InitBiomeGens

import net.minecraft.world.gen.layer.GenLayer; //導入依賴的package包/類
public InitBiomeGens(WorldType worldType, long seed, GenLayer[] original)
{
    super(worldType);
    this.seed = seed;
    originalBiomeGens = original;
    setNewBiomeGens(original.clone());
}
 
開發者ID:F1r3w477,項目名稱:CustomWorldGen,代碼行數:8,代碼來源:WorldTypeEvent.java

示例9: BiomeProvider

import net.minecraft.world.gen.layer.GenLayer; //導入依賴的package包/類
private BiomeProvider(long seed, WorldType worldTypeIn, String options)
{
    this();
    GenLayer[] agenlayer = GenLayer.initializeAllBiomeGenerators(seed, worldTypeIn, options);
    agenlayer = getModdedBiomeGenerators(worldTypeIn, seed, agenlayer);
    this.genBiomes = agenlayer[0];
    this.biomeIndexLayer = agenlayer[1];
}
 
開發者ID:F1r3w477,項目名稱:CustomWorldGen,代碼行數:9,代碼來源:BiomeProvider.java

示例10: getBiomeLayer

import net.minecraft.world.gen.layer.GenLayer; //導入依賴的package包/類
@Override
public GenLayer getBiomeLayer(long worldSeed, GenLayer parentLayer, ChunkGeneratorSettings chunkProviderSettings)
{
	 net.minecraft.world.gen.layer.GenLayer ret = new GenLayerBiomeMod(200L, parentLayer, this, chunkProviderSettings);
     ret = net.minecraft.world.gen.layer.GenLayerZoom.magnify(1000L, ret, 2);
     ret = new net.minecraft.world.gen.layer.GenLayerBiomeEdge(1000L, ret);
     return ret;
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:9,代碼來源:WorldTypeExP.java

示例11: BiomeProviderExP

import net.minecraft.world.gen.layer.GenLayer; //導入依賴的package包/類
private BiomeProviderExP(long seed, WorldType worldTypeIn, String options)
{
    this();

    if (worldTypeIn == WorldType.CUSTOMIZED && !options.isEmpty())
    {
        this.settings = ChunkGeneratorSettings.Factory.jsonToFactory(options).build();
    }

    GenLayer[] agenlayer = GenLayer.initializeAllBiomeGenerators(seed, worldTypeIn, this.settings);
    agenlayer = getModdedBiomeGenerators(worldTypeIn, seed, agenlayer);
    this.genBiomes = agenlayer[0];
    this.biomeIndexLayer = agenlayer[1];
    this.featureProvider = new FeatureProvider(seed);
}
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:16,代碼來源:WorldTypeExP.java

示例12: getModdedBiomeGenerators

import net.minecraft.world.gen.layer.GenLayer; //導入依賴的package包/類
@Override
public GenLayer[] getModdedBiomeGenerators(WorldType worldType, long seed, GenLayer[] original)
   {
       net.minecraftforge.event.terraingen.WorldTypeEvent.InitBiomeGens event = new net.minecraftforge.event.terraingen.WorldTypeEvent.InitBiomeGens(worldType, seed, original);
       net.minecraftforge.common.MinecraftForge.TERRAIN_GEN_BUS.post(event);
       return event.getNewBiomeGens();
   }
 
開發者ID:V0idWa1k3r,項目名稱:ExPetrum,代碼行數:8,代碼來源:WorldTypeExP.java

示例13: mountainGenLayers

import net.minecraft.world.gen.layer.GenLayer; //導入依賴的package包/類
private GenLayer mountainGenLayers() {
    GenLayer result = new GenLayerConstant(1,1);
    result = new GenLayerRiverInit(3001L,result);
    for (int i = 0 ; i < 3; i++) {
        result = new GenLayerZoom(3001L+i,result);
        result = new GenLayerSmooth(3001L+i,result);
    }
    result = new GenLayerMountainChains(3005L,result);
    result = new GenLayerLimitedCache(result,64);

    result = reportOn(result, "mountains.txt");
    return result;
}
 
開發者ID:Zeno410,項目名稱:Geographicraft,代碼行數:14,代碼來源:MountainFormer.java

示例14: parent

import net.minecraft.world.gen.layer.GenLayer; //導入依賴的package包/類
public GenLayer parent(GenLayer child) {
    if (child == null) return null;
    if (child instanceof GenLayerPack) {
        return ((GenLayerPack)child).getParent();
    }
    return genLayerParent.get(child);
}
 
開發者ID:Zeno410,項目名稱:Geographicraft,代碼行數:8,代碼來源:TestGeneratorPair.java

示例15: EdgeTemperaturesTileable

import net.minecraft.world.gen.layer.GenLayer; //導入依賴的package包/類
public EdgeTemperaturesTileable(GenLayerEdge original) {
	super(0, null, null);
	copyNonStaticFieldsByType(GenLayer.class, long.class, original, this);
	copyNonStaticFieldsByType(GenLayer.class, GenLayer.class, original, this);
	copyNonStaticFieldsByType(GenLayerEdge.class, GenLayerEdge.Mode.class, original, this);

	this.parent = GenLayerTileableUtil.getTileableLayer(this.parent);
}
 
開發者ID:Barteks2x,項目名稱:McWorldGenLoop,代碼行數:9,代碼來源:EdgeTemperaturesTileable.java


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