public abstract class GuiPneumaticContainerBase<C extends ContainerPneumaticBase<T>,T extends TileEntityBase>
extends net.minecraft.client.gui.screen.inventory.ContainerScreen<C>
| Modifier and Type | Field and Description |
|---|---|
T |
te |
hoveredSlot, imageHeight, imageWidth, inventory, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, quickCraftSlots, slotColor, titleLabelX, titleLabelY, topPos| Constructor and Description |
|---|
GuiPneumaticContainerBase(C container,
net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.util.text.ITextComponent displayString) |
| Modifier and Type | Method and Description |
|---|---|
protected WidgetAnimatedStat |
addAnimatedStat(net.minecraft.util.text.ITextComponent title,
int backgroundColor,
boolean leftSided) |
protected WidgetAnimatedStat |
addAnimatedStat(net.minecraft.util.text.ITextComponent title,
net.minecraft.item.ItemStack icon,
int backgroundColor,
boolean leftSided) |
protected WidgetAnimatedStat |
addAnimatedStat(net.minecraft.util.text.ITextComponent title,
net.minecraft.util.ResourceLocation icon,
int backgroundColor,
boolean leftSided) |
protected <T extends net.minecraft.client.gui.widget.Widget> |
addButton(T widget) |
protected void |
addExtraVolumeModifierInfo(java.util.List<net.minecraft.util.text.ITextComponent> text) |
protected void |
addInformation(java.util.List<net.minecraft.util.text.ITextComponent> curInfo)
Use this to add informational messages to the problems tab, which don't actually count as problems.
|
protected void |
addInfoTab(net.minecraft.util.text.ITextComponent info) |
protected void |
addInfoTab(java.util.List<net.minecraft.util.text.ITextComponent> info) |
protected void |
addJeiFilterInfoTab() |
protected WidgetLabel |
addLabel(net.minecraft.util.text.ITextComponent text,
int x,
int y) |
protected WidgetLabel |
addLabel(net.minecraft.util.text.ITextComponent text,
int x,
int y,
int color) |
protected void |
addPressureStatInfo(java.util.List<net.minecraft.util.text.ITextComponent> pressureStatText) |
protected void |
addProblems(java.util.List<net.minecraft.util.text.ITextComponent> curInfo)
Use this to add problem information; situations that prevent the machine from operating.
|
protected void |
addWarnings(java.util.List<net.minecraft.util.text.ITextComponent> curInfo)
Use this to add warning messages; the machine will run but with potential problems.
|
protected void |
doDelayedAction()
Run the delayed action set up by sendDelayed()
|
protected int |
getBackgroundTint() |
protected PointXY |
getGaugeLocation() |
protected abstract net.minecraft.util.ResourceLocation |
getGuiTexture() |
protected PointXY |
getInvNameOffset() |
protected PointXY |
getInvTextOffset() |
java.util.List<IGuiAnimatedStat> |
getStatWidgets() |
java.util.List<net.minecraft.client.renderer.Rectangle2d> |
getTabRectangles() |
java.util.Collection<net.minecraftforge.fluids.FluidStack> |
getTargetFluids() |
java.util.Collection<net.minecraft.item.ItemStack> |
getTargetItems() |
protected int |
getTitleColor() |
void |
init() |
protected boolean |
isUpgradeAvailable(EnumUpgrade upgrade) |
boolean |
mouseDragged(double mouseX,
double mouseY,
int mouseButton,
double dragX,
double dragY) |
boolean |
mouseReleased(double pMouseX,
double pMouseY,
int pButton) |
void |
onGuiUpdate()
Called when the client has received a PacketUpdateGui to sync something from the server-side container
|
void |
removed() |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int x,
int y,
float partialTick) |
protected void |
renderBg(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
float partialTicks,
int i,
int j) |
protected void |
renderLabels(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int x,
int y) |
protected void |
sendDelayed(int ticks)
Schedule a delayed action to be done some time in the future.
|
protected boolean |
shouldAddInfoTab() |
protected boolean |
shouldAddPressureTab() |
protected boolean |
shouldAddProblemTab() |
protected boolean |
shouldAddRedstoneTab() |
protected boolean |
shouldAddSideConfigTabs() |
protected boolean |
shouldAddUpgradeTab() |
protected boolean |
shouldDrawBackground() |
protected boolean |
shouldParseVariablesInTooltips() |
void |
tick() |
protected java.lang.String |
upgradeCategory() |
checkHotbarKeyPressed, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, hasClickedOutside, isHovering, isPauseScreen, keyPressed, mouseClicked, onClose, renderTooltip, slotClickedaddWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocusedblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic final T extends TileEntityBase te
public GuiPneumaticContainerBase(C container, net.minecraft.entity.player.PlayerInventory inv, net.minecraft.util.text.ITextComponent displayString)
public void init()
init in class net.minecraft.client.gui.screen.inventory.ContainerScreen<C extends ContainerPneumaticBase<T>>protected WidgetAnimatedStat addAnimatedStat(net.minecraft.util.text.ITextComponent title, @Nonnull net.minecraft.item.ItemStack icon, int backgroundColor, boolean leftSided)
protected WidgetAnimatedStat addAnimatedStat(net.minecraft.util.text.ITextComponent title, net.minecraft.util.ResourceLocation icon, int backgroundColor, boolean leftSided)
protected WidgetAnimatedStat addAnimatedStat(net.minecraft.util.text.ITextComponent title, int backgroundColor, boolean leftSided)
protected <T extends net.minecraft.client.gui.widget.Widget> T addButton(T widget)
addButton in class net.minecraft.client.gui.screen.Screenprotected WidgetLabel addLabel(net.minecraft.util.text.ITextComponent text, int x, int y)
protected WidgetLabel addLabel(net.minecraft.util.text.ITextComponent text, int x, int y, int color)
public java.util.List<IGuiAnimatedStat> getStatWidgets()
protected void addJeiFilterInfoTab()
protected java.lang.String upgradeCategory()
protected boolean isUpgradeAvailable(EnumUpgrade upgrade)
protected void addInfoTab(java.util.List<net.minecraft.util.text.ITextComponent> info)
protected void addInfoTab(net.minecraft.util.text.ITextComponent info)
protected boolean shouldAddRedstoneTab()
protected boolean shouldAddPressureTab()
protected boolean shouldAddUpgradeTab()
protected boolean shouldAddInfoTab()
protected boolean shouldAddProblemTab()
protected boolean shouldAddSideConfigTabs()
protected int getBackgroundTint()
protected boolean shouldDrawBackground()
protected void renderBg(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
float partialTicks,
int i,
int j)
renderBg in class net.minecraft.client.gui.screen.inventory.ContainerScreen<C extends ContainerPneumaticBase<T>>protected void renderLabels(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int x,
int y)
renderLabels in class net.minecraft.client.gui.screen.inventory.ContainerScreen<C extends ContainerPneumaticBase<T>>protected abstract net.minecraft.util.ResourceLocation getGuiTexture()
public boolean mouseReleased(double pMouseX,
double pMouseY,
int pButton)
mouseReleased in interface net.minecraft.client.gui.IGuiEventListenermouseReleased in interface net.minecraft.client.gui.INestedGuiEventHandlermouseReleased in class net.minecraft.client.gui.screen.inventory.ContainerScreen<C extends ContainerPneumaticBase<T>>public boolean mouseDragged(double mouseX,
double mouseY,
int mouseButton,
double dragX,
double dragY)
mouseDragged in interface net.minecraft.client.gui.IGuiEventListenermouseDragged in interface net.minecraft.client.gui.INestedGuiEventHandlermouseDragged in class net.minecraft.client.gui.screen.inventory.ContainerScreen<C extends ContainerPneumaticBase<T>>public void render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int x,
int y,
float partialTick)
render in interface net.minecraft.client.gui.IRenderablerender in class net.minecraft.client.gui.screen.inventory.ContainerScreen<C extends ContainerPneumaticBase<T>>protected PointXY getGaugeLocation()
protected int getTitleColor()
protected PointXY getInvNameOffset()
protected PointXY getInvTextOffset()
public void tick()
tick in interface net.minecraft.client.gui.screen.IScreentick in class net.minecraft.client.gui.screen.inventory.ContainerScreen<C extends ContainerPneumaticBase<T>>protected void addPressureStatInfo(java.util.List<net.minecraft.util.text.ITextComponent> pressureStatText)
protected void addExtraVolumeModifierInfo(java.util.List<net.minecraft.util.text.ITextComponent> text)
protected void addProblems(java.util.List<net.minecraft.util.text.ITextComponent> curInfo)
curInfo - string list to append toprotected void addInformation(java.util.List<net.minecraft.util.text.ITextComponent> curInfo)
curInfo - string list to append to, which may already contain some problem textprotected void addWarnings(java.util.List<net.minecraft.util.text.ITextComponent> curInfo)
curInfo - string list to append to, which may already contain some problem textpublic java.util.List<net.minecraft.client.renderer.Rectangle2d> getTabRectangles()
protected void sendDelayed(int ticks)
ticks - number of ticks to delayprotected void doDelayedAction()
public void removed()
removed in class net.minecraft.client.gui.screen.inventory.ContainerScreen<C extends ContainerPneumaticBase<T>>protected boolean shouldParseVariablesInTooltips()
public void onGuiUpdate()
public java.util.Collection<net.minecraft.item.ItemStack> getTargetItems()
public java.util.Collection<net.minecraftforge.fluids.FluidStack> getTargetFluids()