public class PCScreen extends PokemonScreen
| Modifier and Type | Field and Description |
|---|---|
protected ImageClickableButton |
boxButton |
protected net.minecraft.util.ResourceLocation |
boxWallpaper |
protected java.util.List<KeybindIcon> |
icons |
protected ImageClickableButton |
leftArrow |
protected ArrowButton |
leftArrowWallpaper |
protected net.minecraft.client.gui.widget.TextFieldWidget |
nameField |
protected KeybindIcon |
renameIcon |
protected ImageClickableButton |
rightArrow |
protected ArrowButton |
rightArrowWallpaper |
static PCStorageSearch |
search |
protected net.minecraft.client.gui.widget.TextFieldWidget |
searchField |
protected KeybindIcon |
searchIcon |
protected KeybindIcon |
wallpaperIcon |
boxNumber, footerBottom, footerLeft, footerRight, footerTop, PC_NUM_HEIGHT, PC_NUM_WIDTH, pcBottom, pcLeft, pcRight, pcTop, selected, selectedPokemon, SLOT_HEIGHT, SLOT_WIDTH, storage| Constructor and Description |
|---|
PCScreen()
Initializes the PC GUI at last known position or 0.
|
PCScreen(StoragePosition selected)
Initializes the PC GUI at the given position or last position.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(net.minecraft.client.gui.widget.button.Button button) |
boolean |
charTyped(char p_231042_1_,
int p_231042_2_) |
void |
init() |
boolean |
isPauseScreen() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int mouseButton) |
void |
removed() |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks) |
protected void |
switchWallpaper(boolean forward) |
void |
tick() |
protected void |
updateName(PCBox data) |
protected void |
updateWallpaper(PCBox data) |
drawBox, drawCursor, drawFooter, drawFooterBackground, drawHover, drawPokeChecker, getFooterAt, getFooterAt, getFooterNumWidth, getFooterPosAt, getPCAt, getPCPosAt, getPokemon, getPosAt, getSlotAt, getStorage, tryToSwap, updateSelected, updateStorageaddButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, onFilesDrop, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocusedblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static PCStorageSearch search
protected ImageClickableButton leftArrow
protected ImageClickableButton rightArrow
protected ImageClickableButton boxButton
protected ArrowButton leftArrowWallpaper
protected ArrowButton rightArrowWallpaper
protected net.minecraft.client.gui.widget.TextFieldWidget nameField
protected net.minecraft.client.gui.widget.TextFieldWidget searchField
protected java.util.List<KeybindIcon> icons
protected KeybindIcon searchIcon
protected KeybindIcon renameIcon
protected KeybindIcon wallpaperIcon
protected net.minecraft.util.ResourceLocation boxWallpaper
public PCScreen(@Nullable
StoragePosition selected)
public PCScreen()
public void init()
init in class PokemonScreenprotected void updateName(PCBox data)
protected void updateWallpaper(PCBox data)
protected void switchWallpaper(boolean forward)
public boolean isPauseScreen()
isPauseScreen in class net.minecraft.client.gui.screen.Screenpublic void actionPerformed(net.minecraft.client.gui.widget.button.Button button)
public boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
keyPressed in interface net.minecraft.client.gui.IGuiEventListenerkeyPressed in interface net.minecraft.client.gui.INestedGuiEventHandlerkeyPressed in class PokemonScreenpublic boolean mouseClicked(double mouseX,
double mouseY,
int mouseButton)
mouseClicked in interface net.minecraft.client.gui.IGuiEventListenermouseClicked in interface net.minecraft.client.gui.INestedGuiEventHandlermouseClicked in class PokemonScreenpublic void removed()
removed in class PokemonScreenpublic void render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks)
render in interface net.minecraft.client.gui.IRenderablerender in class net.minecraft.client.gui.screen.Screenpublic void tick()
tick in interface net.minecraft.client.gui.screen.IScreentick in class net.minecraft.client.gui.screen.Screenpublic boolean charTyped(char p_231042_1_,
int p_231042_2_)