Interface IGameruleKeyExtensions

All Known Implementing Classes:
KeyMixins

public interface IGameruleKeyExtensions
Extensions for gamerules.
  • Method Details

    • getCustomCategory

      @Nullable CustomCategory getCustomCategory()
      Get the custom category this instance is registered to.
      Returns:
      If this instance is registered to a custom category then the custom category this instance is registered to; null otherwise.
    • setCustomCategory

      void setCustomCategory(@Nullable CustomCategory customCategory)
      Set the custom category this instance is registered to.
      Parameters:
      customCategory - The custom category this instance should be registered to, if any, or null to clear the custom category registration.