@Environment(value=CLIENT) public class EditGameRulesScreen.BooleanRuleWidget extends EditGameRulesScreen.AbstractRuleWidget
| Modifier and Type | Field and Description |
|---|---|
private List<? extends Element> |
children |
private ButtonWidget |
toggleButton |
| Constructor and Description |
|---|
BooleanRuleWidget(Text name,
List<Text> description,
String ruleName,
GameRules.BooleanRule rule) |
| Modifier and Type | Method and Description |
|---|---|
List<? extends Element> |
children() |
private Text |
createBooleanRuleText(Text text,
boolean value) |
void |
render(MatrixStack matrices,
int x,
int y,
int width,
int height,
int mouseX,
int mouseY,
int int2,
boolean bool,
float tickDelta) |
getFocused, isDragging, setDragging, setFocusedisMouseOverclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusisMouseOver, mouseMovedprivate final ButtonWidget toggleButton
public BooleanRuleWidget(Text name, List<Text> description, String ruleName, GameRules.BooleanRule rule)
public void render(MatrixStack matrices, int x, int y, int width, int height, int mouseX, int mouseY, int int2, boolean bool, float tickDelta)
render in class EntryListWidget.Entry<EditGameRulesScreen.AbstractRuleWidget>