프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 GetPlayerItemInHand ( ) : |
||
리턴 |
public GetPlayerItemStackFromInventory ( byte id ) : ItemStack | ||
id | byte | |
리턴 | 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 |