}
public void handleMouseClicked(int mouseX, int mouseY, int mouseButton) {
Widget slot = getAtPosition(mouseX - gui.getGuiLeft(), mouseY - gui.getGuiTop());
if (slot != null)
slot.handleMouseClick(mouseX, mouseY, mouseButton);
}
public void handleMouseRelease(int mouseX, int mouseY, int eventType) {
for (Widget slot : widgets) {
slot.handleMouseRelease(mouseX, mouseY, eventType);