Advertisement
Guest User

Untitled

a guest
Jan 15th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Fluid fluid = te.getCurrentRecipe().result().getFluid();
  2. TextureAtlasSprite f_s = Minecraft.getMinecraft().getTextureMapBlocks().getAtlasSprite(fluid.getStill().toString());
  3. TextureAtlasSprite f_f = Minecraft.getMinecraft().getTextureMapBlocks().getAtlasSprite(fluid.getFlowing().toString());
  4. int c = fluid.getColor();
  5. float red = ((float) (c&0xFF)) / 255;
  6. float green = ((float) (c >> 8)&0xFF) / 255;
  7. float blue = ((float) (c >> 16)&0xFF) / 255;
  8. float alpha = ((float) (c >> 24)&0xFF) / 255;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement