Interface ILoadCondition

All Known Implementing Classes:
And, ModLoaded, Not, OnPlatform, Or, RegistryContains

public interface ILoadCondition
Load conditions allow JSON entries in data/resource packs to define optional conditions in order for them to load. For example a recipe file can prevent loading if a required item is not registered.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Tests if the condition has been met or not.
    Gets the type of the condition.
  • Method Details

    • allowLoading

      boolean allowLoading()
      Tests if the condition has been met or not.
      Returns:
      Has the condition been met?
    • getType

      ConditionType getType()
      Gets the type of the condition. This is required for serializing conditions.
      Returns:
      The type of the condition.