Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SubscribeEvent
- public void onEvent(InitGuiEvent.Post event) {
- List toReplace = new ArrayList();
- for(Object a : event.buttonList) {
- GuiButton b = (GuiButton) a;
- CIGuiButton c = new CIGuiButton(b.id, new Bounds(b.xPosition, b.yPosition, b.width, b.height), b.displayString, true);
- toReplace.add(c);
- System.out.println(b.xPosition + " " + b.yPosition);
- }
- event.buttonList = toReplace;
- for(Object a : event.buttonList) {
- System.out.println(a.getClass());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement