Class HTEnergySlotWidget
-
- All Implemented Interfaces:
-
hiiragi283.core.api.gui.widget.HTWidget,hiiragi283.core.api.storage.amount.HTAmountView
public final class HTEnergySlotWidget extends HTAbstractWidget implements HTAmountView
-
-
Field Summary
Fields Modifier and Type Field Description private final HTBoundsbounds
-
Constructor Summary
Constructors Constructor Description HTEnergySlotWidget(HTEnergyBattery view, HTIntSyncSlot syncSlot, Integer x, Integer y)HTEnergySlotWidget(HTEnergyBattery.Basic view, Integer x, Integer y)
-
Method Summary
Modifier and Type Method Description final HTBoundsgetBounds()HTWidgetType<HTEnergySlotWidget>getType()UnitsetupHolder(HTWidgetHolder widgetHolder)-
Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView
getAmount, getCapacity, getLevelAsFloat, getLevelAsFraction, getNeeded, isEmpty -
Methods inherited from class hiiragi283.core.api.gui.widget.HTWidget
charTyped, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, onInit -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getBounds
final HTBounds getBounds()
-
getType
HTWidgetType<HTEnergySlotWidget> getType()
-
setupHolder
Unit setupHolder(HTWidgetHolder widgetHolder)
-
-
-
-