public class EntityPredicate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static EntityPredicate |
ANY |
Constructor and Description |
---|
EntityPredicate(ResourceLocation type,
DistancePredicate distance,
LocationPredicate location,
MobEffectsPredicate effects,
NBTPredicate nbt) |
Modifier and Type | Method and Description |
---|---|
static EntityPredicate |
deserialize(com.google.gson.JsonElement element) |
boolean |
test(EntityPlayerMP player,
Entity entity) |
public static final EntityPredicate ANY
public EntityPredicate(@Nullable ResourceLocation type, DistancePredicate distance, LocationPredicate location, MobEffectsPredicate effects, NBTPredicate nbt)
public boolean test(EntityPlayerMP player, @Nullable Entity entity)
public static EntityPredicate deserialize(@Nullable com.google.gson.JsonElement element)