public class PixelmonSpawnerScreen
extends net.minecraft.client.gui.screen.Screen
Modifier and Type | Field and Description |
---|---|
protected PokemonListScreen |
list |
protected PixelmonSpawnerTileEntity |
ps |
Constructor and Description |
---|
PixelmonSpawnerScreen(int x,
int y,
int z)
Initializes the spawner GUI.
|
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(net.minecraft.client.gui.widget.button.Button button) |
int |
getBiggestRarity() |
int |
getBiggestSpec(int maxSize) |
java.lang.String |
getPercentage(int index) |
int |
getPokemonListCount()
Gets the number of Pokémon in the spawner list.
|
PokemonRarity |
getPokemonListEntry(int ind)
Gets a Pokémon entry in the spawner list.
|
void |
init() |
boolean |
isFullScreen() |
boolean |
isPauseScreen() |
boolean |
keyPressed(int p_231046_1_,
int p_231046_2_,
int p_231046_3_) |
boolean |
mouseClicked(double par1,
double par2,
int par3) |
void |
onClose() |
void |
removeFromList(int var1)
Removes a Pokémon from the spawner list.
|
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks) |
void |
tick() |
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, removed, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected PokemonListScreen list
protected PixelmonSpawnerTileEntity ps
public PixelmonSpawnerScreen(int x, int y, int z)
x
- The x coordinate of the spawner.y
- The y coordinate of the spawner.z
- The z coordinate of the spawner.public void init()
init
in class net.minecraft.client.gui.screen.Screen
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_)
keyPressed
in interface net.minecraft.client.gui.IGuiEventListener
keyPressed
in interface net.minecraft.client.gui.INestedGuiEventHandler
keyPressed
in class net.minecraft.client.gui.screen.Screen
public boolean mouseClicked(double par1, double par2, int par3)
public boolean isPauseScreen()
isPauseScreen
in class net.minecraft.client.gui.screen.Screen
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY, float partialTicks)
render
in interface net.minecraft.client.gui.IRenderable
render
in class net.minecraft.client.gui.screen.Screen
public void tick()
tick
in interface net.minecraft.client.gui.screen.IScreen
tick
in class net.minecraft.client.gui.screen.Screen
protected void actionPerformed(net.minecraft.client.gui.widget.button.Button button)
public void onClose()
onClose
in class net.minecraft.client.gui.screen.Screen
public PokemonRarity getPokemonListEntry(int ind)
ind
- The index of the Pokémon entry.public int getBiggestRarity()
public int getBiggestSpec(int maxSize)
public java.lang.String getPercentage(int index)
public boolean isFullScreen()
public int getPokemonListCount()
public void removeFromList(int var1)
var1
- The index of the Pokémon to remove.