EquipmentProfile
A named equipment selection shared by native plugins.
Final classRLPlugins API
public final class EquipmentProfileMembers
Constructors
- newEquipmentProfile(String, int[], int[], boolean)
Creates a EquipmentProfile.
Methods
- EquipmentProfile.Builderbuilder()
Builder.
- int[]getChargePriority()
Per slot: 0 uses the selected item, 1 prefers lowest charges, 2 highest.
- StringgetGroup()
The group.
- intgetHotkey()
The hotkey.
- intgetItemId(EquipmentSlot)
The item id.
- int[]getItemIds()
The item ids.
- StringgetName()
The name.
- int[]getQuantities()
The quantities.
- boolean[]getWithdrawAll()
The withdraw all.
- booleanisActive()
Whether active.
- booleanisOffensivePrayers()
Whether offensive prayers.
- booleanisSmartEquip()
Whether smart equip.
- booleanisSpec()
Whether spec.
- EquipmentProfile.BuildertoBuilder()
Edit a selection without losing the settings owned by another consuming plugin.
- EquipmentLoadouttoEquipmentLoadout()
Build the ID-based gear selection, accepting charge/degradation variants per slot.
EquipmentProfile(String, int[], int[], boolean)
public EquipmentProfile(String name, int[] itemIds, int[] quantities, boolean offensivePrayers)Creates a EquipmentProfile.
Parameters
name- Name.
itemIds- Item ids.
quantities- Quantities.
offensivePrayers- Offensive prayers.
builder()static
public static EquipmentProfile.Builder builder()Builder.
getChargePriority()
public int[] getChargePriority()Per slot: 0 uses the selected item, 1 prefers lowest charges, 2 highest.
getGroup()
public String getGroup()The group.
getHotkey()
public int getHotkey()The hotkey.
getItemId(EquipmentSlot)
public int getItemId(EquipmentSlot slot)The item id.
Parameters
slot- Slot.
getItemIds()
public int[] getItemIds()The item ids.
getName()
public String getName()The name.
getQuantities()
public int[] getQuantities()The quantities.
getWithdrawAll()
public boolean[] getWithdrawAll()The withdraw all.
isActive()
public boolean isActive()Whether active.
isOffensivePrayers()
public boolean isOffensivePrayers()Whether offensive prayers.
isSmartEquip()
public boolean isSmartEquip()Whether smart equip.
isSpec()
public boolean isSpec()Whether spec.
toBuilder()
public EquipmentProfile.Builder toBuilder()Edit a selection without losing the settings owned by another consuming plugin.
toEquipmentLoadout()
public EquipmentLoadout toEquipmentLoadout()Build the ID-based gear selection, accepting charge/degradation variants per slot.
Also allowed
Every class has these, as in plain Java.
equals, toString