Class PixelmonWidget

java.lang.Object
com.pixelmonmod.pixelmon.client.gui.widgets.PixelmonWidget
Direct Known Subclasses:
AllyElement, BattleLogElement, BattleMenuElement, MenuReuseElement, OpponentElement

public abstract class PixelmonWidget extends Object
Created by Jay113355 on 11/15/2020.
  • Field Details

    • x

      protected int x
    • y

      protected int y
    • width

      protected int width
    • height

      protected int height
    • zLevel

      protected float zLevel
    • scale

      protected float scale
  • Constructor Details

    • PixelmonWidget

      public PixelmonWidget()
  • Method Details

    • drawElement

      public abstract void drawElement(net.minecraft.client.gui.GuiGraphics graphics, float scale)
    • setPosition

      public <T extends PixelmonWidget> T setPosition(int x, int y, int width, int height)
    • isMouseOver

      public boolean isMouseOver(double mouseX, double mouseY)
    • drawElementScaled

      public void drawElementScaled(net.minecraft.client.gui.GuiGraphics graphics, int x, int y, int width, int height, float scale, int index, net.minecraft.client.gui.screens.Screen parent, ScreenParticleEngine engine)
    • getX

      public int getX()
    • getY

      public int getY()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()