Class SelectorTypes
- java.lang.Object
-
- org.spongepowered.api.command.selector.SelectorTypes
-
public final class SelectorTypes extends Object
AllSelectorType
s available in Minecraft.
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultedRegistryReference<SelectorType>
ALL_ENTITIES
Selects all entities.static DefaultedRegistryReference<SelectorType>
ALL_PLAYERS
Selects all players.static DefaultedRegistryReference<SelectorType>
NEAREST_PLAYER
Selects the nearest player.static DefaultedRegistryReference<SelectorType>
RANDOM_PLAYER
Selects the nearest player.static DefaultedRegistryReference<SelectorType>
SOURCE
Selects the context of the selector, if the context is an entity.
-
-
-
Field Detail
-
ALL_ENTITIES
public static final DefaultedRegistryReference<SelectorType> ALL_ENTITIES
Selects all entities.Equivalent to
@e
.
-
ALL_PLAYERS
public static final DefaultedRegistryReference<SelectorType> ALL_PLAYERS
Selects all players.Equivalent to
@a
.
-
NEAREST_PLAYER
public static final DefaultedRegistryReference<SelectorType> NEAREST_PLAYER
Selects the nearest player.Equivalent to
@p
.
-
RANDOM_PLAYER
public static final DefaultedRegistryReference<SelectorType> RANDOM_PLAYER
Selects the nearest player.Equivalent to
@r
.
-
SOURCE
public static final DefaultedRegistryReference<SelectorType> SOURCE
Selects the context of the selector, if the context is an entity.Equivalent to
@s
.
-
-
Method Detail
-
registry
public static Registry<SelectorType> registry()
-
-