Class SWSHButton
java.lang.Object
com.pixelmonmod.pixelmon.client.gui.widgets.SWSHButton
-
Constructor Summary
ConstructorDescriptionSWSHButton
(double x, double y, double z, double w, double h, String text, Consumer<Integer> onClick) -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(net.minecraft.client.gui.GuiGraphics graphics, double mouseX, double mouseY, float partialTicks) boolean
boolean
isWithin
(double x, double y) void
onClick
(double mouseX, double mouseY, int button) setEnabled
(boolean enabled) setVisible
(boolean visible)
-
Constructor Details
-
SWSHButton
-
-
Method Details
-
draw
public void draw(net.minecraft.client.gui.GuiGraphics graphics, double mouseX, double mouseY, float partialTicks) -
isWithin
public boolean isWithin(double x, double y) -
onClick
public void onClick(double mouseX, double mouseY, int button) -
isInteractable
public boolean isInteractable() -
setVisible
-
setEnabled
-