public class EntitySelector
extends java.lang.Object
Constructor and Description |
---|
EntitySelector() |
Modifier and Type | Method and Description |
---|---|
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 <T extends Entity> |
matchEntities(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 <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) |
@Nullable public static EntityPlayerMP matchOnePlayer(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 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 isSelector(java.lang.String selectorStr)