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 |
hasArguments(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)
@Nullable public static <T extends Entity> T matchOneEntity(ICommandSender sender, java.lang.String token, java.lang.Class<? extends T> targetClass)
@Nullable public static ITextComponent matchEntitiesToTextComponent(ICommandSender sender, java.lang.String token)
public static <T extends Entity> java.util.List<T> matchEntities(ICommandSender sender, java.lang.String token, java.lang.Class<? extends T> targetClass)
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)
public static boolean hasArguments(java.lang.String selectorStr)