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


Java BlockFlower.field_149859_a方法代碼示例

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


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

示例1: func_150572_a

import net.minecraft.block.BlockFlower; //導入方法依賴的package包/類
public String func_150572_a(Random p_150572_1_, int p_150572_2_, int p_150572_3_, int p_150572_4_)
{
    if (this.field_150632_aF == 1)
    {
        double var5 = MathHelper.clamp_double((1.0D + field_150606_ad.func_151601_a((double)p_150572_2_ / 48.0D, (double)p_150572_4_ / 48.0D)) / 2.0D, 0.0D, 0.9999D);
        int var7 = (int)(var5 * (double)BlockFlower.field_149859_a.length);

        if (var7 == 1)
        {
            var7 = 0;
        }

        return BlockFlower.field_149859_a[var7];
    }
    else
    {
        return super.func_150572_a(p_150572_1_, p_150572_2_, p_150572_3_, p_150572_4_);
    }
}
 
開發者ID:MinecraftModdedClients,項目名稱:Resilience-Client-Source,代碼行數:20,代碼來源:BiomeGenForest.java

示例2: func_150572_a

import net.minecraft.block.BlockFlower; //導入方法依賴的package包/類
public String func_150572_a(Random p_150572_1_, int p_150572_2_, int p_150572_3_, int p_150572_4_)
{
    double var5 = field_150606_ad.func_151601_a((double)p_150572_2_ / 200.0D, (double)p_150572_4_ / 200.0D);
    int var7;

    if (var5 < -0.8D)
    {
        var7 = p_150572_1_.nextInt(4);
        return BlockFlower.field_149859_a[4 + var7];
    }
    else if (p_150572_1_.nextInt(3) > 0)
    {
        var7 = p_150572_1_.nextInt(3);
        return var7 == 0 ? BlockFlower.field_149859_a[0] : (var7 == 1 ? BlockFlower.field_149859_a[3] : BlockFlower.field_149859_a[8]);
    }
    else
    {
        return BlockFlower.field_149858_b[0];
    }
}
 
開發者ID:MinecraftModdedClients,項目名稱:Resilience-Client-Source,代碼行數:21,代碼來源:BiomeGenPlains.java

示例3: func_150572_a

import net.minecraft.block.BlockFlower; //導入方法依賴的package包/類
public String func_150572_a(Random p_150572_1_, int p_150572_2_, int p_150572_3_, int p_150572_4_)
{
    double d0 = plantNoise.func_151601_a((double)p_150572_2_ / 200.0D, (double)p_150572_4_ / 200.0D);
    int l;

    if (d0 < -0.8D)
    {
        l = p_150572_1_.nextInt(4);
        return BlockFlower.field_149859_a[4 + l];
    }
    else if (p_150572_1_.nextInt(3) > 0)
    {
        l = p_150572_1_.nextInt(3);
        return l == 0 ? BlockFlower.field_149859_a[0] : (l == 1 ? BlockFlower.field_149859_a[3] : BlockFlower.field_149859_a[8]);
    }
    else
    {
        return BlockFlower.field_149858_b[0];
    }
}
 
開發者ID:NovaViper,項目名稱:ZeroQuest,代碼行數:21,代碼來源:BiomeGenRedSeed.java

示例4: func_150572_a

import net.minecraft.block.BlockFlower; //導入方法依賴的package包/類
public String func_150572_a(Random p_150572_1_, int p_150572_2_, int p_150572_3_, int p_150572_4_)
{
    if (this.field_150632_aF == 1)
    {
        double d0 = MathHelper.clamp_double((1.0D + plantNoise.func_151601_a((double)p_150572_2_ / 48.0D, (double)p_150572_4_ / 48.0D)) / 2.0D, 0.0D, 0.9999D);
        int l = (int)(d0 * (double)BlockFlower.field_149859_a.length);

        if (l == 1)
        {
            l = 0;
        }

        return BlockFlower.field_149859_a[l];
    }
    else
    {
        return super.func_150572_a(p_150572_1_, p_150572_2_, p_150572_3_, p_150572_4_);
    }
}
 
開發者ID:xtrafrancyz,項目名稱:Cauldron,代碼行數:20,代碼來源:BiomeGenForest.java

示例5: func_150572_a

import net.minecraft.block.BlockFlower; //導入方法依賴的package包/類
public String func_150572_a(Random p_150572_1_, int p_150572_2_, int p_150572_3_, int p_150572_4_)
{
    return p_150572_1_.nextInt(3) > 0 ? BlockFlower.field_149858_b[0] : BlockFlower.field_149859_a[0];
}
 
開發者ID:MinecraftModdedClients,項目名稱:Resilience-Client-Source,代碼行數:5,代碼來源:BiomeGenBase.java

示例6: func_150572_a

import net.minecraft.block.BlockFlower; //導入方法依賴的package包/類
public String func_150572_a(Random p_150572_1_, int p_150572_2_, int p_150572_3_, int p_150572_4_)
{
    return BlockFlower.field_149859_a[1];
}
 
開發者ID:MinecraftModdedClients,項目名稱:Resilience-Client-Source,代碼行數:5,代碼來源:BiomeGenSwamp.java


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