Class ArgumentList
- All Implemented Interfaces:
Iterable<String>, Collection<String>, List<String>, SequencedCollection<String>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondelegate()get(int index) booleangetBooleanOrInsert(int index, boolean defaultValue) net.luckperms.api.context.MutableContextSetgetContextOrDefault(int fromIndex, LuckPermsPlugin plugin) net.luckperms.api.context.ImmutableContextSetgetContextOrEmpty(int fromIndex) getDuration(int index) getDurationOrDefault(int index, Duration defaultValue) intgetIntOrDefault(int index, int defaultValue) getLowercase(int index, Predicate<? super String> test) getOrDefault(int index, String defaultValue) intgetPriority(int index) Optional<net.luckperms.api.model.data.TemporaryNodeMergeStrategy> getTemporaryModifierAndRemove(int index) getUserTarget(int index, LuckPermsPlugin plugin, Sender sender) booleanindexOutOfBounds(int index) @NonNull ArgumentListsubList(int fromIndex, int toIndex) Methods inherited from class com.google.common.collect.ForwardingList
add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, set, standardAdd, standardAddAll, standardEquals, standardHashCode, standardIndexOf, standardIterator, standardLastIndexOf, standardListIterator, standardListIterator, standardSubListMethods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRemoveAll, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArrayMethods inherited from class com.google.common.collect.ForwardingObject
toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
add, addAll, addFirst, addLast, clear, contains, containsAll, getFirst, getLast, isEmpty, iterator, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, size, sort, spliterator, toArray, toArray
-
Constructor Details
-
ArgumentList
-
-
Method Details
-
delegate
-
indexOutOfBounds
public boolean indexOutOfBounds(int index) -
get
- Specified by:
getin interfaceList<String>- Overrides:
getin classcom.google.common.collect.ForwardingList<String>- Throws:
IndexOutOfBoundsException
-
getOrDefault
-
subList
-
getIntOrDefault
public int getIntOrDefault(int index, int defaultValue) -
getLowercase
public String getLowercase(int index, Predicate<? super String> test) throws ArgumentException.DetailedUsage - Throws:
ArgumentException.DetailedUsage
-
getBooleanOrInsert
public boolean getBooleanOrInsert(int index, boolean defaultValue) -
getPriority
- Throws:
ArgumentException
-
getUserTarget
-
getDuration
- Throws:
ArgumentException
-
getDurationOrDefault
- Throws:
ArgumentException
-
getTemporaryModifierAndRemove
public Optional<net.luckperms.api.model.data.TemporaryNodeMergeStrategy> getTemporaryModifierAndRemove(int index) -
getContextOrDefault
public net.luckperms.api.context.MutableContextSet getContextOrDefault(int fromIndex, LuckPermsPlugin plugin) throws CommandException - Throws:
CommandException
-
getContextOrEmpty
public net.luckperms.api.context.ImmutableContextSet getContextOrEmpty(int fromIndex)
-