2014-04-29 10:54:20 +10:00
|
|
|
package codechicken.nei;
|
|
|
|
|
|
2022-06-24 12:32:13 +01:00
|
|
|
public abstract class ButtonCycled extends Button {
|
2023-01-28 17:55:51 -08:00
|
|
|
|
2021-03-15 22:31:36 -07:00
|
|
|
public ButtonCycled() {}
|
|
|
|
|
|
|
|
|
|
public ButtonCycled(int num) {
|
|
|
|
|
icons = new Image[num];
|
2021-03-23 23:34:05 -07:00
|
|
|
init();
|
2021-03-15 22:31:36 -07:00
|
|
|
}
|
2022-06-24 12:32:13 +01:00
|
|
|
|
2014-04-29 10:54:20 +10:00
|
|
|
@Override
|
2022-06-24 12:32:13 +01:00
|
|
|
public Image getRenderIcon() {
|
2014-04-29 10:54:20 +10:00
|
|
|
return icons[index];
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-23 23:34:05 -07:00
|
|
|
public void init() {}
|
2022-06-24 12:32:13 +01:00
|
|
|
|
2014-04-29 10:54:20 +10:00
|
|
|
public int index;
|
|
|
|
|
public Image[] icons;
|
|
|
|
|
}
|