public class OpenInventoryMessage extends java.lang.Object implements cpw.mods.fml.common.network.simpleimpl.IMessageHandler<OpenInventoryMessage.Packet,cpw.mods.fml.common.network.simpleimpl.IMessage>
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenInventoryMessage.ContainerType |
static class |
OpenInventoryMessage.Packet |
| Constructor and Description |
|---|
OpenInventoryMessage() |
| Modifier and Type | Method and Description |
|---|---|
cpw.mods.fml.common.network.simpleimpl.IMessage |
onMessage(OpenInventoryMessage.Packet message,
cpw.mods.fml.common.network.simpleimpl.MessageContext ctx)
Handles the received
OpenInventoryMessage.Packet on the client. |
static void |
send(IInventoryProvider container,
net.minecraft.entity.player.EntityPlayerMP player,
int windowId)
Sends a packet to client to notify it to open a
MalisisInventory. |
public cpw.mods.fml.common.network.simpleimpl.IMessage onMessage(OpenInventoryMessage.Packet message, cpw.mods.fml.common.network.simpleimpl.MessageContext ctx)
OpenInventoryMessage.Packet on the client. Opens the GUI.onMessage in interface cpw.mods.fml.common.network.simpleimpl.IMessageHandler<OpenInventoryMessage.Packet,cpw.mods.fml.common.network.simpleimpl.IMessage>message - the messagectx - the ctxpublic static void send(IInventoryProvider container, net.minecraft.entity.player.EntityPlayerMP player, int windowId)
MalisisInventory.container - the containerplayer - the playerwindowId - the window id