public class EntityPredicate
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EntityPredicate.Builder |
Modifier and Type | Field and Description |
---|---|
static EntityPredicate |
ANY |
static EntityPredicate[] |
ANY_ARRAY |
Modifier and Type | Method and Description |
---|---|
static EntityPredicate |
deserialize(com.google.gson.JsonElement element) |
static EntityPredicate[] |
deserializeArray(com.google.gson.JsonElement array) |
com.google.gson.JsonElement |
serialize() |
static com.google.gson.JsonElement |
serializeArray(EntityPredicate[] predicates) |
boolean |
test(EntityPlayerMP player,
Entity entity) |
public static final EntityPredicate ANY
public static final EntityPredicate[] ANY_ARRAY
public boolean test(EntityPlayerMP player, @Nullable Entity entity)
public static EntityPredicate deserialize(@Nullable com.google.gson.JsonElement element)
public static EntityPredicate[] deserializeArray(@Nullable com.google.gson.JsonElement array)
public com.google.gson.JsonElement serialize()
public static com.google.gson.JsonElement serializeArray(EntityPredicate[] predicates)