public class MoveListScreen extends SlotBase implements net.minecraft.client.gui.IGuiEventListener
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 |
---|
MoveListScreen(ClickableElement owner,
java.util.List<Attack> list,
int width,
int height,
int top,
int left,
net.minecraft.client.Minecraft mc)
Initializes a move 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() |
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, scrollTo
changeFocus, 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, setWidth
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
public MoveListScreen(ClickableElement owner, java.util.List<Attack> list, int width, int height, int top, int left, net.minecraft.client.Minecraft mc)
owner
- The GUI containing the move list.list
- The attacks to put in the list.width
- The width of the list.height
- The height of the list.top
- The y coordinate of the top of the list.left
- The x coordinate of the left side of the list.mc
- The Minecraft instance.protected void elementClicked(int index, boolean doubleClicked)
elementClicked
in class SlotBase
protected boolean isSelected(int element)
isSelected
in class SlotBase
protected void drawSlot(com.mojang.blaze3d.matrix.MatrixStack matrix, int index, int x, int yTop, int yMiddle)
protected java.awt.Color getSelectionColor()
getSelectionColor
in class SlotBase