Class EntityFlagsPredicate

java.lang.Object
net.minecraft.advancements.critereon.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_33690_, @Nullable Boolean p_33691_, @Nullable Boolean p_33692_, @Nullable Boolean p_33693_, @Nullable Boolean p_33694_)
  • Method Details

    • matches

      public boolean matches(Entity p_33697_)
    • getOptionalBoolean

      @Nullable private static Boolean getOptionalBoolean(com.google.gson.JsonObject p_33701_, String p_33702_)
    • fromJson

      public static EntityFlagsPredicate fromJson(@Nullable com.google.gson.JsonElement p_33699_)
    • addOptionalBoolean

      private void addOptionalBoolean(com.google.gson.JsonObject p_33704_, String p_33705_, @Nullable Boolean p_33706_)
    • serializeToJson

      public com.google.gson.JsonElement serializeToJson()