Class DamageSourcePredicate
java.lang.Object
net.minecraft.advancements.critereon.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_25433_, Boolean p_25434_, Boolean p_25435_, Boolean p_25436_, Boolean p_25437_, Boolean p_25438_, Boolean p_25439_, Boolean p_25440_, EntityPredicate p_25441_, EntityPredicate p_25442_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addOptionally
(com.google.gson.JsonObject p_25457_, String p_25458_, Boolean p_25459_) static DamageSourcePredicate
fromJson
(com.google.gson.JsonElement p_25452_) private static Boolean
getOptionalBoolean
(com.google.gson.JsonObject p_25454_, String p_25455_) boolean
matches
(ServerLevel p_25445_, Vec3 p_25446_, DamageSource p_25447_) boolean
matches
(ServerPlayer p_25449_, DamageSource p_25450_) 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_25433_, @Nullable Boolean p_25434_, @Nullable Boolean p_25435_, @Nullable Boolean p_25436_, @Nullable Boolean p_25437_, @Nullable Boolean p_25438_, @Nullable Boolean p_25439_, @Nullable Boolean p_25440_, EntityPredicate p_25441_, EntityPredicate p_25442_)
-
-
Method Details
-
matches
-
matches
-
fromJson
-
getOptionalBoolean
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
addOptionally
-