public class DayCareScreen extends net.minecraft.client.gui.DisplayEffectsScreen<DayCareContainer> implements InventoryPixelmonBase
Modifier and Type | Field and Description |
---|---|
static DayCareSlot[] |
SLOTS |
hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, quickCraftSlots, slotColor, titleLabelX, titleLabelY, topPos
Constructor and Description |
---|
DayCareScreen(DayCareContainer container,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.util.text.ITextComponent title) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkEffectRendering() |
java.util.List<net.minecraft.client.gui.widget.Widget> |
getButtonList()
Gets the list of buttons on the GUI.
|
int |
getGUILeft()
Gets the x coordinate of the left side of the GUI.
|
float |
getZLevel()
Gets the z coordinate of the inventory.
|
void |
init() |
boolean |
isPauseScreen() |
boolean |
mouseClicked(double x,
double y,
int mouseButton) |
boolean |
mouseReleased(double mouseX,
double mouseY,
int button) |
void |
offsetGUILeft(int offset)
Adds an amount to the x coordinate of the left side of the GUI.
|
void |
refreshSearchResults() |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks)
Calls the superclass's drawScreen().
|
protected void |
renderBg(com.mojang.blaze3d.matrix.MatrixStack matrix,
float partialTicks,
int mouseX,
int mouseY) |
void |
renderEffects(com.mojang.blaze3d.matrix.MatrixStack matrix) |
protected void |
renderLabels(com.mojang.blaze3d.matrix.MatrixStack p_230451_1_,
int p_230451_2_,
int p_230451_3_) |
void |
setAndSelectBox(DayCareBox box) |
void |
setBox(DayCareBox box) |
void |
setChild(Pokemon child,
boolean showPotentialShiny) |
void |
tick() |
renderBackgrounds, renderIcons, renderLabels
checkHotbarKeyPressed, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, hasClickedOutside, isHovering, keyPressed, mouseDragged, onClose, removed, renderTooltip, slotClicked
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, 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 final DayCareSlot[] SLOTS
public DayCareScreen(DayCareContainer container, net.minecraft.entity.player.PlayerInventory playerInventory, net.minecraft.util.text.ITextComponent title)
public void init()
init
in class net.minecraft.client.gui.DisplayEffectsScreen<DayCareContainer>
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY, float partialTicks)
InventoryPixelmonBase
render
in interface InventoryPixelmonBase
render
in interface net.minecraft.client.gui.IRenderable
render
in class net.minecraft.client.gui.DisplayEffectsScreen<DayCareContainer>
mouseX
- The x coordinate of the mouse.mouseY
- The y coordinate of the mouse.partialTicks
- The current amount of partial ticks.public boolean mouseClicked(double x, double y, int mouseButton)
mouseClicked
in interface net.minecraft.client.gui.IGuiEventListener
mouseClicked
in interface net.minecraft.client.gui.INestedGuiEventHandler
mouseClicked
in class net.minecraft.client.gui.screen.inventory.ContainerScreen<DayCareContainer>
public boolean mouseReleased(double mouseX, double mouseY, int button)
mouseReleased
in interface net.minecraft.client.gui.IGuiEventListener
mouseReleased
in interface net.minecraft.client.gui.INestedGuiEventHandler
mouseReleased
in class net.minecraft.client.gui.screen.inventory.ContainerScreen<DayCareContainer>
public void tick()
tick
in interface net.minecraft.client.gui.screen.IScreen
tick
in class net.minecraft.client.gui.screen.inventory.ContainerScreen<DayCareContainer>
protected void renderBg(com.mojang.blaze3d.matrix.MatrixStack matrix, float partialTicks, int mouseX, int mouseY)
renderBg
in class net.minecraft.client.gui.screen.inventory.ContainerScreen<DayCareContainer>
public void setChild(Pokemon child, boolean showPotentialShiny)
protected void renderLabels(com.mojang.blaze3d.matrix.MatrixStack p_230451_1_, int p_230451_2_, int p_230451_3_)
renderLabels
in class net.minecraft.client.gui.screen.inventory.ContainerScreen<DayCareContainer>
public boolean isPauseScreen()
isPauseScreen
in class net.minecraft.client.gui.screen.inventory.ContainerScreen<DayCareContainer>
public float getZLevel()
InventoryPixelmonBase
getZLevel
in interface InventoryPixelmonBase
public int getGUILeft()
InventoryPixelmonBase
getGUILeft
in interface InventoryPixelmonBase
public void offsetGUILeft(int offset)
InventoryPixelmonBase
offsetGUILeft
in interface InventoryPixelmonBase
offset
- The amount to add to the x coordinate of the left side of the GUI.public java.util.List<net.minecraft.client.gui.widget.Widget> getButtonList()
InventoryPixelmonBase
getButtonList
in interface InventoryPixelmonBase
public void refreshSearchResults()
refreshSearchResults
in interface InventoryPixelmonBase
public void setAndSelectBox(DayCareBox box)
public void setBox(DayCareBox box)
public void renderEffects(com.mojang.blaze3d.matrix.MatrixStack matrix)
renderEffects
in class net.minecraft.client.gui.DisplayEffectsScreen<DayCareContainer>
protected void checkEffectRendering()
checkEffectRendering
in class net.minecraft.client.gui.DisplayEffectsScreen<DayCareContainer>