public class DamagePredicate
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DamagePredicate.Builder |
Modifier and Type | Field and Description |
---|---|
static DamagePredicate |
ANY |
private java.lang.Boolean |
blocked |
private MinMaxBounds.FloatBound |
dealt |
private EntityPredicate |
sourceEntity |
private MinMaxBounds.FloatBound |
taken |
private DamageSourcePredicate |
type |
Constructor and Description |
---|
DamagePredicate() |
DamagePredicate(MinMaxBounds.FloatBound p_i49725_1_,
MinMaxBounds.FloatBound p_i49725_2_,
EntityPredicate p_i49725_3_,
java.lang.Boolean p_i49725_4_,
DamageSourcePredicate p_i49725_5_) |
Modifier and Type | Method and Description |
---|---|
static DamagePredicate |
deserialize(com.google.gson.JsonElement element) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ServerPlayerEntity player,
DamageSource source,
float dealt,
float taken,
boolean blocked) |
public static final DamagePredicate ANY
private final MinMaxBounds.FloatBound dealt
private final MinMaxBounds.FloatBound taken
private final EntityPredicate sourceEntity
private final java.lang.Boolean blocked
private final DamageSourcePredicate type
public DamagePredicate()
public DamagePredicate(MinMaxBounds.FloatBound p_i49725_1_, MinMaxBounds.FloatBound p_i49725_2_, EntityPredicate p_i49725_3_, @Nullable java.lang.Boolean p_i49725_4_, DamageSourcePredicate p_i49725_5_)
public boolean test(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked)
public static DamagePredicate deserialize(@Nullable com.google.gson.JsonElement element)
public com.google.gson.JsonElement serialize()