CargoHoldAPI.CargoItem
One item in the cargo hold.
ClassRLPlugins API
public class CargoHoldAPI.CargoItemMembers
Constructors
- newCargoHoldAPI.CargoItem(String, int, int, int)
Creates a CargoHoldAPI.CargoItem.
Methods
- intgetId()
The id.
- StringgetName()
The name.
- intgetQuantity()
The quantity.
- intgetSlot()
The slot.
CargoHoldAPI.CargoItem(String, int, int, int)
public CargoHoldAPI.CargoItem(String name, int id, int slot, int quantity)Creates a CargoHoldAPI.CargoItem.
Parameters
name- Name.
id- Id.
slot- Slot.
quantity- Quantity.
getId()
public int getId()The id.
getName()
public String getName()The name.
getQuantity()
public int getQuantity()The quantity.
getSlot()
public int getSlot()The slot.
Also allowed
Every class has these, as in plain Java.
equals, toString