Table of Contents

Class Ammo

Namespace
Exiled.API.Features.Items
Assembly
Exiled.API.dll

A wrapper class for InventorySystem.Items.Firearms.Ammo.AmmoItem.

public class Ammo : Item, IWrapper<ItemBase>, IWrapper<AmmoItem>
Inheritance
Ammo
Implements
IWrapper<ItemBase>
IWrapper<AmmoItem>
Inherited Members
Extension Methods

Constructors

Ammo(AmmoItem)

Initializes a new instance of the Ammo class.

public Ammo(AmmoItem itemBase)

Parameters

itemBase AmmoItem

The base InventorySystem.Items.Firearms.Ammo.AmmoItem class.

Fields

AmmoLimit

Gets the absolute maximum amount of ammo that may be held at one time, if ammo is forcefully given to the player (regardless of worn armor or server configuration).

For accessing the maximum amount of ammo that may be held based on worn armor and server settings, see GetAmmoLimit(AmmoType, bool).

public const ushort AmmoLimit = 65535

Field Value

ushort

Properties

Base

Gets the InventorySystem.Items.Firearms.Ammo.AmmoItem that this class is encapsulating.

public AmmoItem Base { get; }

Property Value

AmmoItem

Methods

Clone()

Clones current Ammo object.

public override Item Clone()

Returns

Item

New Ammo object.