Advertisement
Guest User

Untitled

a guest
Aug 24th, 2015
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1.     @SubscribeEvent
  2.     public void onEvent(InitGuiEvent.Post event) {
  3.        
  4.         List toReplace = new ArrayList();
  5.         for(Object a : event.buttonList) {
  6.             GuiButton b = (GuiButton) a;
  7.             CIGuiButton c = new CIGuiButton(b.id, new Bounds(b.xPosition, b.yPosition, b.width, b.height), b.displayString, true);
  8.             toReplace.add(c);
  9.             System.out.println(b.xPosition + " " + b.yPosition);
  10.         }
  11.         event.buttonList = toReplace;
  12.         for(Object a : event.buttonList) {
  13.             System.out.println(a.getClass());
  14.         }
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement