public class DamagePredicate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DamagePredicate |
ANY |
Constructor and Description |
---|
DamagePredicate() |
DamagePredicate(MinMaxBounds dealt,
MinMaxBounds taken,
EntityPredicate sourceEntity,
java.lang.Boolean blocked,
DamageSourcePredicate type) |
Modifier and Type | Method and Description |
---|---|
static DamagePredicate |
deserialize(com.google.gson.JsonElement element) |
boolean |
test(EntityPlayerMP player,
DamageSource source,
float dealt,
float taken,
boolean blocked) |
public static DamagePredicate ANY
public DamagePredicate()
public DamagePredicate(MinMaxBounds dealt, MinMaxBounds taken, EntityPredicate sourceEntity, @Nullable java.lang.Boolean blocked, DamageSourcePredicate type)
public boolean test(EntityPlayerMP player, DamageSource source, float dealt, float taken, boolean blocked)
public static DamagePredicate deserialize(@Nullable com.google.gson.JsonElement element)