public class EntityPredicate
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static EntityPredicate |
ANY |
private DistancePredicate |
distance |
private MobEffectsPredicate |
effects |
private LocationPredicate |
location |
private NBTPredicate |
nbt |
private ResourceLocation |
type |
| 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
private final ResourceLocation type
private final DistancePredicate distance
private final LocationPredicate location
private final MobEffectsPredicate effects
private final NBTPredicate nbt
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)