Class EntityFlagsPredicate

java.lang.Object
net.minecraft.advancements.criterion.EntityFlagsPredicate

public class EntityFlagsPredicate extends Object
  • Field Details

    • ANY

      public static final EntityFlagsPredicate ANY
    • isOnFire

      @Nullable private final Boolean isOnFire
    • isCrouching

      @Nullable private final Boolean isCrouching
    • isSprinting

      @Nullable private final Boolean isSprinting
    • isSwimming

      @Nullable private final Boolean isSwimming
    • isBaby

      @Nullable private final Boolean isBaby
  • Constructor Details

    • EntityFlagsPredicate

      public EntityFlagsPredicate(@Nullable Boolean p_i50808_1_, @Nullable Boolean p_i50808_2_, @Nullable Boolean p_i50808_3_, @Nullable Boolean p_i50808_4_, @Nullable Boolean p_i50808_5_)
  • Method Details

    • matches

      public boolean matches(Entity p_217974_1_)
    • getOptionalBoolean

      @Nullable private static Boolean getOptionalBoolean(com.google.gson.JsonObject p_217977_0_, 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_, String p_217978_2_, @Nullable Boolean p_217978_3_)
    • serializeToJson

      public com.google.gson.JsonElement serializeToJson()