PvpArenaLoadoutSnapshot
One client-thread-owned, immutable PvP Arena loadout observation.
Final classRLPlugins API
public final class PvpArenaLoadoutSnapshotMembers
Methods
- booleanequals(Object)
Whether this and the other object are the same thing.
- intfindInventoryItem(int)
Find inventory item.
- intfirstEmptyInventorySlot()
First empty inventory slot.
- PvpArenaBuildgetBuild()
The build.
- List<Integer>getInventory()
The inventory.
- intgetInventoryItem(int)
The inventory item.
- List<Integer>getInventoryQuantities()
The inventory quantities.
- intgetInventoryQuantity(int)
The inventory quantity.
- PvpArenaSpellbookgetSpellbook()
The spellbook.
- PvpArenaLoadoutSnapshot.StategetState()
The state.
- StringgetStatus()
The status.
- intgetTick()
The tick.
- StringgetWarning()
The warning.
- Map<EquipmentSlot, Integer>getWorn()
The worn.
- intgetWornItem(EquipmentSlot)
The worn item.
- intgetWornQuantity(EquipmentSlot)
The worn quantity.
- inthashCode()
A number Java uses when this is put in a set or a map.
- booleanisAvailable()
Whether available.
- booleanisEmpty()
Whether empty.
- booleanisOpponent()
Whether opponent.
- booleanisOwnLoadoutTab()
Whether own loadout tab.
- booleanisReady()
Whether ready.
- booleanmatches(PvpArenaLoadout)
Matches.
- booleansameLoadout(PvpArenaLoadoutSnapshot)
Compares loadout content, including editor-assigned quantities.
- PvpArenaLoadouttoLoadout()
To loadout.
equals(Object)
public boolean equals(Object other)Whether this and the other object are the same thing.
Parameters
other- Other.
findInventoryItem(int)
public int findInventoryItem(int itemId)Find inventory item.
Parameters
itemId- Item id.
firstEmptyInventorySlot()
public int firstEmptyInventorySlot()First empty inventory slot.
getBuild()
public PvpArenaBuild getBuild()The build.
getInventory()
public List<Integer> getInventory()The inventory.
getInventoryItem(int)
public int getInventoryItem(int slot)The inventory item.
Parameters
slot- Slot.
getInventoryQuantities()
public List<Integer> getInventoryQuantities()The inventory quantities.
getInventoryQuantity(int)
public int getInventoryQuantity(int slot)The inventory quantity.
Parameters
slot- Slot.
getSpellbook()
public PvpArenaSpellbook getSpellbook()The spellbook.
getState()
public PvpArenaLoadoutSnapshot.State getState()The state.
getStatus()
public String getStatus()The status.
getTick()
public int getTick()The tick.
getWarning()
public String getWarning()The warning.
getWorn()
public Map<EquipmentSlot, Integer> getWorn()The worn.
getWornItem(EquipmentSlot)
public int getWornItem(EquipmentSlot slot)The worn item.
Parameters
slot- Slot.
getWornQuantity(EquipmentSlot)
public int getWornQuantity(EquipmentSlot slot)The worn quantity.
Parameters
slot- Slot.
hashCode()
public int hashCode()A number Java uses when this is put in a set or a map.
isAvailable()
public boolean isAvailable()Whether available.
isEmpty()
public boolean isEmpty()Whether empty.
isOpponent()
public boolean isOpponent()Whether opponent.
isOwnLoadoutTab()
public boolean isOwnLoadoutTab()Whether own loadout tab.
isReady()
public boolean isReady()Whether ready.
matches(PvpArenaLoadout)
public boolean matches(PvpArenaLoadout loadout)Matches.
Parameters
loadout- Loadout.
sameLoadout(PvpArenaLoadoutSnapshot)
public boolean sameLoadout(PvpArenaLoadoutSnapshot other)Compares loadout content, including editor-assigned quantities.
Parameters
other- Other.
toLoadout()
public PvpArenaLoadout toLoadout()To loadout.
Also allowed
Every class has these, as in plain Java.
toString