


I know this is convoluted atm, but it's not complete yet. In your initGui method, you must also call super.initGui() prior to adding buttons to the panel to initialize the main ButtonPanel. Current GuiButtonPanel instance can be gotten from GuiWT#getButtonPanel. If you wish to add Config buttons (buttons along the left side of the GUI), you should add them in GuiContainer#initGui via the GuiButtonPanel#addButton method.
#Minecraft p455w0rd lib 1.12.2 mod
This library mod contains following utility code: GUI framework, Ernio’s network base code and math expression parser. McLib 1.12.2/1.11.2 is a repository of McLib mod, which is basically a library mod for McHorse’s mods. Your GUI should extend .gui.GuiWT to ensure Compatibility with the Wireless Universal Terminal McLib 1.12.2/1.11.2 (Library for McHorse’s Mods) Author: horsewithnoname Septem85,578 views. When adding slots, call ContainerWT#addSlotToContainer(WTApi.instance().createTrashSlot(trashInventory, xPos, yPos)) I have included a trash slot for convenience. If your terminal will be making use of a ConfigManager (For controlling of GUI settings), you should also initialize that in the constructor.

If you wish to make use of the Infinity Booster Card functionality, you should call the ContainerWT#(.InventoryPlayer ISSII)V super constructor, where the final 3 parameters should be true (enable the booster slot), slotXPos, slotYPos. In the constructor of your container, you will need to call ContainerWT#setTerminalHost. Your container should extend .ContainerWT. Your item should also extend .ItemWT which is an abstract implementation of a general wireless terminal which adds support for internal rendering.Ĭheck this for an example of what should be overridden ICustomWirelessTerminalItem also extends .IBaubleItem which adds the getRender() method for custom rendering per slot I recommend overriding ICustomWirelessTerminalItem#getStorageChannel using a default implementation inside this custom interface.
#Minecraft p455w0rd lib 1.12.2 mods
