Package net.minecraft.world
Class GameRules.BooleanRule
- Enclosing class:
GameRules
- Mappings:
Namespace Name named net/minecraft/world/GameRules$BooleanRule
intermediary net/minecraft/class_1928$class_4310
official dbv$a
-
Field Summary
Fields inherited from class net.minecraft.world.GameRules.Rule
type
-
Constructor Summary
ConstructorDescriptionBooleanRule
(GameRules.Type<GameRules.BooleanRule> type, boolean initialValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected GameRules.BooleanRule
copy()
(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 void
deserialize
(String value) boolean
get()
int
protected GameRules.BooleanRule
getThis()
void
set
(boolean value, @Nullable MinecraftServer server) protected void
setFromArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) void
setValue
(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 named value
Lnet/minecraft/world/GameRules$BooleanRule;value:Z
intermediary field_19411
Lnet/minecraft/class_1928$class_4310;field_19411:Z
official b
Ldbv$a;b:Z
-
-
Constructor Details
-
BooleanRule
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/GameRules$BooleanRule;<init>(Lnet/minecraft/world/GameRules$Type;Z)V
intermediary <init>
Lnet/minecraft/class_1928$class_4310;<init>(Lnet/minecraft/class_1928$class_4314;Z)V
official <init>
Ldbv$a;<init>(Ldbv$f;Z)V
-
-
Method Details
-
create
static GameRules.Type<GameRules.BooleanRule> create(boolean initialValue, BiConsumer<MinecraftServer, GameRules.BooleanRule> changeCallback) - Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/world/GameRules$BooleanRule;create(ZLjava/util/function/BiConsumer;)Lnet/minecraft/world/GameRules$Type;
intermediary method_20760
Lnet/minecraft/class_1928$class_4310;method_20760(ZLjava/util/function/BiConsumer;)Lnet/minecraft/class_1928$class_4314;
official a
Ldbv$a;a(ZLjava/util/function/BiConsumer;)Ldbv$f;
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/world/GameRules$BooleanRule;create(Z)Lnet/minecraft/world/GameRules$Type;
intermediary method_20759
Lnet/minecraft/class_1928$class_4310;method_20759(Z)Lnet/minecraft/class_1928$class_4314;
official a
Ldbv$a;a(Z)Ldbv$f;
-
setFromArgument
protected void setFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Specified by:
setFromArgument
in classGameRules.Rule<GameRules.BooleanRule>
- Mappings:
Namespace Name Mixin selector named setFromArgument
Lnet/minecraft/world/GameRules$Rule;setFromArgument(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
official a
Ldbv$g;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)V
-
get
public boolean get()- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/world/GameRules$BooleanRule;get()Z
intermediary method_20753
Lnet/minecraft/class_1928$class_4310;method_20753()Z
official a
Ldbv$a;a()Z
-
set
- Mappings:
Namespace Name Mixin selector named set
Lnet/minecraft/world/GameRules$BooleanRule;set(ZLnet/minecraft/server/MinecraftServer;)V
intermediary method_20758
Lnet/minecraft/class_1928$class_4310;method_20758(ZLnet/minecraft/server/MinecraftServer;)V
official a
Ldbv$a;a(ZLnet/minecraft/server/MinecraftServer;)V
-
serialize
- Specified by:
serialize
in classGameRules.Rule<GameRules.BooleanRule>
- Mappings:
Namespace Name Mixin selector named serialize
Lnet/minecraft/world/GameRules$Rule;serialize()Ljava/lang/String;
intermediary method_20779
Lnet/minecraft/class_1928$class_4315;method_20779()Ljava/lang/String;
official b
Ldbv$g;b()Ljava/lang/String;
-
deserialize
- Specified by:
deserialize
in classGameRules.Rule<GameRules.BooleanRule>
- Mappings:
Namespace Name Mixin selector named deserialize
Lnet/minecraft/world/GameRules$Rule;deserialize(Ljava/lang/String;)V
intermediary method_20777
Lnet/minecraft/class_1928$class_4315;method_20777(Ljava/lang/String;)V
official a
Ldbv$g;a(Ljava/lang/String;)V
-
getCommandResult
public int getCommandResult()- Specified by:
getCommandResult
in classGameRules.Rule<GameRules.BooleanRule>
- Mappings:
Namespace Name Mixin selector named getCommandResult
Lnet/minecraft/world/GameRules$Rule;getCommandResult()I
intermediary method_20781
Lnet/minecraft/class_1928$class_4315;method_20781()I
official c
Ldbv$g;c()I
-
getThis
- Specified by:
getThis
in classGameRules.Rule<GameRules.BooleanRule>
- Mappings:
Namespace Name Mixin selector named getThis
Lnet/minecraft/world/GameRules$BooleanRule;getThis()Lnet/minecraft/world/GameRules$BooleanRule;
intermediary method_20761
Lnet/minecraft/class_1928$class_4310;method_20761()Lnet/minecraft/class_1928$class_4310;
official d
Ldbv$a;d()Ldbv$a;
-
copy
- Specified by:
copy
in classGameRules.Rule<GameRules.BooleanRule>
- Mappings:
Namespace Name Mixin selector named copy
Lnet/minecraft/world/GameRules$BooleanRule;copy()Lnet/minecraft/world/GameRules$BooleanRule;
intermediary method_27327
Lnet/minecraft/class_1928$class_4310;method_27327()Lnet/minecraft/class_1928$class_4310;
official e
Ldbv$a;e()Ldbv$a;
-
setValue
public void setValue(GameRules.BooleanRule booleanRule, @Nullable @Nullable MinecraftServer minecraftServer) - Specified by:
setValue
in classGameRules.Rule<GameRules.BooleanRule>
- Mappings:
Namespace Name Mixin selector named setValue
Lnet/minecraft/world/GameRules$BooleanRule;setValue(Lnet/minecraft/world/GameRules$BooleanRule;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
official a
Ldbv$a;a(Ldbv$a;Lnet/minecraft/server/MinecraftServer;)V
-