@Environment(value=CLIENT) public class EditGameRulesScreen.RuleCategoryWidget extends EditGameRulesScreen.AbstractRuleWidget
| Constructor and Description |
|---|
RuleCategoryWidget(Text text) |
| Modifier and Type | Method and Description |
|---|---|
List<? extends Element> |
children()
Gets a list of all child GUI elements.
|
void |
render(MatrixStack matrices,
int index,
int y,
int x,
int entryWidth,
int entryHeight,
int mouseX,
int mouseY,
boolean hovered,
float tickDelta)
Renders an entry in a list.
|
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
public RuleCategoryWidget(Text text)
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>matrices - the matrix stack used for renderingindex - the index of the entryy - the Y coordinate of the entryx - the X coordinate of the entryentryWidth - the width of the entryentryHeight - the height of the entrymouseX - the X coordinate of the mousemouseY - the Y coordinate of the mousehovered - whether the mouse is hovering over the entry