java.lang.Object
com.glektarssza.expandedgamerules.mixins.vanilla.gamerules.KeyMixins
All Implemented Interfaces:
IGameruleKeyExtensions

public abstract class KeyMixins extends Object implements IGameruleKeyExtensions
A mixin into the GameRules.Key class which extends it which the functionality defined in the IGameruleKeyExtensions interface.
  • Constructor Details

    • KeyMixins

      public KeyMixins()
  • Method Details

    • getCustomCategory

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

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