Exemple #1
0
 @Override
 @SideOnly(Side.CLIENT)
 public int getBlockColor() {
   double d0 = 0.5D;
   double d1 = 1.0D;
   return ColorizerGrass.getGrassColor(d0, d1);
 }
 public void func_110549_a(ResourceManager par1ResourceManager) {
   try {
     ColorizerGrass.setGrassBiomeColorizer(
         TextureUtil.func_110986_a(par1ResourceManager, field_130078_a));
   } catch (IOException ioexception) {;
   }
 }
Exemple #3
0
 public int getRenderColor(IBlockState state) {
   if (state.getBlock() != this) {
     return super.getRenderColor(state);
   } else {
     BlockTallGrass.EnumType var2 = (BlockTallGrass.EnumType) state.getValue(field_176497_a);
     return var2 == BlockTallGrass.EnumType.DEAD_BUSH
         ? 16777215
         : ColorizerGrass.getGrassColor(0.5D, 1.0D);
   }
 }
Exemple #4
0
 @Override
 @SideOnly(Side.CLIENT)
 public int getRenderColor(int meta) {
   /*if (par1 % 8 == 0)
       return this.getBlockColor();
   return 0xFFFFFF;*/
   double d0 = 0.5D;
   double d1 = 1.0D;
   if (meta == 1) return GrassColorizerAlternate.getBlueGrassColor(d0, 0.5D);
   if (meta == 2) return GrassColorizerAlternate.getOrangeGrassColor(1.0D, 1.0D);
   return ColorizerGrass.getGrassColor(d0, d1);
 }
Exemple #5
0
 public int func_180627_b(BlockPos p_180627_1_) {
   double var2 = (double) MathHelper.clamp_float(this.func_180626_a(p_180627_1_), 0.0F, 1.0F);
   double var4 = (double) MathHelper.clamp_float(this.getFloatRainfall(), 0.0F, 1.0F);
   return ColorizerGrass.getGrassColor(var2, var4);
 }
Exemple #6
0
 public int getBlockColor() {
   return ColorizerGrass.getGrassColor(0.5D, 1.0D);
 }
 public void func_110549_a(ResourceManager p_110549_1_) {
   try {
     ColorizerGrass.func_77479_a(TextureUtil.func_110986_a(p_110549_1_, field_130078_a));
   } catch (IOException var3) {;
   }
 }
 @Override
 @SideOnly(Side.CLIENT)
 public int getRenderColor(int par1) {
   return ColorizerGrass.getGrassColor(0.5d, 1.0d);
 }
Exemple #9
0
 @SideOnly(Side.CLIENT)
 public int func_76737_k() {
   double var1 = (double) this.func_76743_j();
   double var3 = (double) this.func_76727_i();
   return ((ColorizerGrass.func_77480_a(var1, var3) & 16711422) + 5115470) / 2;
 }
 @Override
 @SideOnly(Side.CLIENT)
 public int getBiomeGrassColor() {
   return ColorizerGrass.getGrassColor(1.0F, 1.0F);
 }