public abstract class GuiJson<C extends ContainerBC_Neptune> extends GuiBC8<C>
Slot
's,
ISprite
's and configure buttons in code - currently this only allows for completely defining simple elements
via json, more complex ones must be implemented in code.GuiBC8.RootPosition
Modifier and Type | Field and Description |
---|---|
protected FunctionContext |
context |
net.minecraft.util.ResourceLocation |
guiDefinition |
protected TypedKeyMap<java.lang.String,java.lang.Object> |
properties |
container, currentMenu, isDebuggingEnabled, lowerLeftLedgerPos, lowerRightLedgerPos, mouse, rootElement, shownElements, SPRITE_DEBUG
dragSplitting, dragSplittingSlots, guiLeft, guiTop, INVENTORY_BACKGROUND, inventorySlots, xSize, ySize
Constructor and Description |
---|
GuiJson(C container,
net.minecraft.util.ResourceLocation guiDefinition) |
Modifier and Type | Method and Description |
---|---|
protected void |
drawBackgroundLayer(float partialTicks) |
protected void |
drawForegroundLayer() |
void |
initGui() |
protected void |
load() |
protected void |
postLoad()
Called after the whole gui has been loaded.
|
protected void |
preLoad()
Fill up
properties and context |
protected boolean |
shouldAddHelpLedger() |
void |
updateScreen() |
drawGradientRect, drawGradientRect, drawGuiContainerBackgroundLayer, drawGuiContainerForegroundLayer, drawItemStackAt, drawProgress, drawScreen, drawString, drawTexturedModalRect, getButtonList, getElementsAt, getFontRenderer, getLastPartialTicks, mouseClicked, mouseClickMove, mouseReleased
checkHotbarKeys, doesGuiPauseGame, getGuiLeft, getGuiTop, getSlotUnderMouse, getXSize, getYSize, handleMouseClick, hasClickedOutside, isPointInRegion, keyTyped, onGuiClosed, renderHoveredToolTip
actionPerformed, addButton, confirmClicked, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setText, setWorldAndResolution
public final net.minecraft.util.ResourceLocation guiDefinition
protected final TypedKeyMap<java.lang.String,java.lang.Object> properties
protected final FunctionContext context
public GuiJson(C container, net.minecraft.util.ResourceLocation guiDefinition)
protected boolean shouldAddHelpLedger()
shouldAddHelpLedger
in class GuiBC8<C extends ContainerBC_Neptune>
public void initGui()
initGui
in class GuiBC8<C extends ContainerBC_Neptune>
protected final void load()
public void updateScreen()
updateScreen
in class GuiBC8<C extends ContainerBC_Neptune>
protected void drawBackgroundLayer(float partialTicks)
drawBackgroundLayer
in class GuiBC8<C extends ContainerBC_Neptune>
protected void drawForegroundLayer()
drawForegroundLayer
in class GuiBC8<C extends ContainerBC_Neptune>
protected void preLoad()
properties
and context
protected void postLoad()