Class WKirbSprite

java.lang.Object
io.github.cottonmc.cotton.gui.widget.WWidget
io.github.cottonmc.cotton.gui.impl.modmenu.WKirbSprite

public class WKirbSprite extends WWidget
  • Constructor Details

    • WKirbSprite

      public WKirbSprite()
  • Method Details

    • schedule

      public void schedule(int[] frames)
    • canResize

      public boolean canResize()
      Description copied from class: WWidget
      Checks whether this widget can be resized using WWidget.setSize(int, int).
      Overrides:
      canResize in class WWidget
      Returns:
      true if this widget can be resized, false otherwise
    • getWidth

      public int getWidth()
      Overrides:
      getWidth in class WWidget
    • getHeight

      public int getHeight()
      Overrides:
      getHeight in class WWidget
    • paint

      @Environment(CLIENT) public void paint(net.minecraft.client.util.math.MatrixStack matrices, int x, int y, int mouseX, int mouseY)
      Description copied from class: WWidget
      Paints this widget.
      Overrides:
      paint in class WWidget
      Parameters:
      matrices - the rendering matrix stack
      x - this widget's X coordinate on the screen
      y - this widget's Y coordinate on the screen
      mouseX - the X coordinate of the cursor
      mouseY - the X coordinate of the cursor