Interface IInventoryNetworkUtil
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public interface IInventoryNetworkUtil
- Extension Methods
Properties
Api
The core API
ICoreAPI Api { get; set; }
Property Value
PauseInventoryUpdates
bool PauseInventoryUpdates { get; set; }
Property Value
Methods
DidClose(IPlayer)
Closes the target inventory attached to a player.
object DidClose(IPlayer player)
Parameters
player
IPlayer
Returns
DidOpen(IPlayer)
Opens a target inventory, passing it to the player.
object DidOpen(IPlayer player)
Parameters
player
IPlayer
Returns
GetActivateSlotPacket(int, ItemStackMoveOperation)
Gets the active slot packet.
object GetActivateSlotPacket(int slotId, ItemStackMoveOperation op)
Parameters
slotId
intThe slot ID
op
ItemStackMoveOperationThe operation of the slot.
Returns
GetFlipSlotsPacket(IInventory, int, int)
Flips the items between the source slot and target slot.
object GetFlipSlotsPacket(IInventory sourceInv, int sourceSlotId, int targetSlotId)
Parameters
sourceInv
IInventoryThe inventory.
sourceSlotId
intThe source slot ID
targetSlotId
intThe target slot ID
Returns
HandleClientPacket(IPlayer, int, byte[])
Handles the client packet.
void HandleClientPacket(IPlayer byPlayer, int packetId, byte[] data)