Package net.minecraft.world
Class GameRules.BooleanRule
- Enclosing class:
- GameRules
- Mappings:
Namespace Name official bwl$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 TypeMethodDescriptionprotected GameRules.BooleanRulecopy()(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.BooleanRulegetThis()voidset(boolean value, @Nullable MinecraftServer server)protected voidsetFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)voidsetValue(GameRules.BooleanRule booleanRule, @Nullable MinecraftServer minecraftServer)Methods inherited from class net.minecraft.world.GameRules.Rule
changed, set, toString
-
Field Details
-
value
private boolean value- Mappings:
Namespace Name Mixin selector official bLbwl$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>Lbwl$a;<init>(Lbwl$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 aLbwl$a;a(ZLjava/util/function/BiConsumer;)Lbwl$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 aLbwl$a;a(Z)Lbwl$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 aLbwl$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 aLbwl$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 aLbwl$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 bLbwl$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 aLbwl$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 cLbwl$g;c()Iintermediary method_20781Lnet/minecraft/class_1928$class_4315;method_20781()Inamed getCommandResultLnet/minecraft/world/GameRules$Rule;getCommandResult()I
-
getThis
- Specified by:
getThisin classGameRules.Rule<GameRules.BooleanRule>- Mappings:
Namespace Name Mixin selector official dLbwl$a;d()Lbwl$a;intermediary method_20761Lnet/minecraft/class_1928$class_4310;method_20761()Lnet/minecraft/class_1928$class_4310;named getThisLnet/minecraft/world/GameRules$BooleanRule;getThis()Lnet/minecraft/world/GameRules$BooleanRule;
-
copy
- Specified by:
copyin classGameRules.Rule<GameRules.BooleanRule>- Mappings:
Namespace Name Mixin selector official eLbwl$a;e()Lbwl$a;intermediary method_27327Lnet/minecraft/class_1928$class_4310;method_27327()Lnet/minecraft/class_1928$class_4310;named copyLnet/minecraft/world/GameRules$BooleanRule;copy()Lnet/minecraft/world/GameRules$BooleanRule;
-
setValue
public void setValue(GameRules.BooleanRule booleanRule, @Nullable @Nullable MinecraftServer minecraftServer)- Specified by:
setValuein classGameRules.Rule<GameRules.BooleanRule>- Mappings:
Namespace Name Mixin selector official aLbwl$a;a(Lbwl$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 setValueLnet/minecraft/world/GameRules$BooleanRule;setValue(Lnet/minecraft/world/GameRules$BooleanRule;Lnet/minecraft/server/MinecraftServer;)V
-