Class ContainerScreenContainerTankInventory<C extends ContainerInventoryTickingTank<T>,T extends BlockEntityTickingTankInventory<T>>
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>
org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<C>
org.cyclops.evilcraft.core.client.gui.container.ContainerScreenContainerTankInventory<C,T>
- Type Parameters:
T- TheBlockEntityTankInventoryclass, mostly just the extension class.
- All Implemented Interfaces:
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<C>,org.cyclops.cyclopscore.inventory.IValueNotifiable
- Direct Known Subclasses:
ContainerScreenBloodChest,ContainerScreenTileWorking
public abstract class ContainerScreenContainerTankInventory<C extends ContainerInventoryTickingTank<T>,T extends BlockEntityTickingTankInventory<T>>
extends org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<C>
A GUI container that has support for the display of inventories and a tank.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
Fields inherited from class org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended
container, offsetX, offsetY, textureFields 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
font, height, itemRenderer, minecraft, passEvents, renderables, title, widthFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionContainerScreenContainerTankInventory(C container, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawAdditionalForeground(com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY) protected voiddrawBarTooltipTank(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.network.chat.Component name, net.minecraftforge.fluids.FluidStack fluidStack, int amount, int capacity, int x, int y) voiddrawCurrentScreen(com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY, float gameTicks) protected voiddrawForgegroundString(com.mojang.blaze3d.vertex.PoseStack matrixStack) protected voiddrawTank(com.mojang.blaze3d.vertex.PoseStack matrixStack, int xOffset, int yOffset, net.minecraft.world.level.material.Fluid fluid, int level) protected voiddrawTooltips(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY) protected abstract net.minecraft.network.chat.ComponentgetName()protected intgetProgressXScaled(int width) protected intgetProgressYScaled(int height) protected booleanprotected voidrenderBg(com.mojang.blaze3d.vertex.PoseStack matrixStack, float f, int x, int y) protected voidrenderLabels(com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY) protected voidsetProgress(int progressWidth, int progressHeight, int progressX, int progressY, int progressTargetX, int progressTargetY) protected voidsetTank(int tankWidth, int tankHeight, int tankX, int tankY, int tankTargetX, int tankTargetY) protected booleanshouldRenderTank(net.minecraftforge.fluids.FluidStack fluidStack) Methods inherited from class org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended
constructGuiTexture, createServerPressable, drawTooltip, getBaseXSize, getBaseYSize, getGuiLeftTotal, getGuiTexture, getGuiTopTotal, getValueNotifiableType, init, isHovering, isHovering, isPointInRegion, onUpdate, refreshValues, renderMethods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, containerTick, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, hasClickedOutside, isPauseScreen, keyPressed, mouseClicked, mouseDragged, mouseReleased, onClose, removed, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, tickMethods 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, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods 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
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseScrolled, setInitialFocusMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Constructor Details
-
ContainerScreenContainerTankInventory
public ContainerScreenContainerTankInventory(C container, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title)
-
-
Method Details
-
setTank
protected void setTank(int tankWidth, int tankHeight, int tankX, int tankY, int tankTargetX, int tankTargetY) -
setProgress
protected void setProgress(int progressWidth, int progressHeight, int progressX, int progressY, int progressTargetX, int progressTargetY) -
isShowProgress
protected boolean isShowProgress() -
getProgressXScaled
protected int getProgressXScaled(int width) -
getProgressYScaled
protected int getProgressYScaled(int height) -
renderBg
protected void renderBg(com.mojang.blaze3d.vertex.PoseStack matrixStack, float f, int x, int y) - Overrides:
renderBgin classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<C extends ContainerInventoryTickingTank<T>>
-
getName
protected abstract net.minecraft.network.chat.Component getName() -
drawForgegroundString
protected void drawForgegroundString(com.mojang.blaze3d.vertex.PoseStack matrixStack) -
renderLabels
protected void renderLabels(com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY) - Overrides:
renderLabelsin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends ContainerInventoryTickingTank<T>>
-
drawAdditionalForeground
protected void drawAdditionalForeground(com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY) -
drawCurrentScreen
public void drawCurrentScreen(com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY, float gameTicks) - Overrides:
drawCurrentScreenin classorg.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<C extends ContainerInventoryTickingTank<T>>
-
shouldRenderTank
protected boolean shouldRenderTank(net.minecraftforge.fluids.FluidStack fluidStack) -
drawTank
protected void drawTank(com.mojang.blaze3d.vertex.PoseStack matrixStack, int xOffset, int yOffset, net.minecraft.world.level.material.Fluid fluid, int level) -
drawTooltips
protected void drawTooltips(com.mojang.blaze3d.vertex.PoseStack poseStack, int mouseX, int mouseY) -
drawBarTooltipTank
protected void drawBarTooltipTank(com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.network.chat.Component name, net.minecraftforge.fluids.FluidStack fluidStack, int amount, int capacity, int x, int y)
-