1 package com.irtimaled.bbor.client.gui;
3 abstract class AbstractButton extends AbstractControl {
4 AbstractButton(int x, int y, int width, String name) {
5 super(x, y, width, name);
8 AbstractButton(int x, int y, int width, String name, boolean enabled) {
9 this(x, y, width, name);
10 this.enabled = enabled;
14 protected int getHoverState(boolean p_getHoverState_1_) {
18 protected int getState() {
19 return this.enabled ? this.hovered ? 2 : 1 : 0;
23 public void onClick(double mouseX, double mouseY) {
24 super.onClick(mouseX, mouseY);
28 protected abstract void onPressed();