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
ConstructorsModifierConstructorDescriptionprotectedFocusCaptureInput(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) booleankeyValid(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) voidrender(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, onMouseClickedInternal, onMouseDraggedInternal, 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, widgetMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
renderin classStatefulWidget<FocusCaptureInput<T>>
-
onKeyPressed
- Overrides:
onKeyPressedin classStatefulWidget<FocusCaptureInput<T>>
-
onCharTyped
- Overrides:
onCharTypedin classStatefulWidget<FocusCaptureInput<T>>
-
onMouseClicked
- Overrides:
onMouseClickedin classStatefulWidget<FocusCaptureInput<T>>
-
onMouseReleased
- Overrides:
onMouseReleasedin classStatefulWidget<FocusCaptureInput<T>>
-
onKeyReleased
- Overrides:
onKeyReleasedin classStatefulWidget<FocusCaptureInput<T>>
-
onMouseDragged
public Action onMouseDragged(Action action, double mouseX, double mouseY, int button, double deltaX, double deltaY) - Overrides:
onMouseDraggedin classStatefulWidget<FocusCaptureInput<T>>
-
onMouseScrolled
public Action onMouseScrolled(Action action, double mouseX, double mouseY, double deltaX, double deltaY) - Overrides:
onMouseScrolledin classStatefulWidget<FocusCaptureInput<T>>
-
onMouseMoved
- Overrides:
onMouseMovedin classStatefulWidget<FocusCaptureInput<T>>
-
value
-