Package info.u_team.u_team_core.screen
Class UContainerMenuScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
java.lang.Object
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.Renderable,net.minecraft.client.gui.components.TabOrderedElement,net.minecraft.client.gui.screens.inventory.MenuAccess<T>
public class UContainerMenuScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
extends FluidContainerMenuScreen<T>
implements PerspectiveRenderable, TooltipRenderable
-
Nested Class Summary
Nested classes/interfaces inherited from class info.u_team.u_team_core.screen.FluidContainerMenuScreen
FluidContainerMenuScreen.FluidContainerScreenDelegatorNested 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.ResourceLocationprotected RGBAprotected intprotected intprotected static final RGBAprotected booleanprotected booleanprotected RGBAFields 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, titleLabelX, titleLabelY, topPosFields inherited from class net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, screenExecutor, title, widthFields 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 TypeMethodDescriptionvoidbooleanmouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY) voidrender(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) voidrenderBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) protected voidrenderBg(net.minecraft.client.gui.GuiGraphics guiGraphics, float partialTick, int mouseX, int mouseY) voidrenderForeground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) protected voidrenderLabels(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY) voidrenderTooltip(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) protected voidsetBackground(net.minecraft.resources.ResourceLocation background) protected voidsetBackgroundDimensions(int size) protected voidsetBackgroundDimensions(int backgroundWidth, int backgroundHeight) protected voidprotected voidsetDrawText(boolean drawTitleText, boolean drawInventoryText) protected voidsetImageDimensions(int imageWidth, int imageHeight) protected voidsetTextLocation(int titleLabelX, int titleLabelY, int inventoryLabelX, int inventoryLabelY) Methods inherited from class info.u_team.u_team_core.screen.FluidContainerMenuScreen
getDelegator, mouseClicked, renderTooltipMethods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, getMenu, getTooltipFromContainerItem, hasClickedOutside, init, isHovering, isPauseScreen, keyPressed, mouseReleased, onClose, removed, renderSlotHighlight, slotClicked, tickMethods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
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(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) - Specified by:
renderin interfacePerspectiveRenderable- Specified by:
renderin interfacenet.minecraft.client.gui.components.Renderable- Overrides:
renderin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
-
renderBackground
public void renderBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) - Specified by:
renderBackgroundin interfacePerspectiveRenderable
-
renderForeground
public void renderForeground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) - Specified by:
renderForegroundin interfacePerspectiveRenderable
-
renderTooltip
public void renderTooltip(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) - Specified by:
renderTooltipin interfaceTooltipRenderable
-
renderLabels
protected void renderLabels(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY) - Overrides:
renderLabelsin classFluidContainerMenuScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
-
renderBg
protected void renderBg(net.minecraft.client.gui.GuiGraphics guiGraphics, float partialTick, int mouseX, int mouseY) - Specified by:
renderBgin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
-
containerTick
public void containerTick()- Overrides:
containerTickin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
-
mouseDragged
public boolean mouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY) - Specified by:
mouseDraggedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseDraggedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
mouseDraggedin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
-