Property | Type | Description | |
---|---|---|---|
Inventory | ItemStack[] | ||
NetworkPlayer | NetworkPlayer | ||
PlayerInventorySelected | int |
Method | Description | |
---|---|---|
CanPickup ( ItemStack item, int slotStart = -1 ) : int |
Returns the amount of an ItemStack that will be left. 0 if all are picked up.
|
|
EmptyBag ( ) : void | ||
GetNumItemInInventory ( byte id ) : int | ||
GetPlayerItemInHand ( ) : |
||
GetPlayerItemStackFromInventory ( byte id ) : ItemStack | ||
GetPlayerItemStackInHand ( ) : ItemStack | ||
HasItem ( byte id ) : bool | ||
PickupItem ( ItemStack item, bool overflow = false ) : void |
Picks up an item into the inventory
|
|
PlayerInventory ( NetworkPlayer player ) : System | ||
RemoveItemAt ( int slot ) : void | ||
RemoveItems ( byte itemID, int numToRemove ) : void | ||
RemoveItemsAtSlot ( int slot, byte itemID, int numToRemove ) : void | ||
SetBagSize ( int size ) : void |
public CanPickup ( ItemStack item, int slotStart = -1 ) : int | ||
item | ItemStack | The ItemStack to test against |
slotStart | int | Used for recursion. |
return | int |
public GetNumItemInInventory ( byte id ) : int | ||
id | byte | |
return | int |
public GetPlayerItemInHand ( ) : |
||
return |
public GetPlayerItemStackFromInventory ( byte id ) : ItemStack | ||
id | byte | |
return | ItemStack |
public GetPlayerItemStackInHand ( ) : ItemStack | ||
return | ItemStack |
public PickupItem ( ItemStack item, bool overflow = false ) : void | ||
item | ItemStack | The ItemStack to pick up |
overflow | bool | If true, then the extra items that are left over (can't be picked up) are dropped. |
return | void |
public PlayerInventory ( NetworkPlayer player ) : System | ||
player | NetworkPlayer | |
return | System |
public RemoveItems ( byte itemID, int numToRemove ) : void | ||
itemID | byte | |
numToRemove | int | |
return | void |
public RemoveItemsAtSlot ( int slot, byte itemID, int numToRemove ) : void | ||
slot | int | |
itemID | byte | |
numToRemove | int | |
return | void |