Player.container

Returns the the current container the player is viewing.

class Player
final @property @safe
container
()

Examples

if(player.container !is null) {
   player.container.inventory = Items.BEETROOT;
}

Meta