Class GameRulesService
java.lang.Object
net.minecraft.server.jsonrpc.methods.GameRulesService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<GameRulesService.TypedRule> get(MinecraftApi pApi) static GameRulesService.TypedRulegetTypedRule(MinecraftApi pApi, String pName, GameRules.Value<?> pValue) static GameRulesService.TypedRuleupdate(MinecraftApi pApi, GameRulesService.UntypedRule pRule, ClientInfo pClientInfo)
-
Constructor Details
-
GameRulesService
public GameRulesService()
-
-
Method Details
-
get
-
getTypedRule
public static GameRulesService.TypedRule getTypedRule(MinecraftApi pApi, String pName, GameRules.Value<?> pValue) -
update
public static GameRulesService.TypedRule update(MinecraftApi pApi, GameRulesService.UntypedRule pRule, ClientInfo pClientInfo)
-