Interface ICondition

All Known Implementing Classes:
AndCondition, FalseCondition, ItemExistsCondition, ModLoadedCondition, NotCondition, OrCondition, TagEmptyCondition, TrueCondition

public interface ICondition
  • Field Details

    • CODEC

      static final com.mojang.serialization.Codec<ICondition> CODEC
    • DEFAULT_FIELD

      static final String DEFAULT_FIELD
      See Also:
    • OPTIONAL_FEILD_CODEC

      static final com.mojang.serialization.MapCodec<Optional<ICondition>> OPTIONAL_FEILD_CODEC
    • SAFE_CODEC

      static final com.mojang.serialization.Codec<ICondition> SAFE_CODEC
  • Method Details

    • test

      boolean test(ICondition.IContext context, com.mojang.serialization.DynamicOps<?> ops)
    • codec

      com.mojang.serialization.MapCodec<? extends ICondition> codec()