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


Java WorldChunkManager.getBiomeGenAt方法代碼示例

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


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

示例1: Start

import net.minecraft.world.biome.WorldChunkManager; //導入方法依賴的package包/類
public Start(WorldChunkManager p_i2104_1_, int p_i2104_2_, Random p_i2104_3_, int p_i2104_4_, int p_i2104_5_, List p_i2104_6_, int p_i2104_7_)
{
    super((StructureVillagePieces.Start)null, 0, p_i2104_3_, p_i2104_4_, p_i2104_5_);
    this.worldChunkMngr = p_i2104_1_;
    this.structureVillageWeightedPieceList = p_i2104_6_;
    this.terrainType = p_i2104_7_;
    BiomeGenBase biomegenbase = p_i2104_1_.getBiomeGenAt(p_i2104_4_, p_i2104_5_);
    this.inDesert = biomegenbase == BiomeGenBase.desert || biomegenbase == BiomeGenBase.desertHills;
    this.biome = biomegenbase;
}
 
開發者ID:jtrent238,項目名稱:PopularMMOS-EpicProportions-Mod,代碼行數:11,代碼來源:StructureVillagePieces.java

示例2: getBiomeGenForWorldCoords

import net.minecraft.world.biome.WorldChunkManager; //導入方法依賴的package包/類
/**
 * This method retrieves the biome at a set of coordinates
 */
public BiomeGenBase getBiomeGenForWorldCoords(int par1, int par2, WorldChunkManager par3WorldChunkManager)
{
    int var4 = this.blockBiomeArray[par2 << 4 | par1] & 255;

    if (var4 == 255)
    {
        BiomeGenBase var5 = par3WorldChunkManager.getBiomeGenAt((this.xPosition << 4) + par1, (this.zPosition << 4) + par2);
        var4 = var5.biomeID;
        this.blockBiomeArray[par2 << 4 | par1] = (byte)(var4 & 255);
    }

    return BiomeGenBase.func_150568_d(var4) == null ? BiomeGenBase.plains : BiomeGenBase.func_150568_d(var4);
}
 
開發者ID:MinecraftModdedClients,項目名稱:Resilience-Client-Source,代碼行數:17,代碼來源:Chunk.java

示例3: Start

import net.minecraft.world.biome.WorldChunkManager; //導入方法依賴的package包/類
public Start(WorldChunkManager par1WorldChunkManager, int par2, Random par3Random, int par4, int par5, List par6List, int par7)
{
    super((StructureVillagePieces.Start)null, 0, par3Random, par4, par5);
    this.worldChunkMngr = par1WorldChunkManager;
    this.structureVillageWeightedPieceList = par6List;
    this.terrainType = par7;
    BiomeGenBase var8 = par1WorldChunkManager.getBiomeGenAt(par4, par5);
    this.inDesert = var8 == BiomeGenBase.desert || var8 == BiomeGenBase.desertHills;
}
 
開發者ID:MinecraftModdedClients,項目名稱:Resilience-Client-Source,代碼行數:10,代碼來源:StructureVillagePieces.java

示例4: getBiomeGenForWorldCoords

import net.minecraft.world.biome.WorldChunkManager; //導入方法依賴的package包/類
public BiomeGenBase getBiomeGenForWorldCoords(int p_76591_1_, int p_76591_2_, WorldChunkManager p_76591_3_)
{
    int k = this.blockBiomeArray[p_76591_2_ << 4 | p_76591_1_] & 255;

    if (k == 255)
    {
        BiomeGenBase biomegenbase = p_76591_3_.getBiomeGenAt((this.xPosition << 4) + p_76591_1_, (this.zPosition << 4) + p_76591_2_);
        k = biomegenbase.biomeID;
        this.blockBiomeArray[p_76591_2_ << 4 | p_76591_1_] = (byte)(k & 255);
    }

    return BiomeGenBase.getBiome(k) == null ? BiomeGenBase.plains : BiomeGenBase.getBiome(k);
}
 
開發者ID:xtrafrancyz,項目名稱:Cauldron,代碼行數:14,代碼來源:Chunk.java

示例5: getBiomeGenForWorldCoords

import net.minecraft.world.biome.WorldChunkManager; //導入方法依賴的package包/類
/**
 * This method retrieves the biome at a set of coordinates
 */
public BiomeGenBase getBiomeGenForWorldCoords(int par1, int par2, WorldChunkManager par3WorldChunkManager)
{
    int k = this.blockBiomeArray[par2 << 4 | par1] & 255;

    if (k == 255)
    {
        BiomeGenBase biomegenbase = par3WorldChunkManager.getBiomeGenAt((this.xPosition << 4) + par1, (this.zPosition << 4) + par2);
        k = biomegenbase.biomeID;
        this.blockBiomeArray[par2 << 4 | par1] = (byte)(k & 255);
    }

    return BiomeGenBase.biomeList[k] == null ? BiomeGenBase.plains : BiomeGenBase.biomeList[k];
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:17,代碼來源:Chunk.java

示例6: ComponentVillageStartPiece

import net.minecraft.world.biome.WorldChunkManager; //導入方法依賴的package包/類
public ComponentVillageStartPiece(WorldChunkManager par1WorldChunkManager, int par2, Random par3Random, int par4, int par5, List par6List, int par7)
{
    super((ComponentVillageStartPiece)null, 0, par3Random, par4, par5);
    this.worldChunkMngr = par1WorldChunkManager;
    this.structureVillageWeightedPieceList = par6List;
    this.terrainType = par7;
    BiomeGenBase biomegenbase = par1WorldChunkManager.getBiomeGenAt(par4, par5);
    this.inDesert = biomegenbase == BiomeGenBase.desert || biomegenbase == BiomeGenBase.desertHills;
    this.biome = biomegenbase;
}
 
開發者ID:HATB0T,項目名稱:RuneCraftery,代碼行數:11,代碼來源:ComponentVillageStartPiece.java


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