CustomGameRuleCategory

public final class CustomGameRuleCategory

Utility class for creating custom game rule categories outside of the categories Minecraft provides.

Constructors

CustomGameRuleCategory
Link copied to clipboard
void CustomGameRuleCategory(Identifier id, Text name)
Creates a custom game rule category.

Functions

equals
Link copied to clipboard
boolean equals(Object o)
getCategory
Link copied to clipboard
static Optional<CustomGameRuleCategorygetCategory<T extends GameRules.Rule<T>>(GameRules.Key<T> key)
Gets the custom category a game rule key is registered to.
getId
Link copied to clipboard
Identifier getId()
getName
Link copied to clipboard
Text getName()
hashCode
Link copied to clipboard
int hashCode()

Properties

id
Link copied to clipboard
private final Identifier id
name
Link copied to clipboard
private final Text name

Sources

jvm source
Link copied to clipboard