fabric-game-rule-api-v1
/
net.fabricmc.fabric.impl.gamerule
/
EnumRuleCommand
Enum
Rule
Command
public final class
EnumRuleCommand
Content copied to clipboard
Functions
Sources
Functions
executeAndSetEnum
Link copied to clipboard
static int
executeAndSetEnum
<E extends
Enum
<
E
>>(
CommandContext
<
ServerCommandSource
> context,
E
value,
GameRules.Key
<
EnumRule
<
E
>> key)
Content copied to clipboard
register
Link copied to clipboard
static void
register
<E extends
Enum
<
E
>>(
LiteralArgumentBuilder
<
ServerCommandSource
> literalArgumentBuilder,
GameRules.Key
<
EnumRule
<
E
>> key,
EnumRuleType
<
E
> type)
Content copied to clipboard
Sources
jvm source
Link copied to clipboard