Class EntityFlagsPredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.EntityFlagsPredicate
-
public class EntityFlagsPredicate extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityFlagsPredicate.Builder
-
Field Summary
Fields Modifier and Type Field Description static EntityFlagsPredicate
ANY
private java.lang.Boolean
isBaby
private java.lang.Boolean
isCrouching
private java.lang.Boolean
isOnFire
private java.lang.Boolean
isSprinting
private java.lang.Boolean
isSwimming
-
Constructor Summary
Constructors Constructor Description EntityFlagsPredicate(java.lang.Boolean p_i50808_1_, java.lang.Boolean p_i50808_2_, java.lang.Boolean p_i50808_3_, java.lang.Boolean p_i50808_4_, java.lang.Boolean p_i50808_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addOptionalBoolean(com.google.gson.JsonObject p_217978_1_, java.lang.String p_217978_2_, java.lang.Boolean p_217978_3_)
static EntityFlagsPredicate
fromJson(com.google.gson.JsonElement p_217975_0_)
private static java.lang.Boolean
getOptionalBoolean(com.google.gson.JsonObject p_217977_0_, java.lang.String p_217977_1_)
boolean
matches(Entity p_217974_1_)
com.google.gson.JsonElement
serializeToJson()
-
-
-
Field Detail
-
ANY
public static final EntityFlagsPredicate ANY
-
isOnFire
@Nullable private final java.lang.Boolean isOnFire
-
isCrouching
@Nullable private final java.lang.Boolean isCrouching
-
isSprinting
@Nullable private final java.lang.Boolean isSprinting
-
isSwimming
@Nullable private final java.lang.Boolean isSwimming
-
isBaby
@Nullable private final java.lang.Boolean isBaby
-
-
Method Detail
-
matches
public boolean matches(Entity p_217974_1_)
-
getOptionalBoolean
@Nullable private static java.lang.Boolean getOptionalBoolean(com.google.gson.JsonObject p_217977_0_, java.lang.String p_217977_1_)
-
fromJson
public static EntityFlagsPredicate fromJson(@Nullable com.google.gson.JsonElement p_217975_0_)
-
addOptionalBoolean
private void addOptionalBoolean(com.google.gson.JsonObject p_217978_1_, java.lang.String p_217978_2_, @Nullable java.lang.Boolean p_217978_3_)
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
-