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
Fields inherited from class net.minecraft.world.level.GameRules.Value
type
-
Constructor Summary
ConstructorDescriptionBooleanValue
(GameRules.Type<GameRules.BooleanValue> p_46221_, boolean p_46222_) -
Method Summary
Modifier and TypeMethodDescriptionprotected GameRules.BooleanValue
copy()
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 void
deserialize
(String p_46234_) boolean
get()
int
protected GameRules.BooleanValue
getSelf()
void
set
(boolean p_46247_, MinecraftServer p_46248_) void
setFrom
(GameRules.BooleanValue p_46225_, MinecraftServer p_46226_) protected void
updateFromArgument
(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:
updateFromArgument
in classGameRules.Value<GameRules.BooleanValue>
-
get
public boolean get() -
set
-
serialize
- Specified by:
serialize
in classGameRules.Value<GameRules.BooleanValue>
-
deserialize
- Specified by:
deserialize
in classGameRules.Value<GameRules.BooleanValue>
-
getCommandResult
public int getCommandResult()- Specified by:
getCommandResult
in classGameRules.Value<GameRules.BooleanValue>
-
getSelf
- Specified by:
getSelf
in classGameRules.Value<GameRules.BooleanValue>
-
copy
- Specified by:
copy
in classGameRules.Value<GameRules.BooleanValue>
-
setFrom
- Specified by:
setFrom
in classGameRules.Value<GameRules.BooleanValue>
-