C# Class MiningGame.Code.PlayerClasses.PlayerInventory

Afficher le fichier Open project: geel9/Minor-Destruction Class Usage Examples

Méthodes publiques

Свойство Type Description
Inventory ItemStack[]
PlayerController PlayerController
PlayerInventorySelected int

Méthodes publiques

Méthode Description
GetNumItemInInventory ( byte id ) : int
GetPlayerItemInHand ( ) : System.Item
GetPlayerItemStackFromInventory ( byte id ) : ItemStack
GetPlayerItemStackInHand ( ) : ItemStack
HasItem ( byte id ) : bool
PlayerInventory ( PlayerController player ) : System
RemoveItemAt ( int slot ) : void
SetBagSize ( int size ) : void
SetItem ( int slot, ItemStack item ) : void

Method Details

GetNumItemInInventory() public méthode

public GetNumItemInInventory ( byte id ) : int
id byte
Résultat int

GetPlayerItemInHand() public méthode

public GetPlayerItemInHand ( ) : System.Item
Résultat System.Item

GetPlayerItemStackFromInventory() public méthode

public GetPlayerItemStackFromInventory ( byte id ) : ItemStack
id byte
Résultat ItemStack

GetPlayerItemStackInHand() public méthode

public GetPlayerItemStackInHand ( ) : ItemStack
Résultat ItemStack

HasItem() public méthode

public HasItem ( byte id ) : bool
id byte
Résultat bool

PlayerInventory() public méthode

public PlayerInventory ( PlayerController player ) : System
player PlayerController
Résultat System

RemoveItemAt() public méthode

public RemoveItemAt ( int slot ) : void
slot int
Résultat void

SetBagSize() public méthode

public SetBagSize ( int size ) : void
size int
Résultat void

SetItem() public méthode

public SetItem ( int slot, ItemStack item ) : void
slot int
item ItemStack
Résultat void

Property Details

Inventory public_oe property

public ItemStack[] Inventory
Résultat ItemStack[]

PlayerController public_oe property

public PlayerController PlayerController
Résultat PlayerController

PlayerInventorySelected public_oe property

public int PlayerInventorySelected
Résultat int