Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void setLightMap(Entity e, BlockPos pos)
- {
- e.posX = pos.getX();
- e.posY = pos.getY();
- e.posZ = pos.getZ();
- setLightMap(e);
- }
- public static void setLightMap(Entity e)
- {
- int i = e.getBrightnessForRender();
- if (e.isBurning())
- {
- i = 15728880;
- }
- int j = i % 65536;
- int k = i / 65536;
- OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)j, (float)k);
- }
Advertisement
Add Comment
Please, Sign In to add comment