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
FieldsModifier and TypeFieldDescriptionprotected TDeprecated.protected intDeprecated.protected intDeprecated.protected net.minecraft.resources.ResourceLocationDeprecated.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, topPosFields 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, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionContainerScreenExtended(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.ResourceLocationDeprecated.protected net.minecraft.client.gui.components.Button.OnPresscreateServerPressable(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 registeredIContainerButtonActionregistered in the container by the same button id.protected voiddrawCurrentScreen(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) Deprecated.voiddrawTooltip(List<net.minecraft.network.chat.Component> lines, com.mojang.blaze3d.vertex.PoseStack poseStack, int x, int y) Deprecated.protected intDeprecated.protected intDeprecated.intDeprecated.net.minecraft.resources.ResourceLocationDeprecated.Get the texture path of the GUI.intDeprecated.net.minecraft.world.inventory.MenuType<?> Deprecated.voidinit()Deprecated.booleanisHovering(int left, int top, int right, int bottom, double pointX, double pointY) Deprecated.booleanisHovering(net.minecraft.world.inventory.Slot slotIn, double mouseX, double mouseY) Deprecated.booleanisPointInRegion(Rectangle region, Point mouse) Deprecated.voidonUpdate(int valueId, net.minecraft.nbt.CompoundTag value) Deprecated.Called by the server if the value has changed.protected voidDeprecated.Will send client-side onUpdate events for all stored valuesfinal voidrender(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) Deprecated.protected voidrenderBg(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, tickMethods 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, 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, 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
-
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:
initin 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:
renderin interfacenet.minecraft.client.gui.components.Renderable- Overrides:
renderin 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:
renderBgin 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:
isHoveringin 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:
isHoveringin 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 registeredIContainerButtonActionregistered 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:IValueNotifiableCalled by the server if the value has changed.- Specified by:
onUpdatein 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:
getValueNotifiableTypein interfaceIValueNotifiable- Returns:
- The container type.
-