Class StatefulWidget<W extends StatefulWidget<W>>
java.lang.Object
com.pixelmonmod.api.client.screen.widget.StatefulWidget<W>
- All Implemented Interfaces:
States<W>
- Direct Known Subclasses:
Assignment,Button,CollapsableForm,Collection,DragTest,FocusCaptureInput,Form,HorizontalScrollableViewport,HorizontalScrollbar,Image,Label,PokemonSlot,RegionWidget,Rendering,Research,ScrollableViewport,Scrollbar,Viewport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Boundsbounds()final Boundsfinal WboundsOffset(double x1, double y1, double x2, double y2) final WboundsOffset(Bounds bounds) protected final <U extends StatefulWidget<U>>
voidchild(StatefulWidget<U> child) final List<StatefulWidget<? extends StatefulWidget<?>>> children()booleancontains(double x, double y) booleancontains(net.minecraft.core.Position position) final net.minecraft.client.gui.Fontfinal AtomicBooleanfinal AtomicBooleanfinal AtomicBooleanfinal booleanfinal AtomicBooleanfinal AtomicBooleanfinal inthashCode()final AtomicBooleanfinal AtomicBooleanfinal intindex()final Windex(int index) voidinit()final Wfinal voidfinal net.minecraft.client.Minecraftfinal Woffset(double x, double y) final Woffset(double x, double y, double z) final Woffset(net.minecraft.core.Position offset) onCharTyped(Action action, char typedChar, int keyCode) final ActiononCharTypedInternal(Action action, char typedChar, int keyCode) onKeyPressed(Action action, int keyCode, int scanCode, int modifiers) final ActiononKeyPressedInternal(Action action, int keyCode, int scanCode, int modifiers) onKeyReleased(Action action, int keyCode, int scanCode, int modifiers) final ActiononKeyReleasedInternal(Action action, int keyCode, int scanCode, int modifiers) onMouseClicked(Action action, double mouseX, double mouseY, int button) final ActiononMouseClickedInternal(Action action, double mouseX, double mouseY, int button) final ActiononMouseClickedInternal(Action action, double mouseX, double mouseY, int button, boolean ignoreDisabled) onMouseDragged(Action action, double mouseX, double mouseY, int button, double deltaX, double deltaY) final ActiononMouseDraggedInternal(Action action, double mouseX, double mouseY, int button, double deltaX, double deltaY) onMouseMoved(Action action, double mouseX, double mouseY) final ActiononMouseMovedInternal(Action action, double mouseX, double mouseY) final ActiononMouseReleased(Action action, double mouseX, double mouseY, int button) final ActiononMouseReleasedInternal(Action action, double mouseX, double mouseY, int button) onMouseScrolled(Action action, double mouseX, double mouseY, double deltaX, double deltaY) final ActiononMouseScrolledInternal(Action action, double mouseX, double mouseY, double deltaX, double deltaY) final StatefulScreenowner()final Wowner(StatefulScreen owner) final <U extends StatefulWidget<U>>
Uparent()final Wparent(StatefulWidget<? extends StatefulWidget<?>> parent) final voidplay(net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound) final voidplay(net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound, float volume) final voidplay(net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound, float volume, float pitch) final voidplay(net.minecraft.sounds.SoundEvent sound) final voidplay(net.minecraft.sounds.SoundEvent sound, float volume) final voidplay(net.minecraft.sounds.SoundEvent sound, float volume, float pitch) final voidfinal net.minecraft.world.entity.player.Playerplayer()final ScreenVectorposition()final Wposition(double x, double y) final Wposition(double x, double y, double z) final Wposition(net.minecraft.core.Position position) final UnaryOperator<ScreenVector> final WpositionRemap(UnaryOperator<ScreenVector> positionRemap) voidvoidpostRender(WidgetRenderState<W> state) final WpostRender(Consumer<WidgetRenderState<W>> onPostRender) final WvoidvoidpreRender(WidgetRenderState<W> state) final WpreRender(Consumer<WidgetRenderState<W>> onPreRender) final Wfinal ScreenVectorfinal ScreenVectorrawSize()voidrender(WidgetRenderState<W> state) final voidrenderInternal(net.minecraft.client.gui.GuiGraphics graphics, double mouseX, double mouseY, float partialTicks, boolean ignoreHidden) final Wself()final ScreenVectorsize()final Wsize(double size) final Wsize(double width, double height) final Wsize(net.minecraft.core.Position size) final UnaryOperator<ScreenVector> final WsizeRemap(UnaryOperator<ScreenVector> sizeRemap) voidtick()final voidfinal StringtoString()final Wtransform(Transformation... transformations) final Wtransform(Collection<Transformation> transformations) final intuid()voidfinal AtomicBooleanfinal Wwidget()Methods 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
-
StatefulWidget
protected StatefulWidget()
-
-
Method Details
-
minecraft
public final net.minecraft.client.Minecraft minecraft() -
player
public final net.minecraft.world.entity.player.Player player() -
defaultTypeface
public final net.minecraft.client.gui.Font defaultTypeface() -
play
public final void play(net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound) -
play
public final void play(net.minecraft.sounds.SoundEvent sound) -
play
public final void play(net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound, float volume) -
play
public final void play(net.minecraft.sounds.SoundEvent sound, float volume) -
play
public final void play(net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound, float volume, float pitch) -
play
public final void play(net.minecraft.sounds.SoundEvent sound, float volume, float pitch) -
playClick
public final void playClick() -
owner
-
owner
- Specified by:
ownerin interfaceStates<W extends StatefulWidget<W>>
-
widget
- Specified by:
widgetin interfaceStates<W extends StatefulWidget<W>>
-
uid
public final int uid() -
parent
-
child
-
parent
-
children
-
index
-
index
public final int index() -
transform
-
transform
-
enabledInternal
- Specified by:
enabledInternalin interfaceStates<W extends StatefulWidget<W>>
-
tickableInternal
- Specified by:
tickableInternalin interfaceStates<W extends StatefulWidget<W>>
-
visibleInternal
- Specified by:
visibleInternalin interfaceStates<W extends StatefulWidget<W>>
-
focusableInternal
- Specified by:
focusableInternalin interfaceStates<W extends StatefulWidget<W>>
-
hoverableInternal
- Specified by:
hoverableInternalin interfaceStates<W extends StatefulWidget<W>>
-
draggableInternal
- Specified by:
draggableInternalin interfaceStates<W extends StatefulWidget<W>>
-
focusedInternal
- Specified by:
focusedInternalin interfaceStates<W extends StatefulWidget<W>>
-
hoveredInternal
- Specified by:
hoveredInternalin interfaceStates<W extends StatefulWidget<W>>
-
draggedInternal
- Specified by:
draggedInternalin interfaceStates<W extends StatefulWidget<W>>
-
stateInternal
- Specified by:
stateInternalin interfaceStates<W extends StatefulWidget<W>>
-
position
-
position
-
position
-
offset
-
offset
-
offset
-
positionRemap
-
positionRemap
-
sizeRemap
-
sizeRemap
-
rawPosition
-
position
-
size
-
size
-
size
-
rawSize
-
size
-
bounds
-
boundsOffset
-
boundsOffset
-
boundsOffset
-
updateBounds
public void updateBounds() -
contains
public boolean contains(net.minecraft.core.Position position) -
contains
public boolean contains(double x, double y) -
initInternal
public final void initInternal() -
init
public void init() -
init
-
preTick
-
postTick
-
preRender
-
postRender
-
renderInternal
public final void renderInternal(net.minecraft.client.gui.GuiGraphics graphics, double mouseX, double mouseY, float partialTicks, boolean ignoreHidden) -
preRender
-
render
-
postRender
-
tickInternal
public final void tickInternal() -
tick
public void tick() -
onMousePressedInternal
-
onKeyPressedInternal
-
onKeyPressed
-
onKeyReleasedInternal
-
onKeyReleased
-
onCharTypedInternal
-
onCharTyped
-
preMouseClicked
public void preMouseClicked() -
postMouseClicked
public void postMouseClicked() -
onMouseClickedInternal
-
onMouseClickedInternal
-
onMouseClicked
-
onMouseReleasedInternal
-
onMouseReleased
-
onMouseDraggedInternal
-
onMouseDragged
-
onMouseScrolledInternal
-
onMouseScrolled
-
onMouseMovedInternal
-
onMouseMoved
-
colorTable
-
hashCode
public final int hashCode() -
equals
-
toString
-
self
-