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
,Form
,Image
,Label
,PokemonSlot
,Rendering
,Research
,ScrollableViewport
,Scrollbar
,Viewport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Bounds
bounds()
final Bounds
final W
boundsOffset
(double x1, double y1, double x2, double y2) final W
boundsOffset
(Bounds bounds) protected final <U extends StatefulWidget<U>>
voidchild
(StatefulWidget<U> child) final List<StatefulWidget<? extends StatefulWidget<?>>>
children()
boolean
contains
(double x, double y) boolean
contains
(net.minecraft.core.Position position) final net.minecraft.client.gui.Font
final AtomicBoolean
final AtomicBoolean
final AtomicBoolean
final boolean
final AtomicBoolean
final AtomicBoolean
final int
hashCode()
final AtomicBoolean
final AtomicBoolean
final int
index()
final W
index
(int index) void
init()
final W
final void
final net.minecraft.client.Minecraft
final W
offset
(double x, double y) final W
offset
(double x, double y, double z) final W
offset
(net.minecraft.core.Position offset) onCharTyped
(Action action, char typedChar, int keyCode) final Action
onCharTypedInternal
(Action action, char typedChar, int keyCode) onKeyPressed
(Action action, int keyCode, int scanCode, int modifiers) final Action
onKeyPressedInternal
(Action action, int keyCode, int scanCode, int modifiers) onKeyReleased
(Action action, int keyCode, int scanCode, int modifiers) final Action
onKeyReleasedInternal
(Action action, int keyCode, int scanCode, int modifiers) onMouseClicked
(Action action, double mouseX, double mouseY, int button) final Action
onMouseClickedInternal
(Action action, double mouseX, double mouseY, int button) onMouseDragged
(Action action, double mouseX, double mouseY, int button, double deltaX, double deltaY) final Action
onMouseDraggedInternal
(Action action, double mouseX, double mouseY, int button, double deltaX, double deltaY) onMouseMoved
(Action action, double mouseX, double mouseY) final Action
onMouseMovedInternal
(Action action, double mouseX, double mouseY) final Action
onMouseReleased
(Action action, double mouseX, double mouseY, int button) final Action
onMouseReleasedInternal
(Action action, double mouseX, double mouseY, int button) onMouseScrolled
(Action action, double mouseX, double mouseY, double deltaX, double deltaY) final Action
onMouseScrolledInternal
(Action action, double mouseX, double mouseY, double deltaX, double deltaY) final StatefulScreen
owner()
final W
owner
(StatefulScreen owner) final <U extends StatefulWidget<U>>
Uparent()
final W
parent
(StatefulWidget<? extends StatefulWidget<?>> parent) final void
play
(net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound) final void
play
(net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound, float volume) final void
play
(net.minecraft.core.Holder<net.minecraft.sounds.SoundEvent> sound, float volume, float pitch) final void
play
(net.minecraft.sounds.SoundEvent sound) final void
play
(net.minecraft.sounds.SoundEvent sound, float volume) final void
play
(net.minecraft.sounds.SoundEvent sound, float volume, float pitch) final void
final net.minecraft.world.entity.player.Player
player()
final ScreenVector
position()
final W
position
(double x, double y) final W
position
(double x, double y, double z) final W
position
(net.minecraft.core.Position position) final UnaryOperator<ScreenVector>
final W
positionRemap
(UnaryOperator<ScreenVector> positionRemap) void
postRender
(WidgetRenderState<W> state) final W
postRender
(Consumer<WidgetRenderState<W>> onPostRender) final W
void
preRender
(WidgetRenderState<W> state) final W
preRender
(Consumer<WidgetRenderState<W>> onPreRender) final W
final ScreenVector
final ScreenVector
rawSize()
void
render
(WidgetRenderState<W> state) final void
renderInternal
(net.minecraft.client.gui.GuiGraphics graphics, double mouseX, double mouseY, float partialTicks, boolean ignoreHidden) final W
self()
final ScreenVector
size()
final W
size
(double size) final W
size
(double width, double height) final W
size
(net.minecraft.core.Position size) final UnaryOperator<ScreenVector>
final W
sizeRemap
(UnaryOperator<ScreenVector> sizeRemap) void
tick()
final void
final String
toString()
final W
transform
(Transformation... transformations) final W
transform
(Collection<Transformation> transformations) final int
uid()
final AtomicBoolean
final W
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
-
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:
owner
in interfaceStates<W extends StatefulWidget<W>>
-
widget
- Specified by:
widget
in 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:
enabledInternal
in interfaceStates<W extends StatefulWidget<W>>
-
tickableInternal
- Specified by:
tickableInternal
in interfaceStates<W extends StatefulWidget<W>>
-
visibleInternal
- Specified by:
visibleInternal
in interfaceStates<W extends StatefulWidget<W>>
-
focusableInternal
- Specified by:
focusableInternal
in interfaceStates<W extends StatefulWidget<W>>
-
hoverableInternal
- Specified by:
hoverableInternal
in interfaceStates<W extends StatefulWidget<W>>
-
draggableInternal
- Specified by:
draggableInternal
in interfaceStates<W extends StatefulWidget<W>>
-
focusedInternal
- Specified by:
focusedInternal
in interfaceStates<W extends StatefulWidget<W>>
-
hoveredInternal
- Specified by:
hoveredInternal
in interfaceStates<W extends StatefulWidget<W>>
-
draggedInternal
- Specified by:
draggedInternal
in interfaceStates<W extends StatefulWidget<W>>
-
stateInternal
- Specified by:
stateInternal
in 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
-
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
-
onMouseClickedInternal
-
onMouseClicked
-
onMouseReleasedInternal
-
onMouseReleased
-
onMouseDraggedInternal
-
onMouseDragged
-
onMouseScrolledInternal
-
onMouseScrolled
-
onMouseMovedInternal
-
onMouseMoved
-
colorTable
-
hashCode
public final int hashCode() -
equals
-
toString
-
self
-