Class ContainerScreenExtended<T extends ContainerExtended>
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T>
org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<T>
- All Implemented Interfaces:
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>
,IValueNotifiable
- Direct Known Subclasses:
ContainerScreenScrolling
@Deprecated
public abstract class ContainerScreenExtended<T extends ContainerExtended>
extends net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T>
implements IValueNotifiable
Deprecated.
An extended GUI container.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprotected T
Deprecated.protected int
Deprecated.protected int
Deprecated.protected net.minecraft.resources.ResourceLocation
Deprecated.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
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionContainerScreenExtended
(T container, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract net.minecraft.resources.ResourceLocation
Deprecated.protected net.minecraft.client.gui.components.Button.OnPress
createServerPressable
(String buttonId, net.minecraft.client.gui.components.Button.OnPress clientPressable) Deprecated.Call this to create a button pressable callback so that the container is notified as well, assuming it has a corresponding registeredIContainerButtonAction
registered in the container by the same button id.protected void
drawCurrentScreen
(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) Deprecated.void
drawTooltip
(List<net.minecraft.network.chat.Component> lines, com.mojang.blaze3d.vertex.PoseStack poseStack, int x, int y) Deprecated.protected int
Deprecated.protected int
Deprecated.int
Deprecated.net.minecraft.resources.ResourceLocation
Deprecated.Get the texture path of the GUI.int
Deprecated.net.minecraft.world.inventory.MenuType
<?> Deprecated.void
init()
Deprecated.boolean
isHovering
(int left, int top, int right, int bottom, double pointX, double pointY) Deprecated.boolean
isHovering
(net.minecraft.world.inventory.Slot slotIn, double mouseX, double mouseY) Deprecated.boolean
isPointInRegion
(Rectangle region, Point mouse) Deprecated.void
onUpdate
(int valueId, net.minecraft.nbt.CompoundTag value) Deprecated.Called by the server if the value has changed.protected void
Deprecated.Will send client-side onUpdate events for all stored valuesfinal void
render
(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) Deprecated.protected void
renderBg
(net.minecraft.client.gui.GuiGraphics guiGraphics, float f, int x, int y) Deprecated.Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, containerTick, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, hasClickedOutside, isPauseScreen, keyPressed, mouseClicked, mouseDragged, mouseReleased, onClose, removed, renderBackground, renderLabels, renderSlot, renderSlotContents, renderSlotHighlight, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, tick
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
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
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
container
Deprecated. -
texture
protected net.minecraft.resources.ResourceLocation textureDeprecated. -
offsetX
protected int offsetXDeprecated. -
offsetY
protected int offsetYDeprecated.
-
-
Constructor Details
-
ContainerScreenExtended
public ContainerScreenExtended(T container, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title) Deprecated.
-
-
Method Details
-
constructGuiTexture
protected abstract net.minecraft.resources.ResourceLocation constructGuiTexture()Deprecated. -
getGuiTexture
public net.minecraft.resources.ResourceLocation getGuiTexture()Deprecated.Get the texture path of the GUI.- Returns:
- The path of the GUI for this block.
-
init
public void init()Deprecated.- Overrides:
init
in classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends ContainerExtended>
-
render
public final void render(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) Deprecated.- Specified by:
render
in interfacenet.minecraft.client.gui.components.Renderable
- Overrides:
render
in classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends ContainerExtended>
-
drawCurrentScreen
protected void drawCurrentScreen(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) Deprecated. -
getBaseXSize
protected int getBaseXSize()Deprecated. -
getBaseYSize
protected int getBaseYSize()Deprecated. -
renderBg
protected void renderBg(net.minecraft.client.gui.GuiGraphics guiGraphics, float f, int x, int y) Deprecated.- Specified by:
renderBg
in classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends ContainerExtended>
-
isHovering
public boolean isHovering(net.minecraft.world.inventory.Slot slotIn, double mouseX, double mouseY) Deprecated.- Overrides:
isHovering
in classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends ContainerExtended>
-
isHovering
public boolean isHovering(int left, int top, int right, int bottom, double pointX, double pointY) Deprecated.- Overrides:
isHovering
in classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends ContainerExtended>
-
isPointInRegion
Deprecated. -
drawTooltip
public void drawTooltip(List<net.minecraft.network.chat.Component> lines, com.mojang.blaze3d.vertex.PoseStack poseStack, int x, int y) Deprecated. -
createServerPressable
protected net.minecraft.client.gui.components.Button.OnPress createServerPressable(String buttonId, @Nullable net.minecraft.client.gui.components.Button.OnPress clientPressable) Deprecated.Call this to create a button pressable callback so that the container is notified as well, assuming it has a corresponding registeredIContainerButtonAction
registered in the container by the same button id.- Parameters:
buttonId
- The button id.clientPressable
- An optional pressable that should be called client-side.- Returns:
- The created pressable.
-
onUpdate
public void onUpdate(int valueId, net.minecraft.nbt.CompoundTag value) Deprecated.Description copied from interface:IValueNotifiable
Called by the server if the value has changed.- Specified by:
onUpdate
in interfaceIValueNotifiable
- Parameters:
valueId
- The value id.value
- The new value.
-
refreshValues
protected void refreshValues()Deprecated.Will send client-side onUpdate events for all stored values -
getGuiLeftTotal
public int getGuiLeftTotal()Deprecated.- Returns:
- The total gui left offset.
-
getGuiTopTotal
public int getGuiTopTotal()Deprecated.- Returns:
- The total gui top offset.
-
getValueNotifiableType
public net.minecraft.world.inventory.MenuType<?> getValueNotifiableType()Deprecated.- Specified by:
getValueNotifiableType
in interfaceIValueNotifiable
- Returns:
- The container type.
-