package net.minecraft.world.level;

public class GrassColor {
   private static int[] pixels = new int[65536];

   public static void init(int[] p_46419_) {
      pixels = p_46419_;
   }

   public static int get(double p_46416_, double p_46417_) {
      p_46417_ *= p_46416_;
      int i = (int)((1.0D - p_46416_) * 255.0D);
      int j = (int)((1.0D - p_46417_) * 255.0D);
      int k = j << 8 | i;
      return k >= pixels.length ? -65281 : pixels[k];
   }

   public static int getDefaultColor() {
      return get(0.5D, 1.0D);
   }
}