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

public abstract class StatefulWidget<W extends StatefulWidget<W>> extends Object implements States<W>
  • 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

      public final W owner(StatefulScreen owner)
    • owner

      public final StatefulScreen owner()
      Specified by:
      owner in interface States<W extends StatefulWidget<W>>
    • widget

      public final W widget()
      Specified by:
      widget in interface States<W extends StatefulWidget<W>>
    • uid

      public final int uid()
    • parent

      public final W parent(StatefulWidget<? extends StatefulWidget<?>> parent)
    • child

      protected final <U extends StatefulWidget<U>> void child(StatefulWidget<U> child)
    • parent

      public final <U extends StatefulWidget<U>> U parent()
    • children

      public final List<StatefulWidget<? extends StatefulWidget<?>>> children()
    • index

      public final W index(int index)
    • index

      public final int index()
    • transform

      public final W transform(Transformation... transformations)
    • transform

      public final W transform(Collection<Transformation> transformations)
    • enabledInternal

      public final AtomicBoolean enabledInternal()
      Specified by:
      enabledInternal in interface States<W extends StatefulWidget<W>>
    • tickableInternal

      public AtomicBoolean tickableInternal()
      Specified by:
      tickableInternal in interface States<W extends StatefulWidget<W>>
    • visibleInternal

      public final AtomicBoolean visibleInternal()
      Specified by:
      visibleInternal in interface States<W extends StatefulWidget<W>>
    • focusableInternal

      public final AtomicBoolean focusableInternal()
      Specified by:
      focusableInternal in interface States<W extends StatefulWidget<W>>
    • hoverableInternal

      public final AtomicBoolean hoverableInternal()
      Specified by:
      hoverableInternal in interface States<W extends StatefulWidget<W>>
    • draggableInternal

      public final AtomicBoolean draggableInternal()
      Specified by:
      draggableInternal in interface States<W extends StatefulWidget<W>>
    • focusedInternal

      public final AtomicBoolean focusedInternal()
      Specified by:
      focusedInternal in interface States<W extends StatefulWidget<W>>
    • hoveredInternal

      public final AtomicBoolean hoveredInternal()
      Specified by:
      hoveredInternal in interface States<W extends StatefulWidget<W>>
    • draggedInternal

      public final AtomicBoolean draggedInternal()
      Specified by:
      draggedInternal in interface States<W extends StatefulWidget<W>>
    • stateInternal

      public AtomicReference<CustomState> stateInternal()
      Specified by:
      stateInternal in interface States<W extends StatefulWidget<W>>
    • position

      public final W position(double x, double y)
    • position

      public final W position(double x, double y, double z)
    • position

      public final W position(net.minecraft.core.Position position)
    • offset

      public final W offset(double x, double y)
    • offset

      public final W offset(double x, double y, double z)
    • offset

      public final W offset(net.minecraft.core.Position offset)
    • positionRemap

      public final W positionRemap(UnaryOperator<ScreenVector> positionRemap)
    • positionRemap

      public final UnaryOperator<ScreenVector> positionRemap()
    • sizeRemap

      public final W sizeRemap(UnaryOperator<ScreenVector> sizeRemap)
    • sizeRemap

      public final UnaryOperator<ScreenVector> sizeRemap()
    • rawPosition

      public final ScreenVector rawPosition()
    • position

      public final ScreenVector position()
    • size

      public final W size(double size)
    • size

      public final W size(double width, double height)
    • size

      public final W size(net.minecraft.core.Position size)
    • rawSize

      public final ScreenVector rawSize()
    • size

      public final ScreenVector size()
    • bounds

      public final Bounds bounds()
    • boundsOffset

      public final W boundsOffset(Bounds bounds)
    • boundsOffset

      public final W boundsOffset(double x1, double y1, double x2, double y2)
    • boundsOffset

      public final Bounds 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

      public final W init(Consumer<W> onInit)
    • preTick

      public final W preTick(Consumer<W> onPreTick)
    • postTick

      public final W postTick(Consumer<W> onPostTick)
    • preRender

      public final W preRender(Consumer<WidgetRenderState<W>> onPreRender)
    • postRender

      public final W postRender(Consumer<WidgetRenderState<W>> onPostRender)
    • renderInternal

      public final void renderInternal(net.minecraft.client.gui.GuiGraphics graphics, double mouseX, double mouseY, float partialTicks, boolean ignoreHidden)
    • preRender

      public void preRender(WidgetRenderState<W> state)
    • render

      public void render(WidgetRenderState<W> state)
    • postRender

      public void postRender(WidgetRenderState<W> state)
    • tickInternal

      public final void tickInternal()
    • tick

      public void tick()
    • onMousePressedInternal

      public final Action onMousePressedInternal()
    • onKeyPressedInternal

      public final Action onKeyPressedInternal(Action action, int keyCode, int scanCode, int modifiers)
    • onKeyPressed

      public Action onKeyPressed(Action action, int keyCode, int scanCode, int modifiers)
    • onKeyReleasedInternal

      public final Action onKeyReleasedInternal(Action action, int keyCode, int scanCode, int modifiers)
    • onKeyReleased

      public Action onKeyReleased(Action action, int keyCode, int scanCode, int modifiers)
    • onCharTypedInternal

      public final Action onCharTypedInternal(Action action, char typedChar, int keyCode)
    • onCharTyped

      public Action onCharTyped(Action action, char typedChar, int keyCode)
    • onMouseClickedInternal

      public final Action onMouseClickedInternal(Action action, double mouseX, double mouseY, int button)
    • onMouseClicked

      public Action onMouseClicked(Action action, double mouseX, double mouseY, int button)
    • onMouseReleasedInternal

      public final Action onMouseReleasedInternal(Action action, double mouseX, double mouseY, int button)
    • onMouseReleased

      public Action onMouseReleased(Action action, double mouseX, double mouseY, int button)
    • onMouseDraggedInternal

      public final Action onMouseDraggedInternal(Action action, double mouseX, double mouseY, int button, double deltaX, double deltaY)
    • onMouseDragged

      public Action onMouseDragged(Action action, double mouseX, double mouseY, int button, double deltaX, double deltaY)
    • onMouseScrolledInternal

      public final Action onMouseScrolledInternal(Action action, double mouseX, double mouseY, double deltaX, double deltaY)
    • onMouseScrolled

      public Action onMouseScrolled(Action action, double mouseX, double mouseY, double deltaX, double deltaY)
    • onMouseMovedInternal

      public final Action onMouseMovedInternal(Action action, double mouseX, double mouseY)
    • onMouseMoved

      public Action onMouseMoved(Action action, double mouseX, double mouseY)
    • colorTable

      public String colorTable()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • self

      public final W self()