PlayerInventory.held

Sets the slot the entity has in its hand.

  1. Slot held [@property getter]
  2. Slot held [@property setter]
    class PlayerInventory
    @property @safe
    held

Examples

if(player.inventory.held.empty) {
   player.inventory.held = new Items.Apple();
   player.sendMessage("Hey, hold this");
}

Meta