public class DamagePredicate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DamagePredicate |
ANY |
private java.lang.Boolean |
blocked |
private MinMaxBounds |
dealt |
private EntityPredicate |
sourceEntity |
private MinMaxBounds |
taken |
private DamageSourcePredicate |
type |
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
private final MinMaxBounds dealt
private final MinMaxBounds taken
private final EntityPredicate sourceEntity
private final java.lang.Boolean blocked
private final DamageSourcePredicate type
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)