Class PokemonSlot
java.lang.Object
com.pixelmonmod.api.client.screen.widget.StatefulWidget<PokemonSlot>
com.pixelmonmod.api.client.screen.widget.input.PokemonSlot
- All Implemented Interfaces:
States<PokemonSlot>
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
PokemonSlot
(Pokemon pokemon, ActionFunction<PokemonSlot> onClick) protected
PokemonSlot
(RaidData raid, ActionFunction<PokemonSlot> onClick) protected
PokemonSlot
(RaidData raid, Pokemon pokemon, ActionFunction<PokemonSlot> onClick) protected
PokemonSlot
(RaidData raid, RaidData.RaidPlayer player, ActionFunction<PokemonSlot> onClick) -
Method Summary
Modifier and TypeMethodDescriptionstatic PokemonSlot
create
(Pokemon pokemon, ActionFunction<PokemonSlot> onClick) static PokemonSlot
create
(RaidData raid, Pokemon pokemon, ActionFunction<PokemonSlot> onClick) static PokemonSlot
create
(RaidData raid, RaidData.RaidPlayer player, ActionFunction<PokemonSlot> onClick) boolean
hovered()
onMouseClicked
(Action action, double mouseX, double mouseY, int button) void
render
(WidgetRenderState<PokemonSlot> state) void
tick()
Methods inherited from class com.pixelmonmod.api.client.screen.widget.StatefulWidget
bounds, boundsOffset, boundsOffset, boundsOffset, child, children, colorTable, contains, contains, defaultTypeface, draggableInternal, draggedInternal, enabledInternal, equals, focusableInternal, focusedInternal, hashCode, hoverableInternal, hoveredInternal, index, index, init, init, initInternal, minecraft, offset, offset, offset, onCharTyped, onCharTypedInternal, onKeyPressed, onKeyPressedInternal, onKeyReleased, onKeyReleasedInternal, onMouseClickedInternal, onMouseDragged, onMouseDraggedInternal, onMouseMoved, onMouseMovedInternal, onMousePressedInternal, onMouseReleased, onMouseReleasedInternal, onMouseScrolled, onMouseScrolledInternal, owner, owner, parent, parent, play, play, play, play, play, play, playClick, player, position, position, position, position, positionRemap, positionRemap, postRender, postRender, postTick, preRender, preRender, preTick, rawPosition, rawSize, renderInternal, self, size, size, size, size, sizeRemap, sizeRemap, stateInternal, tickableInternal, tickInternal, toString, transform, transform, uid, visibleInternal, widget
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.pixelmonmod.api.client.screen.widget.States
active, disable, disabled, doesNotTick, draggable, draggable, dragged, dragged, enable, enabled, enabled, focusable, focusable, focused, focused, hidden, hide, hoverable, hoverable, hovered, inactive, noTicks, receivesTicks, show, state, state, state, tickable, ticks, visible, visible
-
Constructor Details
-
PokemonSlot
-
PokemonSlot
protected PokemonSlot(RaidData raid, RaidData.RaidPlayer player, ActionFunction<PokemonSlot> onClick) -
PokemonSlot
-
PokemonSlot
-
-
Method Details
-
create
public static PokemonSlot create(RaidData raid, RaidData.RaidPlayer player, ActionFunction<PokemonSlot> onClick) -
create
public static PokemonSlot create(RaidData raid, Pokemon pokemon, ActionFunction<PokemonSlot> onClick) -
create
-
applyRaidState
-
pokemon
-
hovered
public boolean hovered() -
tick
public void tick()- Overrides:
tick
in classStatefulWidget<PokemonSlot>
-
render
- Overrides:
render
in classStatefulWidget<PokemonSlot>
-
onMouseClicked
- Overrides:
onMouseClicked
in classStatefulWidget<PokemonSlot>
-