Class CustomGameRuleCategory

java.lang.Object
net.fabricmc.fabric.api.gamerule.v1.CustomGameRuleCategory

public final class CustomGameRuleCategory extends Object
Utility class for creating custom game rule categories outside of the categories Minecraft provides.
  • Constructor Details

    • CustomGameRuleCategory

      public CustomGameRuleCategory(Identifier id, Text name)
      Creates a custom game rule category.
      Parameters:
      id - the id of this category
      name - the name of this category
  • Method Details