Package net.minecraft.world.level
Class GameRules.BooleanValue
java.lang.Object
net.minecraft.world.level.GameRules.Value<GameRules.BooleanValue>
net.minecraft.world.level.GameRules.BooleanValue
- Enclosing class:
 - GameRules
 
- 
Field Summary
FieldsFields inherited from class net.minecraft.world.level.GameRules.Value
type - 
Constructor Summary
ConstructorsConstructorDescriptionBooleanValue(GameRules.Type<GameRules.BooleanValue> p_46221_, boolean p_46222_)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected GameRules.BooleanValuecopy()static GameRules.Type<GameRules.BooleanValue>create(boolean p_46251_) static GameRules.Type<GameRules.BooleanValue>create(boolean p_46253_, BiConsumer<MinecraftServer, GameRules.BooleanValue> p_46254_) protected voiddeserialize(String p_46234_) booleanget()intprotected GameRules.BooleanValuegetSelf()voidset(boolean p_46247_, MinecraftServer p_46248_) voidsetFrom(GameRules.BooleanValue p_46225_, MinecraftServer p_46226_) protected voidupdateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_46231_, String p_46232_) Methods inherited from class net.minecraft.world.level.GameRules.Value
onChanged, setFromArgument, toString 
- 
Field Details
- 
value
private boolean value 
 - 
 - 
Constructor Details
- 
BooleanValue
 
 - 
 - 
Method Details
- 
create
public static GameRules.Type<GameRules.BooleanValue> create(boolean p_46253_, BiConsumer<MinecraftServer, GameRules.BooleanValue> p_46254_)  - 
create
 - 
updateFromArgument
protected void updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_46231_, String p_46232_) - Specified by:
 updateFromArgumentin classGameRules.Value<GameRules.BooleanValue>
 - 
get
public boolean get() - 
set
 - 
serialize
- Specified by:
 serializein classGameRules.Value<GameRules.BooleanValue>
 - 
deserialize
- Specified by:
 deserializein classGameRules.Value<GameRules.BooleanValue>
 - 
getCommandResult
public int getCommandResult()- Specified by:
 getCommandResultin classGameRules.Value<GameRules.BooleanValue>
 - 
getSelf
- Specified by:
 getSelfin classGameRules.Value<GameRules.BooleanValue>
 - 
copy
- Specified by:
 copyin classGameRules.Value<GameRules.BooleanValue>
 - 
setFrom
- Specified by:
 setFromin classGameRules.Value<GameRules.BooleanValue>
 
 -