Interface SelectorType
- All Superinterfaces:
DefaultedRegistryValue
Represents a type of selector that Minecraft supplies.
-
Method Summary
Modifier and TypeMethodDescriptionGets the token that represents this selector type when used in commands.Creates aSelector.Builderbased on the defaults for thisSelectorType.Creates aSelectorbased on the defaults for thisSelectorType.Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
Method Details
-
selectorToken
String selectorToken()Gets the token that represents this selector type when used in commands. The string will start with @.- Returns:
- The selector token.
-
toSelector
Selector toSelector()Creates aSelectorbased on the defaults for thisSelectorType.- Returns:
- The
Selector
-
toBuilder
Selector.Builder toBuilder()Creates aSelector.Builderbased on the defaults for thisSelectorType.- Returns:
- The
Selector.Builder
-