@Environment(value=CLIENT) public class EditGameRulesScreen.IntRuleWidget extends EditGameRulesScreen.AbstractRuleWidget
| Modifier and Type | Field and Description |
|---|---|
private List<? extends Element> |
children |
private Text |
name |
private TextFieldWidget |
valueWidget |
| Constructor and Description |
|---|
IntRuleWidget(Text name,
List<Text> description,
String ruleName,
GameRules.IntRule rule) |
| Modifier and Type | Method and Description |
|---|---|
List<? extends Element> |
children() |
void |
render(MatrixStack matrices,
int index,
int y,
int x,
int entryWidth,
int entryHeight,
int mouseX,
int mouseY,
boolean hovered,
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 Text name
private final TextFieldWidget valueWidget
public IntRuleWidget(Text name, List<Text> description, String ruleName, GameRules.IntRule rule)
public void render(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)
render in class EntryListWidget.Entry<EditGameRulesScreen.AbstractRuleWidget>