public class PokemonListScreen extends SlotBase
| Modifier and Type | Field and Description |
|---|---|
PixelmonSpawnerScreen |
gui |
Pokemon |
selectedPokemon |
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 |
|---|
PokemonListScreen(PixelmonSpawnerScreen gui,
int width,
int height,
int top,
int left)
Initializes the 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, 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 PixelmonSpawnerScreen gui
public Pokemon selectedPokemon
public PokemonListScreen(PixelmonSpawnerScreen gui, int width, int height, int top, int left)
gui - The Pixelmon spawner GUI that contains this list.width - The width of the list.height - The height of the list.top - The y coordinate of the top of the list.protected void elementClicked(int index,
boolean doubleClicked)
elementClicked in class SlotBaseprotected void drawSlot(com.mojang.blaze3d.matrix.MatrixStack matrix,
int index,
int x,
int yTop,
int yMiddle)
protected boolean isSelected(int element)
isSelected in class SlotBaseprotected java.awt.Color getSelectionColor()
getSelectionColor in class SlotBase