In the vanilla code, for the recipe book "ghost" recipe's, AbstractGui.fill is used to draw a gray transparent rectangle over the items which makes it look like they're see-through.
I've been trying to use this trick myself, but I can't seem to figure out how to manipulate the color that function uses. Inside it, the integer get somehow decoded (my knowledge doesn't go far when it comes to what I think is called bit-shifting?)
float f3 = (float)(p_fill_4_ >> 24 & 255) / 255.0F;
float f = (float)(p_fill_4_ >> 16 & 255) / 255.0F;
float f1 = (float)(p_fill_4_ >> 8 & 255) / 255.0F;
float f2 = (float)(p_fill_4_ & 255) / 255.0F;
GlStateManager.color4f(f, f1, f2, f3);
Here's how it get called.
AbstractGui.fill(j, k, j + 16, k + 16, 822083583);
Does anyone know how I would go at changing the color/transparency of the fill?