public class DamageSourcePredicate
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DamageSourcePredicate.Builder |
Modifier and Type | Field and Description |
---|---|
static DamageSourcePredicate |
ANY |
private java.lang.Boolean |
bypassesArmor |
private java.lang.Boolean |
bypassesInvulnerability |
private java.lang.Boolean |
bypassesMagic |
private EntityPredicate |
directEntity |
private java.lang.Boolean |
field_217953_i |
private java.lang.Boolean |
isExplosion |
private java.lang.Boolean |
isFire |
private java.lang.Boolean |
isMagic |
private java.lang.Boolean |
isProjectile |
private EntityPredicate |
sourceEntity |
Constructor and Description |
---|
DamageSourcePredicate(java.lang.Boolean p_i50810_1_,
java.lang.Boolean p_i50810_2_,
java.lang.Boolean p_i50810_3_,
java.lang.Boolean p_i50810_4_,
java.lang.Boolean p_i50810_5_,
java.lang.Boolean p_i50810_6_,
java.lang.Boolean p_i50810_7_,
java.lang.Boolean p_i50810_8_,
EntityPredicate p_i50810_9_,
EntityPredicate p_i50810_10_) |
Modifier and Type | Method and Description |
---|---|
private void |
addProperty(com.google.gson.JsonObject obj,
java.lang.String key,
java.lang.Boolean value) |
static DamageSourcePredicate |
deserialize(com.google.gson.JsonElement element) |
boolean |
func_217952_a(ServerWorld p_217952_1_,
Vec3d p_217952_2_,
DamageSource p_217952_3_) |
private static java.lang.Boolean |
optionalBoolean(com.google.gson.JsonObject object,
java.lang.String memberName) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ServerPlayerEntity player,
DamageSource source) |
public static final DamageSourcePredicate ANY
private final java.lang.Boolean isProjectile
private final java.lang.Boolean isExplosion
private final java.lang.Boolean bypassesArmor
private final java.lang.Boolean bypassesInvulnerability
private final java.lang.Boolean bypassesMagic
private final java.lang.Boolean isFire
private final java.lang.Boolean isMagic
private final java.lang.Boolean field_217953_i
private final EntityPredicate directEntity
private final EntityPredicate sourceEntity
public DamageSourcePredicate(@Nullable java.lang.Boolean p_i50810_1_, @Nullable java.lang.Boolean p_i50810_2_, @Nullable java.lang.Boolean p_i50810_3_, @Nullable java.lang.Boolean p_i50810_4_, @Nullable java.lang.Boolean p_i50810_5_, @Nullable java.lang.Boolean p_i50810_6_, @Nullable java.lang.Boolean p_i50810_7_, @Nullable java.lang.Boolean p_i50810_8_, EntityPredicate p_i50810_9_, EntityPredicate p_i50810_10_)
public boolean test(ServerPlayerEntity player, DamageSource source)
public boolean func_217952_a(ServerWorld p_217952_1_, Vec3d p_217952_2_, DamageSource p_217952_3_)
public static DamageSourcePredicate deserialize(@Nullable com.google.gson.JsonElement element)
@Nullable private static java.lang.Boolean optionalBoolean(com.google.gson.JsonObject object, java.lang.String memberName)
public com.google.gson.JsonElement serialize()
private void addProperty(com.google.gson.JsonObject obj, java.lang.String key, @Nullable java.lang.Boolean value)