Class HTFluidWidget
-
- All Implemented Interfaces:
-
hiiragi283.core.api.gui.widget.HTWidget,hiiragi283.core.api.integration.emi.widget.HTIngredientWidget,hiiragi283.core.api.storage.amount.HTAmountView,hiiragi283.core.api.storage.resource.HTResourceView
public abstract class HTFluidWidget extends HTAbstractWidget implements HTIngredientWidget, HTResourceView<HTFluidResourceType>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classHTFluidWidget.TankWidgetpublic final classHTFluidWidget.StackWidget
-
Field Summary
Fields Modifier and Type Field Description private HTBackgroundTypebackgroundTypeprivate final HTBoundsbounds
-
Constructor Summary
Constructors Constructor Description HTFluidWidget(HTFluidTank tank, Integer x, Integer y, Integer width, Integer height)
-
Method Summary
Modifier and Type Method Description final HTBackgroundTypegetBackgroundType()final UnitsetBackgroundType(HTBackgroundType value)final HTBoundsgetBounds()FluidStackgetIngredient()保持しているオブジェクトを取得します。 -
Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceView
getCapacity, getCapacity, getLevelAsFloat, getLevelAsFraction, getNeeded, getResource -
Methods inherited from class hiiragi283.core.api.storage.amount.HTAmountView
getAmount, getLevelAsFloat, getLevelAsFraction, getNeeded -
Methods inherited from class hiiragi283.core.api.gui.widget.HTWidget
charTyped, getType, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setupHolder -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTFluidWidget
HTFluidWidget(HTFluidTank tank, Integer x, Integer y, Integer width, Integer height)
-
-
Method Detail
-
getBackgroundType
final HTBackgroundType getBackgroundType()
-
setBackgroundType
final Unit setBackgroundType(HTBackgroundType value)
-
getIngredient
FluidStack getIngredient()
保持しているオブジェクトを取得します。
- Returns:
空の場合は
null
-
-
-
-