Interface RewardType<T extends AdvancementReward>

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

public interface RewardType<T extends AdvancementReward>
Defines the registration metadata and serialization logic for a specific AdvancementReward.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the codec responsible for converting this reward type to and from serialized data formats.
  • Method Details

    • getCodec

      Codec<T> getCodec()
      Retrieves the codec responsible for converting this reward type to and from serialized data formats.
      Returns:
      The Codec instance for reward implementation T.