Advertisement
Olivki

Totally amazing fullbright

Jun 28th, 2013
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.99 KB | None | 0 0
  1. package se.proxus.mods.list.world;
  2.  
  3. import se.proxus.Gallium;
  4. import se.proxus.events.EventHandler;
  5. import se.proxus.events.list.player.EventUpdate;
  6. import se.proxus.mods.Mod;
  7. import se.proxus.mods.ModCategory;
  8.  
  9. public class Brightness extends Mod {
  10.  
  11.     public Brightness(final Gallium client) {
  12.     super("Brightness", ModCategory.WORLD, false, client);
  13.     }
  14.  
  15.     @Override
  16.     public void init() {
  17.     setDescription("Makes the world brighter.");
  18.     }
  19.  
  20.     @Override
  21.     public void onEnable() {
  22.     getClient().getEvents().registerListener(this);
  23.     registerSetting(0,
  24.         getClient().getMinecraft().entityRenderer.lightmapTexture,
  25.         true, true);
  26.     }
  27.  
  28.     @Override
  29.     public void onDisable() {
  30.     getClient().getEvents().unregisterListener(this);
  31.     getClient().getMinecraft().entityRenderer.lightmapTexture = (Integer) getSetting(0);
  32.     }
  33.  
  34.     @EventHandler
  35.     public void onEventUpdate(final EventUpdate event) {
  36.     getClient().getMinecraft().entityRenderer.lightmapTexture = 1;
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement