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