Package ch.njol.skript.aliases
Class AliasesMap
java.lang.Object
ch.njol.skript.aliases.AliasesMap
Stores the aliases.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAlias(AliasesMap.AliasData data)
void
clear()
Clears all data from this aliases map.exactMatch(ItemData item)
Attempts to find an alias that exactly matches the given item.matchAlias(ItemData item)
Attempts to get the closest matching alias for given item.
-
Constructor Details
-
AliasesMap
public AliasesMap()
-
-
Method Details
-
addAlias
-
matchAlias
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
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.
-