Свойство | Тип | Описание | |
---|---|---|---|
Inventory | ItemStack[] | ||
NetworkPlayer | NetworkPlayer | ||
PlayerInventorySelected | int |
Метод | Описание | |
---|---|---|
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. |
Результат | int |
public GetNumItemInInventory ( byte id ) : int | ||
id | byte | |
Результат | int |
public GetPlayerItemInHand ( ) : |
||
Результат |
public GetPlayerItemStackFromInventory ( byte id ) : ItemStack | ||
id | byte | |
Результат | ItemStack |
public GetPlayerItemStackInHand ( ) : ItemStack | ||
Результат | 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. |
Результат | void |
public PlayerInventory ( NetworkPlayer player ) : System | ||
player | NetworkPlayer | |
Результат | System |
public RemoveItems ( byte itemID, int numToRemove ) : void | ||
itemID | byte | |
numToRemove | int | |
Результат | void |
public RemoveItemsAtSlot ( int slot, byte itemID, int numToRemove ) : void | ||
slot | int | |
itemID | byte | |
numToRemove | int | |
Результат | void |