public class EntitySelector
extends java.lang.Object
Constructor and Description |
---|
EntitySelector() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
addArgument(java.lang.String argument) |
static java.util.List<EntityPlayerMP> |
getPlayers(ICommandSender sender,
java.lang.String token) |
static java.util.Map<java.lang.String,java.lang.Integer> |
getScoreMap(java.util.Map<java.lang.String,java.lang.String> params) |
static boolean |
isSelector(java.lang.String selectorStr) |
static boolean |
isSelectorDefault(java.lang.String selectorStr) |
static <T extends Entity> |
matchEntities(ICommandSender sender,
java.lang.String token,
java.lang.Class<? extends T> targetClass) |
static <T extends Entity> |
matchEntitiesDefault(ICommandSender sender,
java.lang.String token,
java.lang.Class<? extends T> targetClass) |
static ITextComponent |
matchEntitiesToTextComponent(ICommandSender sender,
java.lang.String token) |
static boolean |
matchesMultiplePlayers(java.lang.String selectorStr) |
static boolean |
matchesMultiplePlayersDefault(java.lang.String selectorStr) |
static <T extends Entity> |
matchOneEntity(ICommandSender sender,
java.lang.String token,
java.lang.Class<? extends T> targetClass) |
static EntityPlayerMP |
matchOnePlayer(ICommandSender sender,
java.lang.String token) |
public static java.lang.String addArgument(java.lang.String argument)
@Nullable public static EntityPlayerMP matchOnePlayer(ICommandSender sender, java.lang.String token) throws CommandException
CommandException
public static java.util.List<EntityPlayerMP> getPlayers(ICommandSender sender, java.lang.String token) throws CommandException
CommandException
@Nullable public static <T extends Entity> T matchOneEntity(ICommandSender sender, java.lang.String token, java.lang.Class<? extends T> targetClass) throws CommandException
CommandException
@Nullable public static ITextComponent matchEntitiesToTextComponent(ICommandSender sender, java.lang.String token) throws CommandException
CommandException
public static <T extends Entity> java.util.List<T> matchEntities(ICommandSender sender, java.lang.String token, java.lang.Class<? extends T> targetClass) throws CommandException
CommandException
public static <T extends Entity> java.util.List<T> matchEntitiesDefault(ICommandSender sender, java.lang.String token, java.lang.Class<? extends T> targetClass) throws CommandException
CommandException
public static java.util.Map<java.lang.String,java.lang.Integer> getScoreMap(java.util.Map<java.lang.String,java.lang.String> params)
public static boolean matchesMultiplePlayers(java.lang.String selectorStr) throws CommandException
CommandException
public static boolean matchesMultiplePlayersDefault(java.lang.String selectorStr) throws CommandException
CommandException
public static boolean isSelector(java.lang.String selectorStr)
public static boolean isSelectorDefault(java.lang.String selectorStr)