Class HTItemSlotWidget
-
- All Implemented Interfaces:
-
hiiragi283.core.api.gui.widget.HTWidget,hiiragi283.core.api.recipe.viewer.widget.HTGhostWidget,hiiragi283.core.api.recipe.viewer.widget.HTIngredientWidget
public final class HTItemSlotWidget extends HTAbstractWidget implements HTGhostWidget, HTIngredientWidget
-
-
Field Summary
Fields Modifier and Type Field Description private final Either<HTItemSyncSlot, Slot>contentsprivate final HTBackgroundTypebackgroundTypeprivate final SlotcontainerSlotprivate final HTBoundsbounds
-
Method Summary
-
-
Method Detail
-
getContents
final Either<HTItemSyncSlot, Slot> getContents()
-
getBackgroundType
final HTBackgroundType getBackgroundType()
-
getContainerSlot
final Slot getContainerSlot()
-
getStack
final ItemStack getStack()
-
getType
HTWidgetType<HTItemSlotWidget> getType()
HTWidgetTypeを取得します。
-
setupHolder
Unit setupHolder(HTWidgetHolder widgetHolder)
-
onInit
Unit onInit(HTWidget.Access access)
- Since:
0.12.0
-
setGhost
final HTItemSlotWidget setGhost()
-
getGhostConsumer
HTGhostWidget.GhostIngredientConsumer getGhostConsumer()
保持しているGhostIngredientConsumerを取得します。
-
mouseClicked
Unit mouseClicked(HTWidget.Access access, Double mouseX, Double mouseY, Integer button)
このウィジェットをクリックした時に呼び出されます。
-
getIngredient
ItemStack getIngredient()
保持しているオブジェクトを取得します。
- Returns:
空の場合は
null
-
container
final static HTItemSlotWidget container(HTItemStackResourceSlot slot, Integer x, Integer y, HTBackgroundType backgroundType)
-
container
final static HTItemSlotWidget container(Slot slot, HTBackgroundType backgroundType)
-
fake
final static HTItemSlotWidget fake(HTItemStackResourceSlot slot, Integer x, Integer y, HTBackgroundType backgroundType)
-
fake
final static HTItemSlotWidget fake(HTItemSyncSlot slot, Integer x, Integer y, HTBackgroundType backgroundType)
-
-
-
-