Package net.minecraft.world
Class GameRules.IntRule
- Enclosing class:
GameRules
- Mappings:
Namespace Name named net/minecraft/world/GameRules$IntRule
intermediary net/minecraft/class_1928$class_4312
official dbw$d
-
Field Summary
Fields inherited from class net.minecraft.world.GameRules.Rule
type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected GameRules.IntRule
copy()
(package private) static GameRules.Type
<GameRules.IntRule> create
(int initialValue) (package private) static GameRules.Type
<GameRules.IntRule> create
(int initialValue, int min, int max, BiConsumer<MinecraftServer, GameRules.IntRule> changeCallback) private static GameRules.Type
<GameRules.IntRule> create
(int initialValue, BiConsumer<MinecraftServer, GameRules.IntRule> changeCallback) protected void
deserialize
(String value) int
get()
int
protected GameRules.IntRule
getThis()
private static int
void
set
(int value, @Nullable MinecraftServer server) protected void
setFromArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) void
setValue
(GameRules.IntRule intRule, @Nullable MinecraftServer minecraftServer) boolean
validateAndSet
(String input) Validates that an input is valid for this rule, and sets the rule's value if successful.Methods inherited from class net.minecraft.world.GameRules.Rule
changed, set, toString
-
Field Details
-
value
private int value- Mappings:
Namespace Name Mixin selector named value
Lnet/minecraft/world/GameRules$IntRule;value:I
intermediary field_19412
Lnet/minecraft/class_1928$class_4312;field_19412:I
official b
Ldbw$d;b:I
-
-
Constructor Details
-
IntRule
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/GameRules$IntRule;<init>(Lnet/minecraft/world/GameRules$Type;I)V
intermediary <init>
Lnet/minecraft/class_1928$class_4312;<init>(Lnet/minecraft/class_1928$class_4314;I)V
official <init>
Ldbw$d;<init>(Ldbw$f;I)V
-
-
Method Details
-
create
private static GameRules.Type<GameRules.IntRule> create(int initialValue, BiConsumer<MinecraftServer, GameRules.IntRule> changeCallback) - Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/world/GameRules$IntRule;create(ILjava/util/function/BiConsumer;)Lnet/minecraft/world/GameRules$Type;
intermediary method_20766
Lnet/minecraft/class_1928$class_4312;method_20766(ILjava/util/function/BiConsumer;)Lnet/minecraft/class_1928$class_4314;
official a
Ldbw$d;a(ILjava/util/function/BiConsumer;)Ldbw$f;
-
create
static GameRules.Type<GameRules.IntRule> create(int initialValue, int min, int max, BiConsumer<MinecraftServer, GameRules.IntRule> changeCallback) - Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/world/GameRules$IntRule;create(IIILjava/util/function/BiConsumer;)Lnet/minecraft/world/GameRules$Type;
intermediary method_56115
Lnet/minecraft/class_1928$class_4312;method_56115(IIILjava/util/function/BiConsumer;)Lnet/minecraft/class_1928$class_4314;
official a
Ldbw$d;a(IIILjava/util/function/BiConsumer;)Ldbw$f;
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/world/GameRules$IntRule;create(I)Lnet/minecraft/world/GameRules$Type;
intermediary method_20768
Lnet/minecraft/class_1928$class_4312;method_20768(I)Lnet/minecraft/class_1928$class_4314;
official a
Ldbw$d;a(I)Ldbw$f;
-
setFromArgument
protected void setFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Specified by:
setFromArgument
in classGameRules.Rule<GameRules.IntRule>
- 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
Ldbw$g;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)V
-
get
public int get()- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/world/GameRules$IntRule;get()I
intermediary method_20763
Lnet/minecraft/class_1928$class_4312;method_20763()I
official a
Ldbw$d;a()I
-
set
- Mappings:
Namespace Name Mixin selector named set
Lnet/minecraft/world/GameRules$IntRule;set(ILnet/minecraft/server/MinecraftServer;)V
intermediary method_35236
Lnet/minecraft/class_1928$class_4312;method_35236(ILnet/minecraft/server/MinecraftServer;)V
official a
Ldbw$d;a(ILnet/minecraft/server/MinecraftServer;)V
-
serialize
- Specified by:
serialize
in classGameRules.Rule<GameRules.IntRule>
- 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
Ldbw$g;b()Ljava/lang/String;
-
deserialize
- Specified by:
deserialize
in classGameRules.Rule<GameRules.IntRule>
- 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
Ldbw$g;a(Ljava/lang/String;)V
-
validateAndSet
Validates that an input is valid for this rule, and sets the rule's value if successful.- Returns:
- whether the input is valid
- Mappings:
Namespace Name Mixin selector named validateAndSet
Lnet/minecraft/world/GameRules$IntRule;validateAndSet(Ljava/lang/String;)Z
intermediary method_27332
Lnet/minecraft/class_1928$class_4312;method_27332(Ljava/lang/String;)Z
official b
Ldbw$d;b(Ljava/lang/String;)Z
-
parseInt
- Mappings:
Namespace Name Mixin selector named parseInt
Lnet/minecraft/world/GameRules$IntRule;parseInt(Ljava/lang/String;)I
intermediary method_20769
Lnet/minecraft/class_1928$class_4312;method_20769(Ljava/lang/String;)I
official c
Ldbw$d;c(Ljava/lang/String;)I
-
getCommandResult
public int getCommandResult()- Specified by:
getCommandResult
in classGameRules.Rule<GameRules.IntRule>
- 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
Ldbw$g;c()I
-
getThis
- Specified by:
getThis
in classGameRules.Rule<GameRules.IntRule>
- Mappings:
Namespace Name Mixin selector named getThis
Lnet/minecraft/world/GameRules$IntRule;getThis()Lnet/minecraft/world/GameRules$IntRule;
intermediary method_20770
Lnet/minecraft/class_1928$class_4312;method_20770()Lnet/minecraft/class_1928$class_4312;
official d
Ldbw$d;d()Ldbw$d;
-
copy
- Specified by:
copy
in classGameRules.Rule<GameRules.IntRule>
- Mappings:
Namespace Name Mixin selector named copy
Lnet/minecraft/world/GameRules$IntRule;copy()Lnet/minecraft/world/GameRules$IntRule;
intermediary method_27333
Lnet/minecraft/class_1928$class_4312;method_27333()Lnet/minecraft/class_1928$class_4312;
official e
Ldbw$d;e()Ldbw$d;
-
setValue
public void setValue(GameRules.IntRule intRule, @Nullable @Nullable MinecraftServer minecraftServer) - Specified by:
setValue
in classGameRules.Rule<GameRules.IntRule>
- Mappings:
Namespace Name Mixin selector named setValue
Lnet/minecraft/world/GameRules$IntRule;setValue(Lnet/minecraft/world/GameRules$IntRule;Lnet/minecraft/server/MinecraftServer;)V
intermediary method_27331
Lnet/minecraft/class_1928$class_4312;method_27331(Lnet/minecraft/class_1928$class_4312;Lnet/minecraft/server/MinecraftServer;)V
official a
Ldbw$d;a(Ldbw$d;Lnet/minecraft/server/MinecraftServer;)V
-