@Environment(value=CLIENT) public class EditGameRulesScreen.IntRuleWidget extends EditGameRulesScreen.NamedRuleWidget
Modifier and Type | Field and Description |
---|---|
private TextFieldWidget |
valueWidget |
children
Constructor and Description |
---|
IntRuleWidget(Text name,
List<OrderedText> description,
String ruleName,
GameRules.IntRule rule) |
Modifier and Type | Method and Description |
---|---|
void |
render(MatrixStack matrices,
int index,
int y,
int x,
int entryWidth,
int entryHeight,
int mouseX,
int mouseY,
boolean hovered,
float tickDelta) |
children, drawName
getFocused, isDragging, setDragging, setFocused
isMouseOver
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
isMouseOver, mouseMoved
private final TextFieldWidget valueWidget
public IntRuleWidget(Text name, List<OrderedText> 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>