Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2015
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Fluid fluid = FluidRegistry.LAVA;
  2. TextureAtlasSprite a = Minecraft.getMinecraft().getTextureMapBlocks().getAtlasSprite(fluid.getStill().toString());
  3. int b = fluid.getColor();
  4. byte red = (byte)b;
  5. byte green = (byte)(b >> 8);
  6. byte blue = (byte)(b >> 16);
  7. byte alpha = (byte)(b >> 24);
  8.  
  9. GL11.glColor4b(red, green, blue, alpha);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement