public class UpdateInventorySlotsMessage extends java.lang.Object implements IMalisisMessageHandler<UpdateInventorySlotsMessage.Packet,net.minecraftforge.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 |
|---|---|
void |
process(UpdateInventorySlotsMessage.Packet message,
net.minecraftforge.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
UpdateInventorySlotsMessage.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
UpdateInventorySlotsMessage.Packet to player to update the inventory slots. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClientPlayer, getClientWorld, getPlayer, getWorld, onMessage, useTaskpublic void process(UpdateInventorySlotsMessage.Packet message, net.minecraftforge.fml.common.network.simpleimpl.MessageContext ctx)
UpdateInventorySlotsMessage.Packet on the client.MalisisInventoryprocess in interface IMalisisMessageHandler<UpdateInventorySlotsMessage.Packet,net.minecraftforge.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)
UpdateInventorySlotsMessage.Packet to player to update the picked ItemStack.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)
UpdateInventorySlotsMessage.Packet to player to update the inventory slots.inventoryId - the inventory idslots - the slotsplayer - the playerwindowId - the window id