Package info.u_team.u_team_core.screen
Class UContainerMenuScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T>
info.u_team.u_team_core.screen.FluidContainerMenuScreen<T>
info.u_team.u_team_core.screen.UContainerMenuScreen<T>
- All Implemented Interfaces:
PerspectiveRenderable
,TooltipRenderable
,net.minecraft.client.gui.components.events.ContainerEventHandler
,net.minecraft.client.gui.components.events.GuiEventListener
,net.minecraft.client.gui.components.Widget
,net.minecraft.client.gui.screens.inventory.MenuAccess<T>
public class UContainerMenuScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
extends FluidContainerMenuScreen<T>
implements PerspectiveRenderable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.resources.ResourceLocation
protected RGBA
protected int
protected int
protected static final RGBA
protected boolean
protected boolean
protected RGBA
Fields inherited from class info.u_team.u_team_core.screen.FluidContainerMenuScreen
fluidRenderer, hoveredFluidSlot
Fields inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, SLOT_ITEM_BLIT_OFFSET, slotColor, titleLabelX, titleLabelY, topPos
Fields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorsConstructorDescriptionUContainerMenuScreen
(T menu, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation background) UContainerMenuScreen
(T menu, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation background, int imageWidth, int imageHeight) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
render
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) void
renderBackground
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) protected void
renderBg
(com.mojang.blaze3d.vertex.PoseStack poseStack, float partialTicks, int mouseX, int mouseY) void
renderForeground
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) protected void
renderLabels
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY) void
renderToolTip
(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) protected void
setBackground
(net.minecraft.resources.ResourceLocation background) protected void
setBackgroundDimensions
(int size) protected void
setBackgroundDimensions
(int backgroundWidth, int backgroundHeight) protected void
protected void
setDrawText
(boolean drawTitleText, boolean drawInventoryText) protected void
setImageDimensions
(int imageWidth, int imageHeight) protected void
setTextLocation
(int titleLabelX, int titleLabelY, int inventoryLabelX, int inventoryLabelY) Methods inherited from class info.u_team.u_team_core.screen.FluidContainerMenuScreen
findFluidSlot, getFluidSlotColor, getTooltipFromFluid, isHovering, mouseClicked, renderFluidSlot, renderTooltip, setFluidRenderer
Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, hasClickedOutside, init, isHovering, isPauseScreen, keyPressed, mouseDragged, mouseReleased, onClose, removed, renderSlotHighlight, renderSlotHighlight, slotClicked, tick
Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, shouldCloseOnEsc, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseScrolled, setInitialFocus
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Field Details
-
DEFAULT_TEXT_COLOR
-
background
protected net.minecraft.resources.ResourceLocation background -
backgroundWidth
protected int backgroundWidth -
backgroundHeight
protected int backgroundHeight -
backgroundColor
-
drawTitleText
protected boolean drawTitleText -
drawInventoryText
protected boolean drawInventoryText -
textColor
-
-
Constructor Details
-
UContainerMenuScreen
public UContainerMenuScreen(T menu, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation background, int imageWidth, int imageHeight) -
UContainerMenuScreen
public UContainerMenuScreen(T menu, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation background)
-
-
Method Details
-
setBackground
protected void setBackground(net.minecraft.resources.ResourceLocation background) -
setBackgroundDimensions
protected void setBackgroundDimensions(int size) -
setBackgroundDimensions
protected void setBackgroundDimensions(int backgroundWidth, int backgroundHeight) -
setImageDimensions
protected void setImageDimensions(int imageWidth, int imageHeight) -
setDrawText
protected void setDrawText(boolean drawTitleText, boolean drawInventoryText) -
setDefaultTextLocation
protected void setDefaultTextLocation() -
setTextLocation
protected void setTextLocation(int titleLabelX, int titleLabelY, int inventoryLabelX, int inventoryLabelY) -
render
public void render(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) - Specified by:
render
in interfacePerspectiveRenderable
- Specified by:
render
in interfacenet.minecraft.client.gui.components.Widget
- Overrides:
render
in classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
-
renderBackground
public void renderBackground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) - Specified by:
renderBackground
in interfacePerspectiveRenderable
-
renderForeground
public void renderForeground(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) - Specified by:
renderForeground
in interfacePerspectiveRenderable
-
renderToolTip
public void renderToolTip(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY, float partialTicks) - Specified by:
renderToolTip
in interfaceTooltipRenderable
-
renderLabels
protected void renderLabels(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY) - Overrides:
renderLabels
in classFluidContainerMenuScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
-
renderBg
protected void renderBg(com.mojang.blaze3d.vertex.PoseStack poseStack, float partialTicks, int mouseX, int mouseY) - Specified by:
renderBg
in classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
-
containerTick
public void containerTick()- Overrides:
containerTick
in classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
-