Search in sources :

Example 1 with SpongeSelectorType

use of org.spongepowered.common.command.selector.SpongeSelectorType in project SpongeCommon by SpongePowered.

the class SpongeRegistryLoaders method selectorType.

public static RegistryLoader<SelectorType> selectorType() {
    return RegistryLoader.of(l -> {
        l.add(SelectorTypes.ALL_ENTITIES, k -> new SpongeSelectorType("@e"));
        l.add(SelectorTypes.ALL_PLAYERS, k -> new SpongeSelectorType("@a"));
        l.add(SelectorTypes.NEAREST_PLAYER, k -> new SpongeSelectorType("@p"));
        l.add(SelectorTypes.RANDOM_PLAYER, k -> new SpongeSelectorType("@r"));
        l.add(SelectorTypes.SOURCE, k -> new SpongeSelectorType("@s"));
    });
}
Also used : SpongeSelectorType(org.spongepowered.common.command.selector.SpongeSelectorType)

Aggregations

SpongeSelectorType (org.spongepowered.common.command.selector.SpongeSelectorType)1