Class EquipmentLoadoutEvent


  • public class EquipmentLoadoutEvent
    extends AbstractEvent
    Represents an event for setting up an equipment loadout.
    • Constructor Detail

      • EquipmentLoadoutEvent

        public EquipmentLoadoutEvent​(EquipmentLoadout loadout)
    • Method Detail

      • getWeightedSlotOrder

        public static java.util.List<EquipmentSlot> getWeightedSlotOrder()
        Returns a list of EquipmentSlots in a weighted order based on their associated weights.
        Returns:
        a list of EquipmentSlots in a weighted order
      • weightedSort

        public static void weightedSort​(java.util.LinkedHashMap<EquipmentSlot,​java.lang.Integer> weightedMap)
        Sorts a given LinkedHashMap of EquipmentSlots based on their weights.
        Parameters:
        weightedMap - a LinkedHashMap of EquipmentSlots and their corresponding weights.
      • setUseBuyingTeleport

        public EquipmentLoadoutEvent setUseBuyingTeleport​(boolean useBuyingTeleport)