public class RaidButton
extends java.lang.Object
Constructor and Description |
---|
RaidButton(double x,
double y,
double z,
double w,
double h,
java.lang.String text,
RaidData raid,
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) |
RaidButton |
setEnabled(boolean enabled) |
RaidButton |
setVisible(boolean visible) |
public RaidButton(double x, double y, double z, double w, double h, java.lang.String text, RaidData raid, 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 RaidButton setVisible(boolean visible)
public RaidButton setEnabled(boolean enabled)