Package net.minecraft.world
Class GameRules.BooleanRule
- Enclosing class:
GameRules
- Mappings:
Namespace Name official civ$aintermediary net/minecraft/class_1928$class_4310named net/minecraft/world/GameRules$BooleanRule
-
Field Summary
FieldsFields inherited from class net.minecraft.world.GameRules.Rule
type -
Constructor Summary
ConstructorsConstructorDescriptionBooleanRule(GameRules.Type<GameRules.BooleanRule> type, boolean initialValue) -
Method Summary
Modifier and TypeMethodDescription(package private) static GameRules.Type<GameRules.BooleanRule>create(boolean initialValue) (package private) static GameRules.Type<GameRules.BooleanRule>create(boolean initialValue, BiConsumer<MinecraftServer, GameRules.BooleanRule> changeCallback) protected voiddeserialize(String value) booleanget()intprotected GameRules.BooleanRulevoidmethod_27326(GameRules.BooleanRule booleanRule, @Nullable MinecraftServer minecraftServer) protected GameRules.BooleanRulevoidset(boolean value, @Nullable MinecraftServer server) protected voidsetFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
-
Field Details
-
value
private boolean value- Mappings:
Namespace Name Mixin selector official bLciv$a;b:Zintermediary field_19411Lnet/minecraft/class_1928$class_4310;field_19411:Znamed valueLnet/minecraft/world/GameRules$BooleanRule;value:Z
-
-
Constructor Details
-
BooleanRule
- Mappings:
Namespace Name Mixin selector official <init>Lciv$a;<init>(Lciv$f;Z)Vintermediary <init>Lnet/minecraft/class_1928$class_4310;<init>(Lnet/minecraft/class_1928$class_4314;Z)Vnamed <init>Lnet/minecraft/world/GameRules$BooleanRule;<init>(Lnet/minecraft/world/GameRules$Type;Z)V
-
-
Method Details
-
create
static GameRules.Type<GameRules.BooleanRule> create(boolean initialValue, BiConsumer<MinecraftServer, GameRules.BooleanRule> changeCallback) - Mappings:
Namespace Name Mixin selector official aLciv$a;a(ZLjava/util/function/BiConsumer;)Lciv$f;intermediary method_20760Lnet/minecraft/class_1928$class_4310;method_20760(ZLjava/util/function/BiConsumer;)Lnet/minecraft/class_1928$class_4314;named createLnet/minecraft/world/GameRules$BooleanRule;create(ZLjava/util/function/BiConsumer;)Lnet/minecraft/world/GameRules$Type;
-
create
- Mappings:
Namespace Name Mixin selector official aLciv$a;a(Z)Lciv$f;intermediary method_20759Lnet/minecraft/class_1928$class_4310;method_20759(Z)Lnet/minecraft/class_1928$class_4314;named createLnet/minecraft/world/GameRules$BooleanRule;create(Z)Lnet/minecraft/world/GameRules$Type;
-
setFromArgument
protected void setFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Specified by:
setFromArgumentin classGameRules.Rule<GameRules.BooleanRule>- Mappings:
Namespace Name Mixin selector official aLciv$g;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Vintermediary method_20776Lnet/minecraft/class_1928$class_4315;method_20776(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Vnamed setFromArgumentLnet/minecraft/world/GameRules$Rule;setFromArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)V
-
get
public boolean get()- Mappings:
Namespace Name Mixin selector official aLciv$a;a()Zintermediary method_20753Lnet/minecraft/class_1928$class_4310;method_20753()Znamed getLnet/minecraft/world/GameRules$BooleanRule;get()Z
-
set
- Mappings:
Namespace Name Mixin selector official aLciv$a;a(ZLnet/minecraft/server/MinecraftServer;)Vintermediary method_20758Lnet/minecraft/class_1928$class_4310;method_20758(ZLnet/minecraft/server/MinecraftServer;)Vnamed setLnet/minecraft/world/GameRules$BooleanRule;set(ZLnet/minecraft/server/MinecraftServer;)V
-
serialize
- Specified by:
serializein classGameRules.Rule<GameRules.BooleanRule>- Mappings:
Namespace Name Mixin selector official bLciv$g;b()Ljava/lang/String;intermediary method_20779Lnet/minecraft/class_1928$class_4315;method_20779()Ljava/lang/String;named serializeLnet/minecraft/world/GameRules$Rule;serialize()Ljava/lang/String;
-
deserialize
- Specified by:
deserializein classGameRules.Rule<GameRules.BooleanRule>- Mappings:
Namespace Name Mixin selector official aLciv$g;a(Ljava/lang/String;)Vintermediary method_20777Lnet/minecraft/class_1928$class_4315;method_20777(Ljava/lang/String;)Vnamed deserializeLnet/minecraft/world/GameRules$Rule;deserialize(Ljava/lang/String;)V
-
getCommandResult
public int getCommandResult()- Specified by:
getCommandResultin classGameRules.Rule<GameRules.BooleanRule>- Mappings:
Namespace Name Mixin selector official cLciv$g;c()Iintermediary method_20781Lnet/minecraft/class_1928$class_4315;method_20781()Inamed getCommandResultLnet/minecraft/world/GameRules$Rule;getCommandResult()I
-
method_20761
- Mappings:
Namespace Name Mixin selector official dLciv$a;d()Lciv$a;intermediary method_20761Lnet/minecraft/class_1928$class_4310;method_20761()Lnet/minecraft/class_1928$class_4310;named method_20761Lnet/minecraft/world/GameRules$BooleanRule;method_20761()Lnet/minecraft/world/GameRules$BooleanRule;
-
method_27327
- Mappings:
Namespace Name Mixin selector official eLciv$a;e()Lciv$a;intermediary method_27327Lnet/minecraft/class_1928$class_4310;method_27327()Lnet/minecraft/class_1928$class_4310;named method_27327Lnet/minecraft/world/GameRules$BooleanRule;method_27327()Lnet/minecraft/world/GameRules$BooleanRule;
-
method_27326
public void method_27326(GameRules.BooleanRule booleanRule, @Nullable @Nullable MinecraftServer minecraftServer) - Mappings:
Namespace Name Mixin selector official aLciv$a;a(Lciv$a;Lnet/minecraft/server/MinecraftServer;)Vintermediary method_27326Lnet/minecraft/class_1928$class_4310;method_27326(Lnet/minecraft/class_1928$class_4310;Lnet/minecraft/server/MinecraftServer;)Vnamed method_27326Lnet/minecraft/world/GameRules$BooleanRule;method_27326(Lnet/minecraft/world/GameRules$BooleanRule;Lnet/minecraft/server/MinecraftServer;)V
-