public class InventoryActionMessage extends java.lang.Object implements IMalisisMessageHandler<InventoryActionMessage.Packet,net.minecraftforge.fml.common.network.simpleimpl.IMessage>
| Modifier and Type | Class and Description |
|---|---|
static class |
InventoryActionMessage.Packet
The packet holding the data
|
| Constructor and Description |
|---|
InventoryActionMessage() |
| Modifier and Type | Method and Description |
|---|---|
void |
process(InventoryActionMessage.Packet message,
net.minecraftforge.fml.common.network.simpleimpl.MessageContext ctx)
Handles the
InventoryActionMessage.Packet received from the client. |
static void |
sendAction(MalisisInventoryContainer.ActionType action,
int inventoryId,
int slotNumber,
int code)
Sends GUI action to the server
MalisisInventoryContainer. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClientPlayer, getClientWorld, getPlayer, getWorld, onMessage, useTaskpublic void process(InventoryActionMessage.Packet message, net.minecraftforge.fml.common.network.simpleimpl.MessageContext ctx)
InventoryActionMessage.Packet received from the client.MalisisInventoryContainer, and send the changes back to the client.process in interface IMalisisMessageHandler<InventoryActionMessage.Packet,net.minecraftforge.fml.common.network.simpleimpl.IMessage>message - the messagectx - the ctxpublic static void sendAction(MalisisInventoryContainer.ActionType action, int inventoryId, int slotNumber, int code)
MalisisInventoryContainer.action - the actioninventoryId - the inventory idslotNumber - the slot numbercode - the code