public class BuildCraftJsonGui extends BuildCraftGui
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.| Modifier and Type | Field and Description |
|---|---|
FunctionContext |
context |
net.minecraft.util.ResourceLocation |
jsonGuiDefinition |
TypedKeyMap<java.lang.String,java.lang.Object> |
properties |
currentMenu, gui, isDebuggingEnabled, isDebuggingShown, lowerLeftLedgerPos, lowerRightLedgerPos, mc, mouse, rootElement, screenElement, shownElements, SPRITE_DEBUG| Constructor and Description |
|---|
BuildCraftJsonGui(net.minecraft.client.gui.GuiScreen gui,
IGuiArea rootElement,
net.minecraft.util.ResourceLocation jsonGuiDefinition) |
BuildCraftJsonGui(net.minecraft.client.gui.GuiScreen gui,
net.minecraft.util.ResourceLocation jsonGuiDefinition) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawBackgroundLayer(float partialTicks,
int mouseX,
int mouseY,
java.lang.Runnable backgroundRenderer) |
int |
getSizeX() |
int |
getSizeY() |
void |
load() |
void |
tick() |
createWindowedArea, drawElementBackgrounds, drawElementForegrounds, getElementsAt, getLastPartialTicks, onKeyTyped, onMouseClicked, onMouseDragged, onMouseReleased, postDrawForeground, preDrawForegroundpublic final net.minecraft.util.ResourceLocation jsonGuiDefinition
public final TypedKeyMap<java.lang.String,java.lang.Object> properties
public final FunctionContext context
public BuildCraftJsonGui(net.minecraft.client.gui.GuiScreen gui,
net.minecraft.util.ResourceLocation jsonGuiDefinition)
public BuildCraftJsonGui(net.minecraft.client.gui.GuiScreen gui,
IGuiArea rootElement,
net.minecraft.util.ResourceLocation jsonGuiDefinition)
public final void load()
public int getSizeX()
public int getSizeY()
public void tick()
tick in class BuildCraftGuipublic void drawBackgroundLayer(float partialTicks,
int mouseX,
int mouseY,
java.lang.Runnable backgroundRenderer)
drawBackgroundLayer in class BuildCraftGui