Class AbstractPneumaticCraftContainerScreen<C extends AbstractPneumaticCraftMenu<T>,T extends AbstractPneumaticCraftBlockEntity>
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<C>
me.desht.pneumaticcraft.client.gui.AbstractPneumaticCraftContainerScreen<C,T>
- 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>
- Direct Known Subclasses:
AbstractLogisticsScreen,AbstractUpgradeManagerScreen,AerialInterfaceScreen,AirCannonScreen,AirCompressorScreen,AmadronAddTradeScreen,AmadronScreen,AssemblyControllerScreen,ChargingStationScreen,CreativeCompressedIronBlockScreen,CreativeCompressorScreen,ElectrostaticCompressorScreen,ElevatorScreen,EtchingTankScreen,FluidMixerScreen,FluidTankScreen,FluxCompressorScreen,GasLiftScreen,JackHammerSetupScreen,KeroseneLampScreen,LiquidCompressorScreen,LiquidHopperScreen,MinigunMagazineScreen,OmnidirectionalHopperScreen,PneumaticDoorBaseScreen,PneumaticDynamoScreen,PressureChamberInterfaceScreen,PressureChamberScreen,PressurizedSpawnerScreen,ProgrammableControllerScreen,ProgrammerScreen,RefineryControllerScreen,ReinforcedChestScreen,RemoteScreen,SecurityStationHackingScreen,SecurityStationInventoryScreen,SentryTurretScreen,SmartChestScreen,SpawnerExtractorScreen,TagWorkbenchScreen,ThermalCompressorScreen,ThermopneumaticProcessingPlantScreen,UniversalSensorScreen,UVLightBoxScreen,VacuumPumpScreen,VacuumTrapScreen
public abstract class AbstractPneumaticCraftContainerScreen<C extends AbstractPneumaticCraftMenu<T>,T extends AbstractPneumaticCraftBlockEntity>
extends net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionAbstractPneumaticCraftContainerScreen(C container, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.chat.Component displayString) -
Method Summary
Modifier and TypeMethodDescriptionprotected WidgetAnimatedStataddAnimatedStat(net.minecraft.network.chat.Component title, int backgroundColor, boolean leftSided) protected WidgetAnimatedStataddAnimatedStat(net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation icon, int backgroundColor, boolean leftSided) protected WidgetAnimatedStataddAnimatedStat(net.minecraft.network.chat.Component title, net.minecraft.world.item.ItemStack icon, int backgroundColor, boolean leftSided) protected voidaddExtraVolumeModifierInfo(List<net.minecraft.network.chat.Component> text) protected voidaddInformation(List<net.minecraft.network.chat.Component> curInfo) Use this to add informational messages to the problems tab, which don't actually count as problems.protected voidaddInfoTab(List<net.minecraft.network.chat.Component> info) protected voidaddInfoTab(net.minecraft.network.chat.Component info) protected voidprotected WidgetLabeladdLabel(net.minecraft.network.chat.Component text, int x, int y) protected WidgetLabeladdLabel(net.minecraft.network.chat.Component text, int x, int y, int color) voidaddPressureInfo(List<net.minecraft.network.chat.Component> text, float curPressure, int volume, int baseVolume, int upgrades) protected voidaddPressureStatInfo(List<net.minecraft.network.chat.Component> pressureStatText) protected voidaddProblems(List<net.minecraft.network.chat.Component> curInfo) Use this to add problem information; situations that prevent the machine from operating.protected voidaddWarnings(List<net.minecraft.network.chat.Component> curInfo) Use this to add warning messages; the machine will run but with potential problems.voidprotected voidRun the delayed action set up by sendDelayed()protected intprotected PointXYprotected abstract net.minecraft.resources.ResourceLocationprotected PointXYprotected PointXYList<net.minecraft.client.renderer.Rect2i>Collection<net.minecraftforge.fluids.FluidStack>Collection<net.minecraft.world.item.ItemStack>protected intvoidinit()protected booleanisUpgradeAvailable(PNCUpgrade upgrade) booleanmouseDragged(double mouseX, double mouseY, int mouseButton, double dragX, double dragY) voidCalled when the client has received a PacketUpdateGui to sync something from the server-side containervoidremoved()voidrender(com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y, float partialTick) protected voidrenderBg(com.mojang.blaze3d.vertex.PoseStack matrixStack, float partialTicks, int i, int j) protected voidrenderLabels(com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y) protected voidsendDelayed(int ticks) Schedule a delayed action to be done some time in the future.protected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected StringMethods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, hasClickedOutside, isHovering, isPauseScreen, keyPressed, mouseClicked, mouseReleased, onClose, 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, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, 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
-
Field Details
-
te
-
-
Constructor Details
-
AbstractPneumaticCraftContainerScreen
public AbstractPneumaticCraftContainerScreen(C container, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.chat.Component displayString)
-
-
Method Details
-
init
public void init()- Overrides:
initin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends AbstractPneumaticCraftMenu<T>>
-
addAnimatedStat
protected WidgetAnimatedStat addAnimatedStat(net.minecraft.network.chat.Component title, @Nonnull net.minecraft.world.item.ItemStack icon, int backgroundColor, boolean leftSided) -
addAnimatedStat
protected WidgetAnimatedStat addAnimatedStat(net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation icon, int backgroundColor, boolean leftSided) -
addAnimatedStat
protected WidgetAnimatedStat addAnimatedStat(net.minecraft.network.chat.Component title, int backgroundColor, boolean leftSided) -
addLabel
-
addLabel
-
getStatWidgets
-
addJeiFilterInfoTab
protected void addJeiFilterInfoTab() -
upgradeCategory
-
isUpgradeAvailable
-
addInfoTab
-
addInfoTab
protected void addInfoTab(net.minecraft.network.chat.Component info) -
shouldAddRedstoneTab
protected boolean shouldAddRedstoneTab() -
shouldAddPressureTab
protected boolean shouldAddPressureTab() -
shouldAddUpgradeTab
protected boolean shouldAddUpgradeTab() -
shouldAddInfoTab
protected boolean shouldAddInfoTab() -
shouldAddProblemTab
protected boolean shouldAddProblemTab() -
shouldAddSideConfigTabs
protected boolean shouldAddSideConfigTabs() -
getBackgroundTint
protected int getBackgroundTint() -
shouldDrawBackground
protected boolean shouldDrawBackground() -
renderBg
protected void renderBg(com.mojang.blaze3d.vertex.PoseStack matrixStack, float partialTicks, int i, int j) - Specified by:
renderBgin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends AbstractPneumaticCraftMenu<T>>
-
renderLabels
protected void renderLabels(com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y) - Overrides:
renderLabelsin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends AbstractPneumaticCraftMenu<T>>
-
getGuiTexture
protected abstract net.minecraft.resources.ResourceLocation getGuiTexture() -
mouseDragged
public boolean mouseDragged(double mouseX, double mouseY, int mouseButton, 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<C extends AbstractPneumaticCraftMenu<T>>
-
render
public void render(com.mojang.blaze3d.vertex.PoseStack matrixStack, int x, int y, float partialTick) - Specified by:
renderin interfacenet.minecraft.client.gui.components.Widget- Overrides:
renderin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends AbstractPneumaticCraftMenu<T>>
-
getGaugeLocation
-
getTitleColor
protected int getTitleColor() -
getInvNameOffset
-
getInvTextOffset
-
containerTick
public void containerTick()- Overrides:
containerTickin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends AbstractPneumaticCraftMenu<T>>
-
addPressureStatInfo
-
addPressureInfo
public void addPressureInfo(List<net.minecraft.network.chat.Component> text, float curPressure, int volume, int baseVolume, int upgrades) -
addExtraVolumeModifierInfo
-
addProblems
Use this to add problem information; situations that prevent the machine from operating.- Parameters:
curInfo- string list to append to
-
addInformation
Use this to add informational messages to the problems tab, which don't actually count as problems.- Parameters:
curInfo- string list to append to, which may already contain some problem text
-
addWarnings
Use this to add warning messages; the machine will run but with potential problems.- Parameters:
curInfo- string list to append to, which may already contain some problem text
-
getTabRectangles
-
sendDelayed
protected void sendDelayed(int ticks) Schedule a delayed action to be done some time in the future. Calling this again will reset the delay. Useful to avoid excessive network traffic if sending updates to the server from a textfield change.- Parameters:
ticks- number of ticks to delay
-
doDelayedAction
protected void doDelayedAction()Run the delayed action set up by sendDelayed() -
removed
public void removed()- Overrides:
removedin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<C extends AbstractPneumaticCraftMenu<T>>
-
shouldParseVariablesInTooltips
protected boolean shouldParseVariablesInTooltips() -
onGuiUpdate
public void onGuiUpdate()Called when the client has received a PacketUpdateGui to sync something from the server-side container -
getTargetItems
-
getTargetFluids
-