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
-
Field Summary
Fields inherited from class net.minecraft.world.GameRules.RuleValue
type
-
Constructor Summary
ConstructorDescriptionBooleanValue
(GameRules.RuleType<GameRules.BooleanValue> p_i51535_1_, boolean p_i51535_2_) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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_, BiConsumer<MinecraftServer, GameRules.BooleanValue> p_223567_1_) protected void
deserialize
(String p_223553_1_) boolean
get()
int
protected GameRules.BooleanValue
getSelf()
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_, String p_223555_2_) Methods inherited from class net.minecraft.world.GameRules.RuleValue
onChanged, setFromArgument, toString
-
Field Details
-
value
private boolean value
-
-
Constructor Details
-
BooleanValue
-
-
Method Details
-
create
private static GameRules.RuleType<GameRules.BooleanValue> create(boolean p_223567_0_, BiConsumer<MinecraftServer, GameRules.BooleanValue> p_223567_1_) -
create
-
updateFromArgument
protected void updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSource> p_223555_1_, String p_223555_2_) - Specified by:
updateFromArgument
in classGameRules.RuleValue<GameRules.BooleanValue>
-
get
public boolean get() -
set
-
serialize
- Specified by:
serialize
in classGameRules.RuleValue<GameRules.BooleanValue>
-
deserialize
- Specified by:
deserialize
in classGameRules.RuleValue<GameRules.BooleanValue>
-
getCommandResult
public int getCommandResult()- Specified by:
getCommandResult
in classGameRules.RuleValue<GameRules.BooleanValue>
-
getSelf
- Specified by:
getSelf
in classGameRules.RuleValue<GameRules.BooleanValue>
-
copy
- Specified by:
copy
in classGameRules.RuleValue<GameRules.BooleanValue>
-
setFrom
- Specified by:
setFrom
in classGameRules.RuleValue<GameRules.BooleanValue>
-