Class FocusCaptureInput<T>
java.lang.Object
com.pixelmonmod.api.client.screen.widget.StatefulWidget<FocusCaptureInput<T>>
com.pixelmonmod.api.client.screen.widget.design.FocusCaptureInput<T>
- All Implemented Interfaces:
States<FocusCaptureInput<T>>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FocusCaptureInput
(int maxWidth, Consumer<WidgetRenderState<FocusCaptureInput<T>>> rendering, BiConsumer<String, List<T>> tabSearch, Function<T, String> nameGetter, Consumer<String> completion, net.minecraft.client.KeyMapping... keys) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> FocusCaptureInput
<T> create
(int maxWidth, Consumer<WidgetRenderState<FocusCaptureInput<T>>> rendering, BiConsumer<String, List<T>> tabSearch, Function<T, String> nameGetter, Consumer<String> completion, net.minecraft.client.KeyMapping... keys) boolean
keyValid
(int keyCode, int scanCode) onCharTyped
(Action action, char typedChar, int keyCode) onKeyPressed
(Action action, int keyCode, int scanCode, int modifiers) onKeyReleased
(Action action, int keyCode, int scanCode, int modifiers) onMouseClicked
(Action action, double mouseX, double mouseY, int button) onMouseDragged
(Action action, double mouseX, double mouseY, int button, double deltaX, double deltaY) onMouseMoved
(Action action, double mouseX, double mouseY) onMouseReleased
(Action action, double mouseX, double mouseY, int button) onMouseScrolled
(Action action, double mouseX, double mouseY, double deltaX, double deltaY) void
render
(WidgetRenderState<FocusCaptureInput<T>> state) value()
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, onCharTypedInternal, onKeyPressedInternal, onKeyReleasedInternal, onMouseClickedInternal, onMouseDraggedInternal, onMouseMovedInternal, onMousePressedInternal, onMouseReleasedInternal, 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, tick, 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, hovered, inactive, noTicks, receivesTicks, show, state, state, state, tickable, ticks, visible, visible
-
Constructor Details
-
FocusCaptureInput
protected FocusCaptureInput(int maxWidth, Consumer<WidgetRenderState<FocusCaptureInput<T>>> rendering, BiConsumer<String, List<T>> tabSearch, Function<T, String> nameGetter, Consumer<String> completion, net.minecraft.client.KeyMapping... keys)
-
-
Method Details
-
create
public static <T> FocusCaptureInput<T> create(int maxWidth, Consumer<WidgetRenderState<FocusCaptureInput<T>>> rendering, BiConsumer<String, List<T>> tabSearch, Function<T, String> nameGetter, Consumer<String> completion, net.minecraft.client.KeyMapping... keys) -
keyValid
public boolean keyValid(int keyCode, int scanCode) -
render
- Overrides:
render
in classStatefulWidget<FocusCaptureInput<T>>
-
onKeyPressed
- Overrides:
onKeyPressed
in classStatefulWidget<FocusCaptureInput<T>>
-
onCharTyped
- Overrides:
onCharTyped
in classStatefulWidget<FocusCaptureInput<T>>
-
onMouseClicked
- Overrides:
onMouseClicked
in classStatefulWidget<FocusCaptureInput<T>>
-
onMouseReleased
- Overrides:
onMouseReleased
in classStatefulWidget<FocusCaptureInput<T>>
-
onKeyReleased
- Overrides:
onKeyReleased
in classStatefulWidget<FocusCaptureInput<T>>
-
onMouseDragged
public Action onMouseDragged(Action action, double mouseX, double mouseY, int button, double deltaX, double deltaY) - Overrides:
onMouseDragged
in classStatefulWidget<FocusCaptureInput<T>>
-
onMouseScrolled
public Action onMouseScrolled(Action action, double mouseX, double mouseY, double deltaX, double deltaY) - Overrides:
onMouseScrolled
in classStatefulWidget<FocusCaptureInput<T>>
-
onMouseMoved
- Overrides:
onMouseMoved
in classStatefulWidget<FocusCaptureInput<T>>
-
value
-