Class HTFluidWidget
-
- All Implemented Interfaces:
-
hiiragi283.core.api.gui.widget.HTWidget,hiiragi283.core.api.integration.jei.widget.HTGhostWidget,hiiragi283.core.api.integration.jei.widget.HTIngredientWidget,hiiragi283.core.api.storage.amount.HTAmountView,hiiragi283.core.api.storage.resource.HTResourceView
public final class HTFluidWidget extends HTAbstractWidget implements HTGhostWidget, HTIngredientWidget, HTResourceView<HTFluidResourceType>
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisTankprivate HTBackgroundTypebackgroundTypeprivate final HTBoundsbounds
-
Method Summary
-
Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceView
getCapacity, getCapacity, getLevelAsFloat, getLevelAsFraction, getNeeded, getResource, isEmpty -
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, keyPressed, keyReleased, mouseDragged, mouseReleased, mouseScrolled, onInit -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getBackgroundType
final HTBackgroundType getBackgroundType()
-
setBackgroundType
final Unit setBackgroundType(HTBackgroundType value)
-
setBackground
final HTFluidWidget setBackground(HTBackgroundType background)
-
getType
HTWidgetType<HTFluidWidget> getType()
HTWidgetTypeを取得します。
-
setupHolder
Unit setupHolder(HTWidgetHolder widgetHolder)
-
setGhost
final HTFluidWidget setGhost()
-
getGhostConsumer
HTGhostWidget.GhostIngredientConsumer getGhostConsumer()
保持しているGhostIngredientConsumerを取得します。
-
mouseClicked
Unit mouseClicked(HTWidget.Access access, Double mouseX, Double mouseY, Integer button)
このウィジェットをクリックした時に呼び出されます。
-
getIngredient
FluidStack getIngredient()
保持しているオブジェクトを取得します。
- Returns:
空の場合は
null
-
createTank
final static HTFluidWidget createTank(HTResourceSlot.Mutable<HTFluidResourceType> tank, Integer x, Integer y)
-
createTank
final static HTFluidWidget createTank(HTResourceView<HTFluidResourceType> view, HTFluidSyncSlot fluidSlot, Integer x, Integer y)
-
createSlot
final static HTFluidWidget createSlot(HTResourceSlot.Mutable<HTFluidResourceType> tank, Integer x, Integer y)
-
createSlot
final static HTFluidWidget createSlot(HTResourceView<HTFluidResourceType> view, HTFluidSyncSlot fluidSlot, Integer x, Integer y)
-
-
-
-