public static class GameRules.IntRule extends GameRules.Rule<GameRules.IntRule>
| Modifier and Type | Field and Description |
|---|---|
private int |
value |
type| Constructor and Description |
|---|
IntRule(GameRules.RuleType<GameRules.IntRule> rule,
int initialValue) |
| Modifier and Type | Method and Description |
|---|---|
private static GameRules.RuleType<GameRules.IntRule> |
create(int initialValue) |
private static GameRules.RuleType<GameRules.IntRule> |
create(int initialValue,
BiConsumer<MinecraftServer,GameRules.IntRule> changeCallback) |
protected void |
deserialize(String value) |
int |
get() |
int |
getCommandResult() |
protected GameRules.IntRule |
getThis() |
boolean |
method_27332(String string) |
void |
method_27337(GameRules.IntRule intRule,
MinecraftServer minecraftServer) |
protected GameRules.IntRule |
method_27338() |
private static int |
parseInt(String string) |
String |
serialize() |
protected void |
setFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
changed, set, toStringpublic IntRule(GameRules.RuleType<GameRules.IntRule> rule, int initialValue)
private static GameRules.RuleType<GameRules.IntRule> create(int initialValue, BiConsumer<MinecraftServer,GameRules.IntRule> changeCallback)
private static GameRules.RuleType<GameRules.IntRule> create(int initialValue)
protected void setFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
setFromArgument in class GameRules.Rule<GameRules.IntRule>public int get()
public String serialize()
serialize in class GameRules.Rule<GameRules.IntRule>protected void deserialize(String value)
deserialize in class GameRules.Rule<GameRules.IntRule>@Environment(value=CLIENT) public boolean method_27332(String string)
private static int parseInt(String string)
public int getCommandResult()
getCommandResult in class GameRules.Rule<GameRules.IntRule>protected GameRules.IntRule getThis()
getThis in class GameRules.Rule<GameRules.IntRule>protected GameRules.IntRule method_27338()
method_27338 in class GameRules.Rule<GameRules.IntRule>public void method_27337(GameRules.IntRule intRule, @Nullable MinecraftServer minecraftServer)
method_27337 in class GameRules.Rule<GameRules.IntRule>