public class GuiHandler
extends java.lang.Object
implements cpw.mods.fml.common.network.IGuiHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
GuiHandler.GuiType
Types of GUIs.
|
| Constructor and Description |
|---|
GuiHandler() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getClientGuiElement(int id,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
int x,
int y,
int z) |
java.lang.Object |
getServerGuiElement(int id,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
int x,
int y,
int z) |
static void |
registerGUI(IGuiContainerProvider guiProvider,
GuiHandler.GuiType type)
Register a new GUI.
|
static void |
setTemporaryItemIndex(int index)
Set a temporary index in the player inventory for showing gui's for items.
|
public static void registerGUI(IGuiContainerProvider guiProvider, GuiHandler.GuiType type)
guiProvider - A provider of GUI data.type - The GUI type.public static void setTemporaryItemIndex(int index)
index - The index.public java.lang.Object getServerGuiElement(int id,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
int x,
int y,
int z)
getServerGuiElement in interface cpw.mods.fml.common.network.IGuiHandlerpublic java.lang.Object getClientGuiElement(int id,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
int x,
int y,
int z)
getClientGuiElement in interface cpw.mods.fml.common.network.IGuiHandler