public class SWSHButton
extends java.lang.Object
Constructor and Description |
---|
SWSHButton(double x,
double y,
double z,
double w,
double h,
java.lang.String text,
java.util.function.Consumer<java.lang.Integer> onClick) |
Modifier and Type | Method and Description |
---|---|
void |
draw(com.mojang.blaze3d.matrix.MatrixStack matrix,
double mouseX,
double mouseY,
float partialTicks) |
boolean |
isInteractable() |
boolean |
isWithin(double x,
double y) |
void |
onClick(double mouseX,
double mouseY,
int button) |
SWSHButton |
setEnabled(boolean enabled) |
SWSHButton |
setVisible(boolean visible) |
public SWSHButton(double x, double y, double z, double w, double h, java.lang.String text, java.util.function.Consumer<java.lang.Integer> onClick)
public void draw(com.mojang.blaze3d.matrix.MatrixStack matrix, double mouseX, double mouseY, float partialTicks)
public boolean isWithin(double x, double y)
public void onClick(double mouseX, double mouseY, int button)
public boolean isInteractable()
public SWSHButton setVisible(boolean visible)
public SWSHButton setEnabled(boolean enabled)