Class DamageSourcePredicate
java.lang.Object
net.minecraft.advancements.criterion.DamageSourcePredicate
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DamageSourcePredicate
private final Boolean
private final Boolean
private final Boolean
private final EntityPredicate
private final Boolean
private final Boolean
private final Boolean
private final Boolean
private final Boolean
private final EntityPredicate
-
Constructor Summary
ConstructorDescriptionDamageSourcePredicate
(Boolean p_i50810_1_, Boolean p_i50810_2_, Boolean p_i50810_3_, Boolean p_i50810_4_, Boolean p_i50810_5_, Boolean p_i50810_6_, Boolean p_i50810_7_, Boolean p_i50810_8_, EntityPredicate p_i50810_9_, EntityPredicate p_i50810_10_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addOptionally
(com.google.gson.JsonObject p_203992_1_, String p_203992_2_, Boolean p_203992_3_) static DamageSourcePredicate
fromJson
(com.google.gson.JsonElement p_192447_0_) private static Boolean
getOptionalBoolean
(com.google.gson.JsonObject p_192448_0_, String p_192448_1_) boolean
matches
(ServerPlayerEntity p_193418_1_, DamageSource p_193418_2_) boolean
matches
(ServerWorld p_217952_1_, Vector3d p_217952_2_, DamageSource p_217952_3_) com.google.gson.JsonElement
-
Field Details
-
ANY
-
isProjectile
-
isExplosion
-
bypassesArmor
-
bypassesInvulnerability
-
bypassesMagic
-
isFire
-
isMagic
-
isLightning
-
directEntity
-
sourceEntity
-
-
Constructor Details
-
DamageSourcePredicate
public DamageSourcePredicate(@Nullable Boolean p_i50810_1_, @Nullable Boolean p_i50810_2_, @Nullable Boolean p_i50810_3_, @Nullable Boolean p_i50810_4_, @Nullable Boolean p_i50810_5_, @Nullable Boolean p_i50810_6_, @Nullable Boolean p_i50810_7_, @Nullable Boolean p_i50810_8_, EntityPredicate p_i50810_9_, EntityPredicate p_i50810_10_)
-
-
Method Details
-
matches
-
matches
-
fromJson
-
getOptionalBoolean
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
addOptionally
-