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, updateStorage
addButton, 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, 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
public 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 PokemonScreen
protected 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.Screen
public 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.IGuiEventListener
keyPressed
in interface net.minecraft.client.gui.INestedGuiEventHandler
keyPressed
in class PokemonScreen
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
mouseClicked
in interface net.minecraft.client.gui.IGuiEventListener
mouseClicked
in interface net.minecraft.client.gui.INestedGuiEventHandler
mouseClicked
in class PokemonScreen
public void removed()
removed
in class PokemonScreen
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
public boolean charTyped(char p_231042_1_, int p_231042_2_)