public class UpdateInventorySlotsMessage extends java.lang.Object implements cpw.mods.fml.common.network.simpleimpl.IMessageHandler<UpdateInventorySlotsMessage.Packet,cpw.mods.fml.common.network.simpleimpl.IMessage>
MalisisInventoryContainer
on the client.Modifier and Type | Class and Description |
---|---|
static class |
UpdateInventorySlotsMessage.Packet |
Modifier and Type | Field and Description |
---|---|
static int |
PICKEDITEM |
Constructor and Description |
---|
UpdateInventorySlotsMessage() |
Modifier and Type | Method and Description |
---|---|
cpw.mods.fml.common.network.simpleimpl.IMessage |
onMessage(UpdateInventorySlotsMessage.Packet message,
cpw.mods.fml.common.network.simpleimpl.MessageContext ctx)
Handles the received
UpdateInventorySlotsMessage.Packet on the client. |
static void |
updatePickedItemStack(net.minecraft.item.ItemStack itemStack,
net.minecraft.entity.player.EntityPlayerMP player,
int windowId)
Sends a packet to player to update the picked itemStack.
|
static void |
updateSlots(int inventoryId,
java.util.ArrayList<MalisisSlot> slots,
net.minecraft.entity.player.EntityPlayerMP player,
int windowId)
Sends a packet to player to update the inventory slots.
|
public cpw.mods.fml.common.network.simpleimpl.IMessage onMessage(UpdateInventorySlotsMessage.Packet message, cpw.mods.fml.common.network.simpleimpl.MessageContext ctx)
UpdateInventorySlotsMessage.Packet
on the client. Updates the slots.onMessage
in interface cpw.mods.fml.common.network.simpleimpl.IMessageHandler<UpdateInventorySlotsMessage.Packet,cpw.mods.fml.common.network.simpleimpl.IMessage>
message
- the messagectx
- the ctxpublic static void updatePickedItemStack(net.minecraft.item.ItemStack itemStack, net.minecraft.entity.player.EntityPlayerMP player, int windowId)
itemStack
- the item stackplayer
- the playerwindowId
- the window idpublic static void updateSlots(int inventoryId, java.util.ArrayList<MalisisSlot> slots, net.minecraft.entity.player.EntityPlayerMP player, int windowId)
inventoryId
- the inventory idslots
- the slotsplayer
- the playerwindowId
- the window id