Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void flashColor(float a, float r, float g, float b) {
- int i = 0, k = 0;
- ScaledResolution kh1 = new ScaledResolution(mc.displayWidth, mc.displayHeight);
- int l = kh1.getScaledWidth();
- int i1 = kh1.getScaledHeight();
- Tessellator kv1 = Tessellator.instance;
- GL11.glEnable(3042 /*GL_BLEND*/);
- GL11.glDisable(3553 /*GL_TEXTURE_2D*/);
- GL11.glBlendFunc(770, 771);
- GL11.glColor4f(r, g, b, a);
- kv1.startDrawingQuads();
- kv1.addVertex(i, i1, 0.0D);
- kv1.addVertex(l, i1, 0.0D);
- kv1.addVertex(l, k, 0.0D);
- kv1.addVertex(i, k, 0.0D);
- kv1.draw();
- GL11.glEnable(3553 /*GL_TEXTURE_2D*/);
- GL11.glDisable(3042 /*GL_BLEND*/);
- }
- publick OnTickInGame(Minecraft game) {
- flashColor(0.4f, 1f, 0f, 0f);
- }
Advertisement
Add Comment
Please, Sign In to add comment