public class ClauseListScreen extends SlotBase
amountScrolled, bottom, COLOUR_BAR_ONE, COLOUR_BAR_THREE, COLOUR_BAR_TWO, DEFAULT_SLOT_HEIGHT, height, initialClickY, lastClicked, left, opaque, right, scrollMultiplier, selectedElement, slotHeight, top, width| Constructor and Description |
|---|
ClauseListScreen(BattleRulesBaseScreen parent,
java.util.List<BattleClause> clauses,
int top,
int left,
int width,
int height)
Initializes a clause list.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawSlot(com.mojang.blaze3d.matrix.MatrixStack matrix,
int index,
int x,
int yTop,
int yMiddle) |
protected void |
elementClicked(int index,
boolean doubleClicked) |
protected float[] |
get1Color() |
BattleClause |
getElement(int index)
Gets the clauses at a certain index in the list.
|
protected java.awt.Color |
getSelectionColor() |
protected int |
getSize() |
protected boolean |
isSelected(int element) |
bindAmountScrolled, drawBackground, get255Color, getBottomIndex, getCenterX, getContentHeight, getCurrentSlot, getElementPosition, getMouseOverIndex, getTopIndex, isElementVisible, isMouseOver, isMouseOver, mouseClicked, mouseDragged, mouseScrolled, mouseScrolled, render, scrollTochangeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isValidClickButton, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, renderBg, renderButton, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidthblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLinepublic ClauseListScreen(BattleRulesBaseScreen parent, java.util.List<BattleClause> clauses, int top, int left, int width, int height)
clauses - The clauses in the list.top - The y coordinate of the top of the list.left - The x coordinate of the left side of the list.width - The width of the list.height - The height of the list.protected void elementClicked(int index,
boolean doubleClicked)
elementClicked in class SlotBaseprotected boolean isSelected(int element)
isSelected in class SlotBaseprotected void drawSlot(com.mojang.blaze3d.matrix.MatrixStack matrix,
int index,
int x,
int yTop,
int yMiddle)
protected java.awt.Color getSelectionColor()
getSelectionColor in class SlotBasepublic BattleClause getElement(int index)
index - The index of the clause.