Class PixelmonWidget
java.lang.Object
com.pixelmonmod.pixelmon.client.gui.widgets.PixelmonWidget
- Direct Known Subclasses:
AllyElement
,BattleLogElement
,BattleMenuElement
,MenuReuseElement
,OpponentElement
Created by Jay113355 on 11/15/2020.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
drawElement
(net.minecraft.client.gui.GuiGraphics graphics, float scale) 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) int
int
getWidth()
int
getX()
int
getY()
boolean
isMouseOver
(double mouseX, double mouseY) <T extends PixelmonWidget>
TsetPosition
(int x, int y, int width, int height)
-
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
-
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()
-