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 StringselectorToken()Gets the token that represents this selector type when used in commands.Selector.BuildertoBuilder()Creates aSelector.Builderbased on the defaults for thisSelectorType.SelectortoSelector()Creates aSelectorbased 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 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
-
-