Class KeyMixins
java.lang.Object
com.glektarssza.expandedgamerules.mixins.vanilla.gamerules.KeyMixins
- All Implemented Interfaces:
IGameruleKeyExtensions
A mixin into the
GameRules.Key class which
extends it which the functionality defined in the
IGameruleKeyExtensions
interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the custom category this instance is registered to.voidsetCustomCategory(CustomCategory customCategory) Set the custom category this instance is registered to.
-
Constructor Details
-
KeyMixins
public KeyMixins()
-
-
Method Details
-
getCustomCategory
Get the custom category this instance is registered to.- Specified by:
getCustomCategoryin interfaceIGameruleKeyExtensions- Returns:
- If this instance is registered to a custom category then the
custom category this instance is registered to;
nullotherwise.
-
setCustomCategory
Set the custom category this instance is registered to.- Specified by:
setCustomCategoryin interfaceIGameruleKeyExtensions- Parameters:
customCategory- The custom category this instance should be registered to, if any, ornullto clear the custom category registration.
-