Interface CriterionType<T extends AdvancementCriterion>

Type Parameters:
T - The specific implementation type of the advancement criterion.

public interface CriterionType<T extends AdvancementCriterion>
Defines the registration type and serialization logic for a specific AdvancementCriterion.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the codec responsible for serializing and deserializing this criterion type.
  • Method Details

    • getCodec

      Codec<T> getCodec()
      Retrieves the codec responsible for serializing and deserializing this criterion type.
      Returns:
      The Codec instance for type T.