Class AliasesMap

java.lang.Object
ch.njol.skript.aliases.AliasesMap

public class AliasesMap extends Object
Stores the aliases.
  • Constructor Details

    • AliasesMap

      public AliasesMap()
  • Method Details

    • addAlias

      public void addAlias(AliasesMap.AliasData data)
    • matchAlias

      public AliasesMap.Match matchAlias(ItemData item)
      Attempts to get the closest matching alias for given item.
      Parameters:
      item - Item to find closest alias for.
      Returns:
      The match, containing the alias data and match quality.
    • exactMatch

      public AliasesMap.Match exactMatch(ItemData item)
      Attempts to find an alias that exactly matches the given item.
      Parameters:
      item - Item to match.
      Returns:
      An exact match, or no match.
    • clear

      public void clear()
      Clears all data from this aliases map.