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 SummaryFieldsFields inherited from class net.minecraft.world.level.GameRules.Valuetype
- 
Constructor SummaryConstructorsConstructorDescriptionBooleanValue(GameRules.Type<GameRules.BooleanValue> p_46221_, boolean p_46222_) 
- 
Method SummaryModifier 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.ValueonChanged, setFromArgument, toString
- 
Field Details- 
valueprivate boolean value
 
- 
- 
Constructor Details- 
BooleanValue
 
- 
- 
Method Details- 
createpublic static GameRules.Type<GameRules.BooleanValue> create(boolean p_46253_, BiConsumer<MinecraftServer, GameRules.BooleanValue> p_46254_) 
- 
create
- 
updateFromArgumentprotected void updateFromArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_46231_, String p_46232_) - Specified by:
- updateFromArgumentin class- GameRules.Value<GameRules.BooleanValue>
 
- 
getpublic boolean get()
- 
set
- 
serialize- Specified by:
- serializein class- GameRules.Value<GameRules.BooleanValue>
 
- 
deserialize- Specified by:
- deserializein class- GameRules.Value<GameRules.BooleanValue>
 
- 
getCommandResultpublic int getCommandResult()- Specified by:
- getCommandResultin class- GameRules.Value<GameRules.BooleanValue>
 
- 
getSelf- Specified by:
- getSelfin class- GameRules.Value<GameRules.BooleanValue>
 
- 
copy- Specified by:
- copyin class- GameRules.Value<GameRules.BooleanValue>
 
- 
setFrom- Specified by:
- setFromin class- GameRules.Value<GameRules.BooleanValue>
 
 
-