public class DamageSourcePredicate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DamageSourcePredicate |
ANY |
Constructor and Description |
---|
DamageSourcePredicate() |
DamageSourcePredicate(java.lang.Boolean isProjectile,
java.lang.Boolean isExplosion,
java.lang.Boolean bypassesArmor,
java.lang.Boolean bypassesInvulnerability,
java.lang.Boolean bypassesMagic,
java.lang.Boolean isFire,
java.lang.Boolean isMagic,
EntityPredicate directEntity,
EntityPredicate sourceEntity) |
Modifier and Type | Method and Description |
---|---|
static DamageSourcePredicate |
deserialize(com.google.gson.JsonElement element) |
boolean |
test(EntityPlayerMP player,
DamageSource source) |
public static DamageSourcePredicate ANY
public DamageSourcePredicate()
public DamageSourcePredicate(@Nullable java.lang.Boolean isProjectile, @Nullable java.lang.Boolean isExplosion, @Nullable java.lang.Boolean bypassesArmor, @Nullable java.lang.Boolean bypassesInvulnerability, @Nullable java.lang.Boolean bypassesMagic, @Nullable java.lang.Boolean isFire, @Nullable java.lang.Boolean isMagic, EntityPredicate directEntity, EntityPredicate sourceEntity)
public boolean test(EntityPlayerMP player, DamageSource source)
public static DamageSourcePredicate deserialize(@Nullable com.google.gson.JsonElement element)