Package net.minecraft.world
Class GameRules.BooleanRule
- Enclosing class:
- GameRules
- Mappings:
- Namespace - Name - official - cmi$a- intermediary - net/minecraft/class_1928$class_4310- named - net/minecraft/world/GameRules$BooleanRule
- 
Field SummaryFieldsFields inherited from class net.minecraft.world.GameRules.Ruletype
- 
Constructor SummaryConstructorsConstructorDescriptionBooleanRule(GameRules.Type<GameRules.BooleanRule> type, boolean initialValue) 
- 
Method SummaryModifier 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.Rulechanged, set, toString
- 
Field Details- 
valueprivate boolean value- Mappings:
- Namespace - Name - Mixin selector - official - b- Lcmi$a;b:Z- intermediary - field_19411- Lnet/minecraft/class_1928$class_4310;field_19411:Z- named - value- Lnet/minecraft/world/GameRules$BooleanRule;value:Z
 
 
- 
- 
Constructor Details- 
BooleanRule- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lcmi$a;<init>(Lcmi$f;Z)V- intermediary - <init>- Lnet/minecraft/class_1928$class_4310;<init>(Lnet/minecraft/class_1928$class_4314;Z)V- named - <init>- Lnet/minecraft/world/GameRules$BooleanRule;<init>(Lnet/minecraft/world/GameRules$Type;Z)V
 
 
- 
- 
Method Details- 
createstatic GameRules.Type<GameRules.BooleanRule> create(boolean initialValue, BiConsumer<MinecraftServer, GameRules.BooleanRule> changeCallback) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lcmi$a;a(ZLjava/util/function/BiConsumer;)Lcmi$f;- intermediary - method_20760- Lnet/minecraft/class_1928$class_4310;method_20760(ZLjava/util/function/BiConsumer;)Lnet/minecraft/class_1928$class_4314;- named - create- Lnet/minecraft/world/GameRules$BooleanRule;create(ZLjava/util/function/BiConsumer;)Lnet/minecraft/world/GameRules$Type;
 
- 
create- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcmi$a;a(Z)Lcmi$f;- intermediary - method_20759- Lnet/minecraft/class_1928$class_4310;method_20759(Z)Lnet/minecraft/class_1928$class_4314;- named - create- Lnet/minecraft/world/GameRules$BooleanRule;create(Z)Lnet/minecraft/world/GameRules$Type;
 
- 
setFromArgumentprotected void setFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Specified by:
- setFromArgumentin class- GameRules.Rule<GameRules.BooleanRule>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcmi$g;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)V- intermediary - method_20776- Lnet/minecraft/class_1928$class_4315;method_20776(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)V- named - setFromArgument- Lnet/minecraft/world/GameRules$Rule;setFromArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)V
 
- 
getpublic boolean get()- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcmi$a;a()Z- intermediary - method_20753- Lnet/minecraft/class_1928$class_4310;method_20753()Z- named - get- Lnet/minecraft/world/GameRules$BooleanRule;get()Z
 
- 
set- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcmi$a;a(ZLnet/minecraft/server/MinecraftServer;)V- intermediary - method_20758- Lnet/minecraft/class_1928$class_4310;method_20758(ZLnet/minecraft/server/MinecraftServer;)V- named - set- Lnet/minecraft/world/GameRules$BooleanRule;set(ZLnet/minecraft/server/MinecraftServer;)V
 
- 
serialize- Specified by:
- serializein class- GameRules.Rule<GameRules.BooleanRule>
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lcmi$g;b()Ljava/lang/String;- intermediary - method_20779- Lnet/minecraft/class_1928$class_4315;method_20779()Ljava/lang/String;- named - serialize- Lnet/minecraft/world/GameRules$Rule;serialize()Ljava/lang/String;
 
- 
deserialize- Specified by:
- deserializein class- GameRules.Rule<GameRules.BooleanRule>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcmi$g;a(Ljava/lang/String;)V- intermediary - method_20777- Lnet/minecraft/class_1928$class_4315;method_20777(Ljava/lang/String;)V- named - deserialize- Lnet/minecraft/world/GameRules$Rule;deserialize(Ljava/lang/String;)V
 
- 
getCommandResultpublic int getCommandResult()- Specified by:
- getCommandResultin class- GameRules.Rule<GameRules.BooleanRule>
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lcmi$g;c()I- intermediary - method_20781- Lnet/minecraft/class_1928$class_4315;method_20781()I- named - getCommandResult- Lnet/minecraft/world/GameRules$Rule;getCommandResult()I
 
- 
getThis- Specified by:
- getThisin class- GameRules.Rule<GameRules.BooleanRule>
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lcmi$a;d()Lcmi$a;- intermediary - method_20761- Lnet/minecraft/class_1928$class_4310;method_20761()Lnet/minecraft/class_1928$class_4310;- named - getThis- Lnet/minecraft/world/GameRules$BooleanRule;getThis()Lnet/minecraft/world/GameRules$BooleanRule;
 
- 
copy- Specified by:
- copyin class- GameRules.Rule<GameRules.BooleanRule>
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lcmi$a;e()Lcmi$a;- intermediary - method_27327- Lnet/minecraft/class_1928$class_4310;method_27327()Lnet/minecraft/class_1928$class_4310;- named - copy- Lnet/minecraft/world/GameRules$BooleanRule;copy()Lnet/minecraft/world/GameRules$BooleanRule;
 
- 
setValuepublic void setValue(GameRules.BooleanRule booleanRule, @Nullable @Nullable MinecraftServer minecraftServer) - Specified by:
- setValuein class- GameRules.Rule<GameRules.BooleanRule>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcmi$a;a(Lcmi$a;Lnet/minecraft/server/MinecraftServer;)V- intermediary - method_27326- Lnet/minecraft/class_1928$class_4310;method_27326(Lnet/minecraft/class_1928$class_4310;Lnet/minecraft/server/MinecraftServer;)V- named - setValue- Lnet/minecraft/world/GameRules$BooleanRule;setValue(Lnet/minecraft/world/GameRules$BooleanRule;Lnet/minecraft/server/MinecraftServer;)V
 
 
-