Interface SelectorType
-
- All Superinterfaces:
DefaultedRegistryValue
@CatalogedBy(SelectorTypes.class) public interface SelectorType extends DefaultedRegistryValue
Represents a type of selector that Minecraft supplies.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
selectorToken()
Gets the token that represents this selector type when used in commands.Selector.Builder
toBuilder()
Creates aSelector.Builder
based on the defaults for thisSelectorType
.Selector
toSelector()
Creates aSelector
based on the defaults for thisSelectorType
.-
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
-
-
-
Method Detail
-
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 aSelector
based on the defaults for thisSelectorType
.- Returns:
- The
Selector
-
toBuilder
Selector.Builder toBuilder()
Creates aSelector.Builder
based on the defaults for thisSelectorType
.- Returns:
- The
Selector.Builder
-
-