Package net.minecraft.world
Class GameRules.BooleanValue
- java.lang.Object
-
- net.minecraft.world.GameRules.RuleValue<GameRules.BooleanValue>
-
- net.minecraft.world.GameRules.BooleanValue
-
- Enclosing class:
- GameRules
public static class GameRules.BooleanValue extends GameRules.RuleValue<GameRules.BooleanValue>
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
value
-
Fields inherited from class net.minecraft.world.GameRules.RuleValue
type
-
-
Constructor Summary
Constructors Constructor Description BooleanValue(GameRules.RuleType<GameRules.BooleanValue> p_i51535_1_, boolean p_i51535_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GameRules.BooleanValue
copy()
private static GameRules.RuleType<GameRules.BooleanValue>
create(boolean p_223568_0_)
private static GameRules.RuleType<GameRules.BooleanValue>
create(boolean p_223567_0_, java.util.function.BiConsumer<MinecraftServer,GameRules.BooleanValue> p_223567_1_)
protected void
deserialize(java.lang.String p_223553_1_)
boolean
get()
int
getCommandResult()
protected GameRules.BooleanValue
getSelf()
java.lang.String
serialize()
void
set(boolean p_223570_1_, MinecraftServer p_223570_2_)
void
setFrom(GameRules.BooleanValue p_230313_1_, MinecraftServer p_230313_2_)
protected void
updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSource> p_223555_1_, java.lang.String p_223555_2_)
-
Methods inherited from class net.minecraft.world.GameRules.RuleValue
onChanged, setFromArgument, toString
-
-
-
-
Constructor Detail
-
BooleanValue
public BooleanValue(GameRules.RuleType<GameRules.BooleanValue> p_i51535_1_, boolean p_i51535_2_)
-
-
Method Detail
-
create
private static GameRules.RuleType<GameRules.BooleanValue> create(boolean p_223567_0_, java.util.function.BiConsumer<MinecraftServer,GameRules.BooleanValue> p_223567_1_)
-
create
private static GameRules.RuleType<GameRules.BooleanValue> create(boolean p_223568_0_)
-
updateFromArgument
protected void updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSource> p_223555_1_, java.lang.String p_223555_2_)
- Specified by:
updateFromArgument
in classGameRules.RuleValue<GameRules.BooleanValue>
-
get
public boolean get()
-
set
public void set(boolean p_223570_1_, @Nullable MinecraftServer p_223570_2_)
-
serialize
public java.lang.String serialize()
- Specified by:
serialize
in classGameRules.RuleValue<GameRules.BooleanValue>
-
deserialize
protected void deserialize(java.lang.String p_223553_1_)
- Specified by:
deserialize
in classGameRules.RuleValue<GameRules.BooleanValue>
-
getCommandResult
public int getCommandResult()
- Specified by:
getCommandResult
in classGameRules.RuleValue<GameRules.BooleanValue>
-
getSelf
protected GameRules.BooleanValue getSelf()
- Specified by:
getSelf
in classGameRules.RuleValue<GameRules.BooleanValue>
-
copy
protected GameRules.BooleanValue copy()
- Specified by:
copy
in classGameRules.RuleValue<GameRules.BooleanValue>
-
setFrom
public void setFrom(GameRules.BooleanValue p_230313_1_, @Nullable MinecraftServer p_230313_2_)
- Specified by:
setFrom
in classGameRules.RuleValue<GameRules.BooleanValue>
-
-