Class Rendering
java.lang.Object
com.pixelmonmod.api.client.screen.widget.StatefulWidget<Rendering>
com.pixelmonmod.api.client.screen.widget.design.Rendering
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Rendering
(Consumer<WidgetRenderState<Rendering>> rendering) -
Method Summary
Modifier and TypeMethodDescriptionfinal Rendering
clickAction
(ClickAction clickAction) static Rendering
create
(Consumer<WidgetRenderState<Rendering>> rendering) final Rendering
dragAction
(DragAction clickAction) final Rendering
hoverRendering
(Consumer<WidgetRenderState<Rendering>> hoverRendering) onMouseClicked
(Action action, double mouseX, double mouseY, int button) onMouseDragged
(Action action, double mouseX, double mouseY, int button, double deltaX, double deltaY) onMouseReleased
(Action action, double mouseX, double mouseY, int button) onMouseScrolled
(Action action, double mouseX, double mouseY, double deltaX, double deltaY) void
render
(WidgetRenderState<Rendering> state) final Rendering
scrollAction
(ScrollAction scrollAction) 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, onMouseClickedInternal, onMouseDraggedInternal, onMouseMoved, onMouseMovedInternal, onMousePressedInternal, onMouseReleasedInternal, onMouseScrolledInternal, owner, owner, parent, parent, play, play, play, play, play, play, playClick, player, position, position, position, position, positionRemap, positionRemap, postMouseClicked, postRender, postRender, postTick, preMouseClicked, preRender, preRender, preTick, rawPosition, rawSize, renderInternal, self, size, size, size, size, sizeRemap, sizeRemap, stateInternal, tick, tickableInternal, tickInternal, toString, transform, transform, uid, updateBounds, 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, hovered, inactive, noTicks, receivesTicks, show, state, state, state, tickable, ticks, visible, visible
-
Constructor Details
-
Rendering
-
-
Method Details
-
create
-
clickAction
-
dragAction
-
scrollAction
-
hoverRendering
-
render
- Overrides:
render
in classStatefulWidget<Rendering>
-
onMouseClicked
- Overrides:
onMouseClicked
in classStatefulWidget<Rendering>
-
onMouseReleased
- Overrides:
onMouseReleased
in classStatefulWidget<Rendering>
-
onMouseDragged
public Action onMouseDragged(Action action, double mouseX, double mouseY, int button, double deltaX, double deltaY) - Overrides:
onMouseDragged
in classStatefulWidget<Rendering>
-
onMouseScrolled
public Action onMouseScrolled(Action action, double mouseX, double mouseY, double deltaX, double deltaY) - Overrides:
onMouseScrolled
in classStatefulWidget<Rendering>
-