类 GameRules.IntRule
- java.lang.Object
-
- net.minecraft.world.GameRules.Rule<GameRules.IntRule>
-
- net.minecraft.world.GameRules.IntRule
-
- 封闭类:
- GameRules
public static class GameRules.IntRule extends GameRules.Rule<GameRules.IntRule>
- Mappings:
Namespace Name official bvn$dintermediary net/minecraft/class_1928$class_4312named net/minecraft/world/GameRules$IntRule
-
-
字段概要
字段 修饰符和类型 字段 说明 private intvalue-
从类继承的字段 net.minecraft.world.GameRules.Rule
type
-
-
构造器概要
构造器 构造器 说明 IntRule(GameRules.Type<GameRules.IntRule> rule, int initialValue)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected GameRules.IntRulecopy()private static GameRules.Type<GameRules.IntRule>create(int initialValue)private static GameRules.Type<GameRules.IntRule>create(int initialValue, BiConsumer<MinecraftServer,GameRules.IntRule> changeCallback)protected voiddeserialize(String value)intget()intgetCommandResult()protected GameRules.IntRulegetThis()private static intparseInt(String input)Stringserialize()voidset(int value, @Nullable MinecraftServer server)protected voidsetFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)voidsetValue(GameRules.IntRule intRule, @Nullable MinecraftServer minecraftServer)booleanvalidate(String input)Validates that an input is valid for this rule.-
从类继承的方法 net.minecraft.world.GameRules.Rule
changed, set, toString
-
-
-
-
构造器详细资料
-
IntRule
public IntRule(GameRules.Type<GameRules.IntRule> rule, int initialValue)
- Mappings:
Namespace Name Mixin selector official <init>Lbvn$d;<init>(Lbvn$f;I)Vintermediary <init>Lnet/minecraft/class_1928$class_4312;<init>(Lnet/minecraft/class_1928$class_4314;I)Vnamed <init>Lnet/minecraft/world/GameRules$IntRule;<init>(Lnet/minecraft/world/GameRules$Type;I)V
-
-
方法详细资料
-
create
private static GameRules.Type<GameRules.IntRule> create(int initialValue, BiConsumer<MinecraftServer,GameRules.IntRule> changeCallback)
- Mappings:
Namespace Name Mixin selector official aLbvn$d;a(ILjava/util/function/BiConsumer;)Lbvn$f;intermediary method_20766Lnet/minecraft/class_1928$class_4312;method_20766(ILjava/util/function/BiConsumer;)Lnet/minecraft/class_1928$class_4314;named createLnet/minecraft/world/GameRules$IntRule;create(ILjava/util/function/BiConsumer;)Lnet/minecraft/world/GameRules$Type;
-
create
private static GameRules.Type<GameRules.IntRule> create(int initialValue)
- Mappings:
Namespace Name Mixin selector official bLbvn$d;b(I)Lbvn$f;intermediary method_20768Lnet/minecraft/class_1928$class_4312;method_20768(I)Lnet/minecraft/class_1928$class_4314;named createLnet/minecraft/world/GameRules$IntRule;create(I)Lnet/minecraft/world/GameRules$Type;
-
setFromArgument
protected void setFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
- 指定者:
setFromArgument在类中GameRules.Rule<GameRules.IntRule>- Mappings:
Namespace Name Mixin selector official aLbvn$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 int get()
- Mappings:
Namespace Name Mixin selector official aLbvn$d;a()Iintermediary method_20763Lnet/minecraft/class_1928$class_4312;method_20763()Inamed getLnet/minecraft/world/GameRules$IntRule;get()I
-
set
public void set(int value, @Nullable @Nullable MinecraftServer server)- Mappings:
Namespace Name Mixin selector official aLbvn$d;a(ILnet/minecraft/server/MinecraftServer;)Vintermediary method_35236Lnet/minecraft/class_1928$class_4312;method_35236(ILnet/minecraft/server/MinecraftServer;)Vnamed setLnet/minecraft/world/GameRules$IntRule;set(ILnet/minecraft/server/MinecraftServer;)V
-
serialize
public String serialize()
- 指定者:
serialize在类中GameRules.Rule<GameRules.IntRule>- Mappings:
Namespace Name Mixin selector official bLbvn$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
protected void deserialize(String value)
- 指定者:
deserialize在类中GameRules.Rule<GameRules.IntRule>- Mappings:
Namespace Name Mixin selector official aLbvn$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
-
validate
public boolean validate(String input)
Validates that an input is valid for this rule.- Mappings:
Namespace Name Mixin selector official bLbvn$d;b(Ljava/lang/String;)Zintermediary method_27332Lnet/minecraft/class_1928$class_4312;method_27332(Ljava/lang/String;)Znamed validateLnet/minecraft/world/GameRules$IntRule;validate(Ljava/lang/String;)Z
-
parseInt
private static int parseInt(String input)
- Mappings:
Namespace Name Mixin selector official cLbvn$d;c(Ljava/lang/String;)Iintermediary method_20769Lnet/minecraft/class_1928$class_4312;method_20769(Ljava/lang/String;)Inamed parseIntLnet/minecraft/world/GameRules$IntRule;parseInt(Ljava/lang/String;)I
-
getCommandResult
public int getCommandResult()
- 指定者:
getCommandResult在类中GameRules.Rule<GameRules.IntRule>- Mappings:
Namespace Name Mixin selector official cLbvn$g;c()Iintermediary method_20781Lnet/minecraft/class_1928$class_4315;method_20781()Inamed getCommandResultLnet/minecraft/world/GameRules$Rule;getCommandResult()I
-
getThis
protected GameRules.IntRule getThis()
- 指定者:
getThis在类中GameRules.Rule<GameRules.IntRule>- Mappings:
Namespace Name Mixin selector official dLbvn$d;d()Lbvn$d;intermediary method_20770Lnet/minecraft/class_1928$class_4312;method_20770()Lnet/minecraft/class_1928$class_4312;named getThisLnet/minecraft/world/GameRules$IntRule;getThis()Lnet/minecraft/world/GameRules$IntRule;
-
copy
protected GameRules.IntRule copy()
- 指定者:
copy在类中GameRules.Rule<GameRules.IntRule>- Mappings:
Namespace Name Mixin selector official eLbvn$d;e()Lbvn$d;intermediary method_27333Lnet/minecraft/class_1928$class_4312;method_27333()Lnet/minecraft/class_1928$class_4312;named copyLnet/minecraft/world/GameRules$IntRule;copy()Lnet/minecraft/world/GameRules$IntRule;
-
setValue
public void setValue(GameRules.IntRule intRule, @Nullable @Nullable MinecraftServer minecraftServer)
- 指定者:
setValue在类中GameRules.Rule<GameRules.IntRule>- Mappings:
Namespace Name Mixin selector official aLbvn$d;a(Lbvn$d;Lnet/minecraft/server/MinecraftServer;)Vintermediary method_27331Lnet/minecraft/class_1928$class_4312;method_27331(Lnet/minecraft/class_1928$class_4312;Lnet/minecraft/server/MinecraftServer;)Vnamed setValueLnet/minecraft/world/GameRules$IntRule;setValue(Lnet/minecraft/world/GameRules$IntRule;Lnet/minecraft/server/MinecraftServer;)V
-
-