package biomesoplenty.blocks; import java.util.Random; import biomesoplenty.api.Blocks; import biomesoplenty.configuration.BOPBlocks; import net.minecraft.block.BlockFlower; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.world.ColorizerFoliage; import net.minecraft.world.ColorizerGrass; import net.minecraft.world.IBlockAccess; @Deprecated public class BlockHighGrassTop extends BlockFlower { public BlockHighGrassTop(int par1) { super(par1, Material.vine); float var3 = 0.4F; this.setBurnProperties(this.blockID, 60, 100); this.setBlockBounds(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F); } @Override public void registerIcons(IconRegister par1IconRegister) { this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:highgrasstop"); } /** * Gets passed in the blockID of the block below and supposed to return true if its allowed to grow on the type of * blockID passed in. Args: blockID */ protected boolean canThisPlantGrowOnThisBlockID(int par1) { return par1 == Blocks.foliage.get().blockID; } public int getBlockColor() { double var1 = 0.5D; double var3 = 1.0D; return ColorizerGrass.getGrassColor(var1, var3); } /** * Returns the color this block should be rendered. Used by leaves. */ public int getRenderColor(int par1) { return par1 == 0 ? 16777215 : ColorizerFoliage.getFoliageColorBasic(); } /** * Returns a integer with hex for 0xrrggbb with this color multiplied against the blocks color. Note only called * when first determining what to render. */ public int colorMultiplier(IBlockAccess par1IBlockAccess, int par2, int par3, int par4) { int var5 = par1IBlockAccess.getBlockMetadata(par2, par3, par4); return var5 == 0 ? 16777215 : par1IBlockAccess.getBiomeGenForCoords(par2, par4).getBiomeGrassColor(); } /** * Returns the ID of the items to drop on destruction. */ public int idDropped(int par1, Random par2Random, int par3) { return -1; } }