Java 类net.minecraft.block.BlockDoublePlant 实例源码

项目:BaseClient    文件:ConnectedParser.java   
private IBlockState getStateFromMeta(Block p_getStateFromMeta_1_, int p_getStateFromMeta_2_)
{
    try
    {
        IBlockState iblockstate = p_getStateFromMeta_1_.getStateFromMeta(p_getStateFromMeta_2_);

        if (p_getStateFromMeta_1_ == Blocks.double_plant && p_getStateFromMeta_2_ > 7)
        {
            IBlockState iblockstate1 = p_getStateFromMeta_1_.getStateFromMeta(p_getStateFromMeta_2_ & 7);
            iblockstate = iblockstate.withProperty(BlockDoublePlant.VARIANT, iblockstate1.getValue(BlockDoublePlant.VARIANT));
        }

        return iblockstate;
    }
    catch (IllegalArgumentException var5)
    {
        return p_getStateFromMeta_1_.getDefaultState();
    }
}
项目:Backmemed    文件:ConnectedParser.java   
private IBlockState getStateFromMeta(Block p_getStateFromMeta_1_, int p_getStateFromMeta_2_)
{
    try
    {
        IBlockState iblockstate = p_getStateFromMeta_1_.getStateFromMeta(p_getStateFromMeta_2_);

        if (p_getStateFromMeta_1_ == Blocks.DOUBLE_PLANT && p_getStateFromMeta_2_ > 7)
        {
            IBlockState iblockstate1 = p_getStateFromMeta_1_.getStateFromMeta(p_getStateFromMeta_2_ & 7);
            iblockstate = iblockstate.withProperty(BlockDoublePlant.VARIANT, iblockstate1.getValue(BlockDoublePlant.VARIANT));
        }

        return iblockstate;
    }
    catch (IllegalArgumentException var5)
    {
        return p_getStateFromMeta_1_.getDefaultState();
    }
}
项目:Culinary-Cultivation    文件:Recipes.java   
private static void addWinnowingRecipes() {
    IWinnowingMachineHandler winnowing = CulinaryCultivationAPI.winnowing;

    ItemStack tallGrass = new ItemStack(Blocks.TALLGRASS, 1, BlockTallGrass.EnumType.GRASS.getMeta());
    ItemStack doubleTallGrass = new ItemStack(Blocks.DOUBLE_PLANT, 1, BlockDoublePlant.EnumPlantType.GRASS.getMeta());

    //Culinary Cultivation outputs
    winnowing.addOutput(tallGrass, new ItemStack(CROP_SEEDS, 1, ProductType.CUCUMBER.getMetadata()), 10);
    winnowing.addOutput(tallGrass, new ItemStack(CROP_SEEDS, 1, ProductType.TOMATO.getMetadata()), 8);
    winnowing.addJunk(tallGrass, new ItemStack(GENERAL, 1, ItemGeneral.Type.CHAFF_PILE.getMetadata()), 10);
    winnowing.addRecipe(doubleTallGrass, new ItemStack(CROP_SEEDS, 1, ProductType.BLACK_PEPPER_DRUPE.getMetadata()), 18);
    winnowing.addRecipe(doubleTallGrass, new ItemStack(CROP_SEEDS, 1, ProductType.CORN.getMetadata()), 8);

    //Vanilla outputs
    winnowing.addOutput(tallGrass, new ItemStack(Items.WHEAT_SEEDS), 10);
    winnowing.addOutput(tallGrass, new ItemStack(Items.BEETROOT_SEEDS), 2);
    winnowing.addOutput(tallGrass, new ItemStack(Items.PUMPKIN_SEEDS), 1);
    winnowing.addRecipe(new ItemStack(Blocks.SAPLING, 1, BlockPlanks.EnumType.JUNGLE.getMetadata()), new ItemStack(Items.MELON_SEEDS), 1, new ItemStack(Blocks.DEADBUSH), 10);
    winnowing.addRecipe(new ItemStack(Items.WHEAT), new ItemStack(Items.WHEAT_SEEDS), 15, new ItemStack(GENERAL, 1, ItemGeneral.Type.CHAFF_PILE.getMetadata()), 90);
}
项目:Ores-and-Tools    文件:ItemSickle.java   
@Override
public boolean onBlockDestroyed(ItemStack itemstack, World world, IBlockState state, BlockPos pos, EntityLivingBase entityLiving)
{
    boolean done = false;
    int size = 2;
    for(int newX = -size; newX <= size; newX++)
    {
        for(int newZ = -size; newZ <= size; newZ++)
        {
            BlockPos pos2 = pos.add(newX, 0, newZ);
            IBlockState sta = world.getBlockState(pos2);
            Block block = sta.getBlock();
            if((block instanceof BlockBush) || (block instanceof BlockFlower) || (block instanceof BlockDoublePlant))
            {
                block.dropBlockAsItem(world, pos2, sta, 0);
                world.setBlockToAir(pos2);
                itemstack.damageItem(1, entityLiving);
                done = true;
            }
        }
    }
    return done;
}
项目:ForgeMods    文件:BlockLargePot.java   
protected void applyPlantable (World world, int x, int y, int z, TileEntityLargePot tile, EntityPlayer player, IPlantable plantable) {
    ItemStack itemStack = player.inventory.getCurrentItem();

    // TODO: Non-compliant IPlantable, use config
    Block itemBlock = plantable.getPlant(world, x, y, z);
    int itemMeta = itemStack.getItemDamage();
    if (itemBlock == null && plantable instanceof Block) {
        itemBlock = (Block) plantable;
    }
    else {
        int plantMeta = plantable.getPlantMetadata(world, x, y, z);
        if (plantMeta != world.getBlockMetadata(x, y, z))
            itemMeta = plantMeta;
    }

    world.setBlock(x, y + 1, z, ModBlocks.largePotPlantProxy, itemMeta, 3);
    if (itemBlock instanceof BlockDoublePlant || itemBlock.getRenderType() == 40)
        world.setBlock(x, y + 2, z, ModBlocks.largePotPlantProxy, itemMeta | 8, 3);

    tile.setItem(itemStack.getItem(), itemMeta);
    tile.markDirty();

    if (!player.capabilities.isCreativeMode && --itemStack.stackSize <= 0)
        player.inventory.setInventorySlotContents(player.inventory.currentItem, null);
}
项目:DecompiledMinecraft    文件:BiomeGenSavanna.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.GRASS);

    for (int i = 0; i < 7; ++i)
    {
        int j = rand.nextInt(16) + 8;
        int k = rand.nextInt(16) + 8;
        int l = rand.nextInt(worldIn.getHeight(pos.add(j, 0, k)).getY() + 32);
        DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j, l, k));
    }

    super.decorate(worldIn, rand, pos);
}
项目:DecompiledMinecraft    文件:BiomeGenTaiga.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    if (this.field_150644_aH == 1 || this.field_150644_aH == 2)
    {
        int i = rand.nextInt(3);

        for (int j = 0; j < i; ++j)
        {
            int k = rand.nextInt(16) + 8;
            int l = rand.nextInt(16) + 8;
            BlockPos blockpos = worldIn.getHeight(pos.add(k, 0, l));
            field_150643_aG.generate(worldIn, rand, blockpos);
        }
    }

    DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.FERN);

    for (int i1 = 0; i1 < 7; ++i1)
    {
        int j1 = rand.nextInt(16) + 8;
        int k1 = rand.nextInt(16) + 8;
        int l1 = rand.nextInt(worldIn.getHeight(pos.add(j1, 0, k1)).getY() + 32);
        DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j1, l1, k1));
    }

    super.decorate(worldIn, rand, pos);
}
项目:DecompiledMinecraft    文件:BiomeGenPlains.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    double d0 = GRASS_COLOR_NOISE.func_151601_a((double)(pos.getX() + 8) / 200.0D, (double)(pos.getZ() + 8) / 200.0D);

    if (d0 < -0.8D)
    {
        this.theBiomeDecorator.flowersPerChunk = 15;
        this.theBiomeDecorator.grassPerChunk = 5;
    }
    else
    {
        this.theBiomeDecorator.flowersPerChunk = 4;
        this.theBiomeDecorator.grassPerChunk = 10;
        DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.GRASS);

        for (int i = 0; i < 7; ++i)
        {
            int j = rand.nextInt(16) + 8;
            int k = rand.nextInt(16) + 8;
            int l = rand.nextInt(worldIn.getHeight(pos.add(j, 0, k)).getY() + 32);
            DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j, l, k));
        }
    }

    if (this.field_150628_aC)
    {
        DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.SUNFLOWER);

        for (int i1 = 0; i1 < 10; ++i1)
        {
            int j1 = rand.nextInt(16) + 8;
            int k1 = rand.nextInt(16) + 8;
            int l1 = rand.nextInt(worldIn.getHeight(pos.add(j1, 0, k1)).getY() + 32);
            DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j1, l1, k1));
        }
    }

    super.decorate(worldIn, rand, pos);
}
项目:DecompiledMinecraft    文件:BiomeGenSavanna.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.GRASS);

    for (int i = 0; i < 7; ++i)
    {
        int j = rand.nextInt(16) + 8;
        int k = rand.nextInt(16) + 8;
        int l = rand.nextInt(worldIn.getHeight(pos.add(j, 0, k)).getY() + 32);
        DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j, l, k));
    }

    super.decorate(worldIn, rand, pos);
}
项目:DecompiledMinecraft    文件:BiomeGenTaiga.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    if (this.field_150644_aH == 1 || this.field_150644_aH == 2)
    {
        int i = rand.nextInt(3);

        for (int j = 0; j < i; ++j)
        {
            int k = rand.nextInt(16) + 8;
            int l = rand.nextInt(16) + 8;
            BlockPos blockpos = worldIn.getHeight(pos.add(k, 0, l));
            field_150643_aG.generate(worldIn, rand, blockpos);
        }
    }

    DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.FERN);

    for (int i1 = 0; i1 < 7; ++i1)
    {
        int j1 = rand.nextInt(16) + 8;
        int k1 = rand.nextInt(16) + 8;
        int l1 = rand.nextInt(worldIn.getHeight(pos.add(j1, 0, k1)).getY() + 32);
        DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j1, l1, k1));
    }

    super.decorate(worldIn, rand, pos);
}
项目:DecompiledMinecraft    文件:BiomeGenPlains.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    double d0 = GRASS_COLOR_NOISE.func_151601_a((double)(pos.getX() + 8) / 200.0D, (double)(pos.getZ() + 8) / 200.0D);

    if (d0 < -0.8D)
    {
        this.theBiomeDecorator.flowersPerChunk = 15;
        this.theBiomeDecorator.grassPerChunk = 5;
    }
    else
    {
        this.theBiomeDecorator.flowersPerChunk = 4;
        this.theBiomeDecorator.grassPerChunk = 10;
        DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.GRASS);

        for (int i = 0; i < 7; ++i)
        {
            int j = rand.nextInt(16) + 8;
            int k = rand.nextInt(16) + 8;
            int l = rand.nextInt(worldIn.getHeight(pos.add(j, 0, k)).getY() + 32);
            DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j, l, k));
        }
    }

    if (this.field_150628_aC)
    {
        DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.SUNFLOWER);

        for (int i1 = 0; i1 < 10; ++i1)
        {
            int j1 = rand.nextInt(16) + 8;
            int k1 = rand.nextInt(16) + 8;
            int l1 = rand.nextInt(worldIn.getHeight(pos.add(j1, 0, k1)).getY() + 32);
            DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j1, l1, k1));
        }
    }

    super.decorate(worldIn, rand, pos);
}
项目:BaseClient    文件:BiomeGenSavanna.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.GRASS);

    for (int i = 0; i < 7; ++i)
    {
        int j = rand.nextInt(16) + 8;
        int k = rand.nextInt(16) + 8;
        int l = rand.nextInt(worldIn.getHeight(pos.add(j, 0, k)).getY() + 32);
        DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j, l, k));
    }

    super.decorate(worldIn, rand, pos);
}
项目:BaseClient    文件:BiomeGenTaiga.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    if (this.field_150644_aH == 1 || this.field_150644_aH == 2)
    {
        int i = rand.nextInt(3);

        for (int j = 0; j < i; ++j)
        {
            int k = rand.nextInt(16) + 8;
            int l = rand.nextInt(16) + 8;
            BlockPos blockpos = worldIn.getHeight(pos.add(k, 0, l));
            field_150643_aG.generate(worldIn, rand, blockpos);
        }
    }

    DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.FERN);

    for (int i1 = 0; i1 < 7; ++i1)
    {
        int j1 = rand.nextInt(16) + 8;
        int k1 = rand.nextInt(16) + 8;
        int l1 = rand.nextInt(worldIn.getHeight(pos.add(j1, 0, k1)).getY() + 32);
        DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j1, l1, k1));
    }

    super.decorate(worldIn, rand, pos);
}
项目:BaseClient    文件:BiomeGenPlains.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    double d0 = GRASS_COLOR_NOISE.func_151601_a((double)(pos.getX() + 8) / 200.0D, (double)(pos.getZ() + 8) / 200.0D);

    if (d0 < -0.8D)
    {
        this.theBiomeDecorator.flowersPerChunk = 15;
        this.theBiomeDecorator.grassPerChunk = 5;
    }
    else
    {
        this.theBiomeDecorator.flowersPerChunk = 4;
        this.theBiomeDecorator.grassPerChunk = 10;
        DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.GRASS);

        for (int i = 0; i < 7; ++i)
        {
            int j = rand.nextInt(16) + 8;
            int k = rand.nextInt(16) + 8;
            int l = rand.nextInt(worldIn.getHeight(pos.add(j, 0, k)).getY() + 32);
            DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j, l, k));
        }
    }

    if (this.field_150628_aC)
    {
        DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.SUNFLOWER);

        for (int i1 = 0; i1 < 10; ++i1)
        {
            int j1 = rand.nextInt(16) + 8;
            int k1 = rand.nextInt(16) + 8;
            int l1 = rand.nextInt(worldIn.getHeight(pos.add(j1, 0, k1)).getY() + 32);
            DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j1, l1, k1));
        }
    }

    super.decorate(worldIn, rand, pos);
}
项目:BaseClient    文件:BiomeGenSavanna.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.GRASS);

    for (int i = 0; i < 7; ++i)
    {
        int j = rand.nextInt(16) + 8;
        int k = rand.nextInt(16) + 8;
        int l = rand.nextInt(worldIn.getHeight(pos.add(j, 0, k)).getY() + 32);
        DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j, l, k));
    }

    super.decorate(worldIn, rand, pos);
}
项目:BaseClient    文件:BiomeGenTaiga.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    if (this.field_150644_aH == 1 || this.field_150644_aH == 2)
    {
        int i = rand.nextInt(3);

        for (int j = 0; j < i; ++j)
        {
            int k = rand.nextInt(16) + 8;
            int l = rand.nextInt(16) + 8;
            BlockPos blockpos = worldIn.getHeight(pos.add(k, 0, l));
            field_150643_aG.generate(worldIn, rand, blockpos);
        }
    }

    DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.FERN);

    for (int i1 = 0; i1 < 7; ++i1)
    {
        int j1 = rand.nextInt(16) + 8;
        int k1 = rand.nextInt(16) + 8;
        int l1 = rand.nextInt(worldIn.getHeight(pos.add(j1, 0, k1)).getY() + 32);
        DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j1, l1, k1));
    }

    super.decorate(worldIn, rand, pos);
}
项目:BaseClient    文件:BiomeGenPlains.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    double d0 = GRASS_COLOR_NOISE.func_151601_a((double)(pos.getX() + 8) / 200.0D, (double)(pos.getZ() + 8) / 200.0D);

    if (d0 < -0.8D)
    {
        this.theBiomeDecorator.flowersPerChunk = 15;
        this.theBiomeDecorator.grassPerChunk = 5;
    }
    else
    {
        this.theBiomeDecorator.flowersPerChunk = 4;
        this.theBiomeDecorator.grassPerChunk = 10;
        DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.GRASS);

        for (int i = 0; i < 7; ++i)
        {
            int j = rand.nextInt(16) + 8;
            int k = rand.nextInt(16) + 8;
            int l = rand.nextInt(worldIn.getHeight(pos.add(j, 0, k)).getY() + 32);
            DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j, l, k));
        }
    }

    if (this.field_150628_aC)
    {
        DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.SUNFLOWER);

        for (int i1 = 0; i1 < 10; ++i1)
        {
            int j1 = rand.nextInt(16) + 8;
            int k1 = rand.nextInt(16) + 8;
            int l1 = rand.nextInt(worldIn.getHeight(pos.add(j1, 0, k1)).getY() + 32);
            DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j1, l1, k1));
        }
    }

    super.decorate(worldIn, rand, pos);
}
项目:modName    文件:BiomeTropicalShrubland.java   
@Override
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.GRASS);

    for (int i = 0; i < 4; ++i)
    {
        int j = rand.nextInt(16) + 8;
        int k = rand.nextInt(16) + 8;
        int l = rand.nextInt(worldIn.getHeight(pos.add(j, 0, k)).getY() + 32);
        DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j, l, k));
    }

    super.decorate(worldIn, rand, pos);
}
项目:Backmemed    文件:BiomePlains.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    double d0 = GRASS_COLOR_NOISE.getValue((double)(pos.getX() + 8) / 200.0D, (double)(pos.getZ() + 8) / 200.0D);

    if (d0 < -0.8D)
    {
        this.theBiomeDecorator.flowersPerChunk = 15;
        this.theBiomeDecorator.grassPerChunk = 5;
    }
    else
    {
        this.theBiomeDecorator.flowersPerChunk = 4;
        this.theBiomeDecorator.grassPerChunk = 10;
        DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.GRASS);

        for (int i = 0; i < 7; ++i)
        {
            int j = rand.nextInt(16) + 8;
            int k = rand.nextInt(16) + 8;
            int l = rand.nextInt(worldIn.getHeight(pos.add(j, 0, k)).getY() + 32);
            DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j, l, k));
        }
    }

    if (this.sunflowers)
    {
        DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.SUNFLOWER);

        for (int i1 = 0; i1 < 10; ++i1)
        {
            int j1 = rand.nextInt(16) + 8;
            int k1 = rand.nextInt(16) + 8;
            int l1 = rand.nextInt(worldIn.getHeight(pos.add(j1, 0, k1)).getY() + 32);
            DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j1, l1, k1));
        }
    }

    super.decorate(worldIn, rand, pos);
}
项目:Backmemed    文件:BiomeForest.java   
protected void addDoublePlants(World p_185378_1_, Random p_185378_2_, BlockPos p_185378_3_, int p_185378_4_)
{
    for (int i = 0; i < p_185378_4_; ++i)
    {
        int j = p_185378_2_.nextInt(3);

        if (j == 0)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.SYRINGA);
        }
        else if (j == 1)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.ROSE);
        }
        else if (j == 2)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.PAEONIA);
        }

        for (int k = 0; k < 5; ++k)
        {
            int l = p_185378_2_.nextInt(16) + 8;
            int i1 = p_185378_2_.nextInt(16) + 8;
            int j1 = p_185378_2_.nextInt(p_185378_1_.getHeight(p_185378_3_.add(l, 0, i1)).getY() + 32);

            if (DOUBLE_PLANT_GENERATOR.generate(p_185378_1_, p_185378_2_, new BlockPos(p_185378_3_.getX() + l, j1, p_185378_3_.getZ() + i1)))
            {
                break;
            }
        }
    }
}
项目:Backmemed    文件:BiomeTaiga.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    if (this.type == BiomeTaiga.Type.MEGA || this.type == BiomeTaiga.Type.MEGA_SPRUCE)
    {
        int i = rand.nextInt(3);

        for (int j = 0; j < i; ++j)
        {
            int k = rand.nextInt(16) + 8;
            int l = rand.nextInt(16) + 8;
            BlockPos blockpos = worldIn.getHeight(pos.add(k, 0, l));
            FOREST_ROCK_GENERATOR.generate(worldIn, rand, blockpos);
        }
    }

    DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.FERN);

    for (int i1 = 0; i1 < 7; ++i1)
    {
        int j1 = rand.nextInt(16) + 8;
        int k1 = rand.nextInt(16) + 8;
        int l1 = rand.nextInt(worldIn.getHeight(pos.add(j1, 0, k1)).getY() + 32);
        DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j1, l1, k1));
    }

    super.decorate(worldIn, rand, pos);
}
项目:Backmemed    文件:BiomeSavanna.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.GRASS);

    for (int i = 0; i < 7; ++i)
    {
        int j = rand.nextInt(16) + 8;
        int k = rand.nextInt(16) + 8;
        int l = rand.nextInt(worldIn.getHeight(pos.add(j, 0, k)).getY() + 32);
        DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j, l, k));
    }

    super.decorate(worldIn, rand, pos);
}
项目:CustomWorldGen    文件:BiomePlains.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    double d0 = GRASS_COLOR_NOISE.getValue((double)(pos.getX() + 8) / 200.0D, (double)(pos.getZ() + 8) / 200.0D);

    if (d0 < -0.8D)
    {
        this.theBiomeDecorator.flowersPerChunk = 15;
        this.theBiomeDecorator.grassPerChunk = 5;
    }
    else
    {
        this.theBiomeDecorator.flowersPerChunk = 4;
        this.theBiomeDecorator.grassPerChunk = 10;
        DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.GRASS);

        if(net.minecraftforge.event.terraingen.TerrainGen.decorate(worldIn, rand, pos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.GRASS))
        for (int i = 0; i < 7; ++i)
        {
            int j = rand.nextInt(16) + 8;
            int k = rand.nextInt(16) + 8;
            int l = rand.nextInt(worldIn.getHeight(pos.add(j, 0, k)).getY() + 32);
            DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j, l, k));
        }
    }

    if (this.sunflowers && net.minecraftforge.event.terraingen.TerrainGen.decorate(worldIn, rand, pos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.FLOWERS))
    {
        DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.SUNFLOWER);

        for (int i1 = 0; i1 < 10; ++i1)
        {
            int j1 = rand.nextInt(16) + 8;
            int k1 = rand.nextInt(16) + 8;
            int l1 = rand.nextInt(worldIn.getHeight(pos.add(j1, 0, k1)).getY() + 32);
            DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j1, l1, k1));
        }
    }

    super.decorate(worldIn, rand, pos);
}
项目:CustomWorldGen    文件:BiomeForest.java   
public void addDoublePlants(World p_185378_1_, Random p_185378_2_, BlockPos p_185378_3_, int p_185378_4_)
{
    for (int i = 0; i < p_185378_4_; ++i)
    {
        int j = p_185378_2_.nextInt(3);

        if (j == 0)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.SYRINGA);
        }
        else if (j == 1)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.ROSE);
        }
        else if (j == 2)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.PAEONIA);
        }

        for (int k = 0; k < 5; ++k)
        {
            int l = p_185378_2_.nextInt(16) + 8;
            int i1 = p_185378_2_.nextInt(16) + 8;
            int j1 = p_185378_2_.nextInt(p_185378_1_.getHeight(p_185378_3_.add(l, 0, i1)).getY() + 32);

            if (DOUBLE_PLANT_GENERATOR.generate(p_185378_1_, p_185378_2_, new BlockPos(p_185378_3_.getX() + l, j1, p_185378_3_.getZ() + i1)))
            {
                break;
            }
        }
    }
}
项目:CustomWorldGen    文件:BiomeTaiga.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    if ((this.type == BiomeTaiga.Type.MEGA || this.type == BiomeTaiga.Type.MEGA_SPRUCE) && net.minecraftforge.event.terraingen.TerrainGen.decorate(worldIn, rand, pos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.ROCK))
    {
        int i = rand.nextInt(3);

        for (int j = 0; j < i; ++j)
        {
            int k = rand.nextInt(16) + 8;
            int l = rand.nextInt(16) + 8;
            BlockPos blockpos = worldIn.getHeight(pos.add(k, 0, l));
            FOREST_ROCK_GENERATOR.generate(worldIn, rand, blockpos);
        }
    }

    DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.FERN);

    if(net.minecraftforge.event.terraingen.TerrainGen.decorate(worldIn, rand, pos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.FLOWERS))
    for (int i1 = 0; i1 < 7; ++i1)
    {
        int j1 = rand.nextInt(16) + 8;
        int k1 = rand.nextInt(16) + 8;
        int l1 = rand.nextInt(worldIn.getHeight(pos.add(j1, 0, k1)).getY() + 32);
        DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j1, l1, k1));
    }

    super.decorate(worldIn, rand, pos);
}
项目:CustomWorldGen    文件:BiomeSavanna.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.GRASS);

    if(net.minecraftforge.event.terraingen.TerrainGen.decorate(worldIn, rand, pos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.GRASS))
    for (int i = 0; i < 7; ++i)
    {
        int j = rand.nextInt(16) + 8;
        int k = rand.nextInt(16) + 8;
        int l = rand.nextInt(worldIn.getHeight(pos.add(j, 0, k)).getY() + 32);
        DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, pos.add(j, l, k));
    }

    super.decorate(worldIn, rand, pos);
}
项目:Rediscovered-Mod-1.8    文件:BlockEmptyPeonyBush.java   
public void updateTick(World world, BlockPos pos, IBlockState state, Random rand)
{
    this.checkAndDropBlock(world, pos, state);

    if (world.getLightFromNeighbors(pos.up()) >= 9)
    {
        float f = getGrowthChance(this, world, pos);

        if (rand.nextInt((int)(25.0F / f) + 1) == 0)
        {
            world.setBlockToAir(pos.up());
            Blocks.double_plant.placeAt(world, pos, BlockDoublePlant.EnumPlantType.PAEONIA, 2);
        }
    }
}
项目:Rediscovered-Mod-1.8    文件:BlockEmptyRoseBush.java   
public void updateTick(World world, BlockPos pos, IBlockState state, Random rand)
{
    this.checkAndDropBlock(world, pos, state);

    if (world.getLightFromNeighbors(pos.up()) >= 9)
    {
        float f = getGrowthChance(this, world, pos);

        if (rand.nextInt((int)(25.0F / f) + 1) == 0)
        {
            world.setBlockToAir(pos.up());
            Blocks.double_plant.placeAt(world, pos, BlockDoublePlant.EnumPlantType.ROSE, 2);
        }
    }
}
项目:Easy-Editors    文件:BlockPropertyRegistry.java   
private static void registerVanillaVariantProps() {
    // TODO: omit similar blocks
    registerVariantProperty(BlockStone.VARIANT);
    registerVariantProperty(BlockPlanks.VARIANT);
    registerVariantProperty(BlockSapling.TYPE);
    registerVariantProperty(BlockDirt.VARIANT);
    registerVariantProperty(BlockSand.VARIANT);
    registerVariantProperty(BlockOldLog.VARIANT);
    registerVariantProperty(BlockNewLog.VARIANT);
    registerVariantProperty(BlockOldLeaf.VARIANT);
    registerVariantProperty(BlockNewLeaf.VARIANT);
    registerVariantProperty(BlockSandStone.TYPE);
    registerVariantProperty(BlockTallGrass.TYPE);
    registerVariantProperty(BlockPistonExtension.TYPE);
    registerVariantProperty(BlockColored.COLOR);
    registerVariantProperty(BlockPistonMoving.TYPE);
    registerVariantProperty(Blocks.YELLOW_FLOWER.getTypeProperty());
    registerVariantProperty(Blocks.RED_FLOWER.getTypeProperty());
    registerVariantProperty(BlockStoneSlab.VARIANT);
    registerVariantProperty(BlockWoodSlab.VARIANT);
    registerVariantProperty(BlockAnvil.DAMAGE);
    registerVariantProperty(BlockQuartz.VARIANT);
    registerVariantProperty(BlockCarpet.COLOR);
    registerVariantProperty(BlockDoublePlant.VARIANT);
    registerVariantProperty(BlockStainedGlass.COLOR);
    registerVariantProperty(BlockStainedGlassPane.COLOR);
    registerVariantProperty(BlockPrismarine.VARIANT);
    registerVariantProperty(BlockRedSandstone.TYPE);
    registerVariantProperty(BlockStoneSlabNew.VARIANT);
}
项目:Rediscovered-Mod-1.8.8    文件:BlockEmptyPeonyBush.java   
public void updateTick(World world, BlockPos pos, IBlockState state, Random rand)
{
    this.checkAndDropBlock(world, pos, state);

    if (world.getLightFromNeighbors(pos.up()) >= 9)
    {
        float f = getGrowthChance(this, world, pos);

        if (rand.nextInt((int)(25.0F / f) + 1) == 0)
        {
            world.setBlockToAir(pos.up());
            Blocks.double_plant.placeAt(world, pos, BlockDoublePlant.EnumPlantType.PAEONIA, 2);
        }
    }
}
项目:Rediscovered-Mod-1.8.8    文件:BlockEmptyRoseBush.java   
public void updateTick(World world, BlockPos pos, IBlockState state, Random rand)
{
    this.checkAndDropBlock(world, pos, state);

    if (world.getLightFromNeighbors(pos.up()) >= 9)
    {
        float f = getGrowthChance(this, world, pos);

        if (rand.nextInt((int)(25.0F / f) + 1) == 0)
        {
            world.setBlockToAir(pos.up());
            Blocks.double_plant.placeAt(world, pos, BlockDoublePlant.EnumPlantType.ROSE, 2);
        }
    }
}
项目:ZeroQuest    文件:BiomeGenBlueTaiga.java   
public void decorate(World worldIn, Random p_180624_2_, BlockPos p_180624_3_)
{
    int i;
    int j;
    int k;
    int l;

    if (this.field_150644_aH == 1 || this.field_150644_aH == 2)
    {
        i = p_180624_2_.nextInt(3);

        for (j = 0; j < i; ++j)
        {
            k = p_180624_2_.nextInt(16) + 8;
            l = p_180624_2_.nextInt(16) + 8;
            BlockPos blockpos1 = worldIn.getHeight(p_180624_3_.add(k, 0, l));
            field_150643_aG.generate(worldIn, p_180624_2_, blockpos1);
        }
    }

    DOUBLE_PLANT_GENERATOR.func_180710_a(BlockDoublePlant.EnumPlantType.FERN);

    for (i = 0; i < 7; ++i)
    {
        j = p_180624_2_.nextInt(16) + 8;
        k = p_180624_2_.nextInt(16) + 8;
        l = p_180624_2_.nextInt(worldIn.getHeight(p_180624_3_.add(j, 0, k)).getY() + 32);
        DOUBLE_PLANT_GENERATOR.generate(worldIn, p_180624_2_, p_180624_3_.add(j, l, k));
    }

    super.decorate(worldIn, p_180624_2_, p_180624_3_);
}
项目:ZeroQuest    文件:BiomeGenNileSavanna.java   
public void decorate(World worldIn, Random p_180624_2_, BlockPos p_180624_3_)
{
    DOUBLE_PLANT_GENERATOR.func_180710_a(BlockDoublePlant.EnumPlantType.GRASS);

    for (int i = 0; i < 7; ++i)
    {
        int j = p_180624_2_.nextInt(16) + 8;
        int k = p_180624_2_.nextInt(16) + 8;
        int l = p_180624_2_.nextInt(worldIn.getHeight(p_180624_3_.add(j, 0, k)).getY() + 32);
        DOUBLE_PLANT_GENERATOR.generate(worldIn, p_180624_2_, p_180624_3_.add(j, l, k));
    }

    super.decorate(worldIn, p_180624_2_, p_180624_3_);
}
项目:GardenCollection    文件:VanillaMetaResolver.java   
@Override
public int getPlantHeight (Block block, int meta) {
    if (block instanceof BlockDoublePlant)
        return 2;

    // Default: Use for BlockFlower, BlockTallGrass, BlockMushroom
    return 1;
}
项目:GardenCollection    文件:VanillaMetaResolver.java   
@Override
public int getPlantSectionMeta (Block block, int meta, int section) {
    if (block instanceof BlockDoublePlant) {
        switch (section) {
            case 1: return meta & 0x7;
            case 2: return meta | 0x8;
        }
    }

    // Default: Use for BlockFlower, BlockTallGrass, BlockMushroom
    return meta;
}
项目:ForgeMods    文件:BlockLargePot.java   
private boolean enoughAirAbove (IBlockAccess world, int x, int y, int z, IPlantable plant) {
    Block plantBlock = plant.getPlant(world, x, y + 1, z);
    int height = (plantBlock instanceof BlockDoublePlant) ? 2 : 1;

    boolean enough = true;
    for (int i = 0; i < height; i++)
        enough &= world.isAirBlock(x, y + 1 + i, z);

    return enough;
}
项目:ForgeMods    文件:TransformPlantRenderer.java   
private boolean renderWorldBlock (IBlockAccess world, int x, int y, int z, BlockLargePotPlantProxy block, int modelId, RenderBlocks renderer) {
    //Item item = block.getItemBlock(world, x, y, z);
    //Block itemBlock = (item instanceof IPlantable) ? ((IPlantable)item).getPlant(world, x, y, z) : Block.getBlockFromItem(item);
    Block itemBlock = block.getItemBlock(world, x, y, z);
    if (itemBlock == null || itemBlock.isAir(world, x, y, z))
        return true;

    int itemRenderType = itemBlock.getRenderType();

    Tessellator tessellator = Tessellator.instance;
    tessellator.addTranslation(0, -.0625f, 0);

    int color = block.colorMultiplier(world, x, y, z);
    if (color != 16777215) {
        float r = (color >> 16 & 255) / 255f;
        float g = (color >> 8 & 255) / 255f;
        float b = (color & 255) / 255f;
        tessellator.setColorOpaque_F(r, g, b);
    }

    TileEntityLargePot potData = block.getAttachedPotEntity(world, x, y, z);
    if (potData == null)
        potData = new TileEntityLargePot();

    try {
        if (itemRenderType == 1)
            renderCrossedSquares(world, renderer, itemBlock, x, y, z, potData);
        else if (itemRenderType == 40 && itemBlock instanceof BlockDoublePlant)
            renderBlockDoublePlant(world, renderer, (BlockDoublePlant) itemBlock, x, y, z, potData);
        else
            renderer.renderBlockByRenderType(itemBlock, x, y, z);
        }
    catch (Exception e) { }

    tessellator.addTranslation(0, +.0625f, 0);

    return true;
}
项目:DecompiledMinecraft    文件:BiomeGenForest.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    if (this.field_150632_aF == 3)
    {
        for (int i = 0; i < 4; ++i)
        {
            for (int j = 0; j < 4; ++j)
            {
                int k = i * 4 + 1 + 8 + rand.nextInt(3);
                int l = j * 4 + 1 + 8 + rand.nextInt(3);
                BlockPos blockpos = worldIn.getHeight(pos.add(k, 0, l));

                if (rand.nextInt(20) == 0)
                {
                    WorldGenBigMushroom worldgenbigmushroom = new WorldGenBigMushroom();
                    worldgenbigmushroom.generate(worldIn, rand, blockpos);
                }
                else
                {
                    WorldGenAbstractTree worldgenabstracttree = this.genBigTreeChance(rand);
                    worldgenabstracttree.func_175904_e();

                    if (worldgenabstracttree.generate(worldIn, rand, blockpos))
                    {
                        worldgenabstracttree.func_180711_a(worldIn, rand, blockpos);
                    }
                }
            }
        }
    }

    int j1 = rand.nextInt(5) - 3;

    if (this.field_150632_aF == 1)
    {
        j1 += 2;
    }

    for (int k1 = 0; k1 < j1; ++k1)
    {
        int l1 = rand.nextInt(3);

        if (l1 == 0)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.SYRINGA);
        }
        else if (l1 == 1)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.ROSE);
        }
        else if (l1 == 2)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.PAEONIA);
        }

        for (int i2 = 0; i2 < 5; ++i2)
        {
            int j2 = rand.nextInt(16) + 8;
            int k2 = rand.nextInt(16) + 8;
            int i1 = rand.nextInt(worldIn.getHeight(pos.add(j2, 0, k2)).getY() + 32);

            if (DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, new BlockPos(pos.getX() + j2, i1, pos.getZ() + k2)))
            {
                break;
            }
        }
    }

    super.decorate(worldIn, rand, pos);
}
项目:DecompiledMinecraft    文件:WorldGenDoublePlant.java   
public void setPlantType(BlockDoublePlant.EnumPlantType p_180710_1_)
{
    this.field_150549_a = p_180710_1_;
}
项目:DecompiledMinecraft    文件:RecipesDyes.java   
/**
 * Adds the dye recipes to the CraftingManager.
 */
public void addRecipes(CraftingManager p_77607_1_)
{
    for (int i = 0; i < 16; ++i)
    {
        p_77607_1_.addShapelessRecipe(new ItemStack(Blocks.wool, 1, i), new Object[] {new ItemStack(Items.dye, 1, 15 - i), new ItemStack(Item.getItemFromBlock(Blocks.wool), 1, 0)});
        p_77607_1_.addRecipe(new ItemStack(Blocks.stained_hardened_clay, 8, 15 - i), new Object[] {"###", "#X#", "###", '#', new ItemStack(Blocks.hardened_clay), 'X', new ItemStack(Items.dye, 1, i)});
        p_77607_1_.addRecipe(new ItemStack(Blocks.stained_glass, 8, 15 - i), new Object[] {"###", "#X#", "###", '#', new ItemStack(Blocks.glass), 'X', new ItemStack(Items.dye, 1, i)});
        p_77607_1_.addRecipe(new ItemStack(Blocks.stained_glass_pane, 16, i), new Object[] {"###", "###", '#', new ItemStack(Blocks.stained_glass, 1, i)});
    }

    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 1, EnumDyeColor.YELLOW.getDyeDamage()), new Object[] {new ItemStack(Blocks.yellow_flower, 1, BlockFlower.EnumFlowerType.DANDELION.getMeta())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 1, EnumDyeColor.RED.getDyeDamage()), new Object[] {new ItemStack(Blocks.red_flower, 1, BlockFlower.EnumFlowerType.POPPY.getMeta())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 3, EnumDyeColor.WHITE.getDyeDamage()), new Object[] {Items.bone});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 2, EnumDyeColor.PINK.getDyeDamage()), new Object[] {new ItemStack(Items.dye, 1, EnumDyeColor.RED.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.WHITE.getDyeDamage())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 2, EnumDyeColor.ORANGE.getDyeDamage()), new Object[] {new ItemStack(Items.dye, 1, EnumDyeColor.RED.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.YELLOW.getDyeDamage())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 2, EnumDyeColor.LIME.getDyeDamage()), new Object[] {new ItemStack(Items.dye, 1, EnumDyeColor.GREEN.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.WHITE.getDyeDamage())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 2, EnumDyeColor.GRAY.getDyeDamage()), new Object[] {new ItemStack(Items.dye, 1, EnumDyeColor.BLACK.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.WHITE.getDyeDamage())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 2, EnumDyeColor.SILVER.getDyeDamage()), new Object[] {new ItemStack(Items.dye, 1, EnumDyeColor.GRAY.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.WHITE.getDyeDamage())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 3, EnumDyeColor.SILVER.getDyeDamage()), new Object[] {new ItemStack(Items.dye, 1, EnumDyeColor.BLACK.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.WHITE.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.WHITE.getDyeDamage())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 2, EnumDyeColor.LIGHT_BLUE.getDyeDamage()), new Object[] {new ItemStack(Items.dye, 1, EnumDyeColor.BLUE.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.WHITE.getDyeDamage())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 2, EnumDyeColor.CYAN.getDyeDamage()), new Object[] {new ItemStack(Items.dye, 1, EnumDyeColor.BLUE.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.GREEN.getDyeDamage())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 2, EnumDyeColor.PURPLE.getDyeDamage()), new Object[] {new ItemStack(Items.dye, 1, EnumDyeColor.BLUE.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.RED.getDyeDamage())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 2, EnumDyeColor.MAGENTA.getDyeDamage()), new Object[] {new ItemStack(Items.dye, 1, EnumDyeColor.PURPLE.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.PINK.getDyeDamage())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 3, EnumDyeColor.MAGENTA.getDyeDamage()), new Object[] {new ItemStack(Items.dye, 1, EnumDyeColor.BLUE.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.RED.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.PINK.getDyeDamage())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 4, EnumDyeColor.MAGENTA.getDyeDamage()), new Object[] {new ItemStack(Items.dye, 1, EnumDyeColor.BLUE.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.RED.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.RED.getDyeDamage()), new ItemStack(Items.dye, 1, EnumDyeColor.WHITE.getDyeDamage())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 1, EnumDyeColor.LIGHT_BLUE.getDyeDamage()), new Object[] {new ItemStack(Blocks.red_flower, 1, BlockFlower.EnumFlowerType.BLUE_ORCHID.getMeta())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 1, EnumDyeColor.MAGENTA.getDyeDamage()), new Object[] {new ItemStack(Blocks.red_flower, 1, BlockFlower.EnumFlowerType.ALLIUM.getMeta())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 1, EnumDyeColor.SILVER.getDyeDamage()), new Object[] {new ItemStack(Blocks.red_flower, 1, BlockFlower.EnumFlowerType.HOUSTONIA.getMeta())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 1, EnumDyeColor.RED.getDyeDamage()), new Object[] {new ItemStack(Blocks.red_flower, 1, BlockFlower.EnumFlowerType.RED_TULIP.getMeta())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 1, EnumDyeColor.ORANGE.getDyeDamage()), new Object[] {new ItemStack(Blocks.red_flower, 1, BlockFlower.EnumFlowerType.ORANGE_TULIP.getMeta())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 1, EnumDyeColor.SILVER.getDyeDamage()), new Object[] {new ItemStack(Blocks.red_flower, 1, BlockFlower.EnumFlowerType.WHITE_TULIP.getMeta())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 1, EnumDyeColor.PINK.getDyeDamage()), new Object[] {new ItemStack(Blocks.red_flower, 1, BlockFlower.EnumFlowerType.PINK_TULIP.getMeta())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 1, EnumDyeColor.SILVER.getDyeDamage()), new Object[] {new ItemStack(Blocks.red_flower, 1, BlockFlower.EnumFlowerType.OXEYE_DAISY.getMeta())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 2, EnumDyeColor.YELLOW.getDyeDamage()), new Object[] {new ItemStack(Blocks.double_plant, 1, BlockDoublePlant.EnumPlantType.SUNFLOWER.getMeta())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 2, EnumDyeColor.MAGENTA.getDyeDamage()), new Object[] {new ItemStack(Blocks.double_plant, 1, BlockDoublePlant.EnumPlantType.SYRINGA.getMeta())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 2, EnumDyeColor.RED.getDyeDamage()), new Object[] {new ItemStack(Blocks.double_plant, 1, BlockDoublePlant.EnumPlantType.ROSE.getMeta())});
    p_77607_1_.addShapelessRecipe(new ItemStack(Items.dye, 2, EnumDyeColor.PINK.getDyeDamage()), new Object[] {new ItemStack(Blocks.double_plant, 1, BlockDoublePlant.EnumPlantType.PAEONIA.getMeta())});

    for (int j = 0; j < 16; ++j)
    {
        p_77607_1_.addRecipe(new ItemStack(Blocks.carpet, 3, j), new Object[] {"##", '#', new ItemStack(Blocks.wool, 1, j)});
    }
}