Since I couldn't find a way to do it like in earlier game versions, I decided to make each side of the model a separate flat box. If anyone knows a better way, please let me know.
Sorry for the late response, but I found how to make the buttons update. All I had to do was to clear existing buttons and re-run the init, whenever the buttons are hovered over, like this:
if(styleButton[i].isHovered()) {
this.renderTooltip(stack, new StringTextComponent(styleCap.getStyleDescription(i)), mouseX, mouseY);
buttons.clear();
this.init();
}
However I still have a problem with that statement, in that it still only works on the last non-null button, and not on any of the previous buttons. Anyone know why the statement would do so?
Full class here.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.