Interface PackRegistrationContext.Callback

Enclosing interface:
PackRegistrationContext
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PackRegistrationContext.Callback
Functional interface to be implemented on callbacks for ResourceLoader.getRegisterDefaultPackEvent() and ResourceLoader.getRegisterTopPackEvent().
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when resource packs are being registered, giving the option to register a resource pack.
  • Method Details

    • onRegisterPack

      void onRegisterPack(@NotNull @NotNull PackRegistrationContext context)
      Called when resource packs are being registered, giving the option to register a resource pack.
      Parameters:
      context - the context