类 GameRules.BooleanRule
- java.lang.Object
-
- net.minecraft.world.GameRules.Rule<GameRules.BooleanRule>
-
- net.minecraft.world.GameRules.BooleanRule
-
- 封闭类:
- GameRules
public static class GameRules.BooleanRule extends GameRules.Rule<GameRules.BooleanRule>
- Mappings:
Namespace Name official bvn$aintermediary net/minecraft/class_1928$class_4310named net/minecraft/world/GameRules$BooleanRule
-
-
字段概要
字段 修饰符和类型 字段 说明 private booleanvalue-
从类继承的字段 net.minecraft.world.GameRules.Rule
type
-
-
构造器概要
构造器 构造器 说明 BooleanRule(GameRules.Type<GameRules.BooleanRule> type, boolean initialValue)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 protected GameRules.BooleanRulecopy()private static GameRules.Type<GameRules.BooleanRule>create(boolean initialValue)private static GameRules.Type<GameRules.BooleanRule>create(boolean initialValue, BiConsumer<MinecraftServer,GameRules.BooleanRule> changeCallback)protected voiddeserialize(String value)booleanget()intgetCommandResult()protected GameRules.BooleanRulegetThis()Stringserialize()voidset(boolean value, @Nullable MinecraftServer server)protected voidsetFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)voidsetValue(GameRules.BooleanRule booleanRule, @Nullable MinecraftServer minecraftServer)-
从类继承的方法 net.minecraft.world.GameRules.Rule
changed, set, toString
-
-
-
-
构造器详细资料
-
BooleanRule
public BooleanRule(GameRules.Type<GameRules.BooleanRule> type, boolean initialValue)
- Mappings:
Namespace Name Mixin selector official <init>Lbvn$a;<init>(Lbvn$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
-
-
方法详细资料
-
create
private static GameRules.Type<GameRules.BooleanRule> create(boolean initialValue, BiConsumer<MinecraftServer,GameRules.BooleanRule> changeCallback)
- Mappings:
Namespace Name Mixin selector official bLbvn$a;b(ZLjava/util/function/BiConsumer;)Lbvn$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
private static GameRules.Type<GameRules.BooleanRule> create(boolean initialValue)
- Mappings:
Namespace Name Mixin selector official bLbvn$a;b(Z)Lbvn$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)
- 指定者:
setFromArgument在类中GameRules.Rule<GameRules.BooleanRule>- 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 boolean get()
- Mappings:
Namespace Name Mixin selector official aLbvn$a;a()Zintermediary method_20753Lnet/minecraft/class_1928$class_4310;method_20753()Znamed getLnet/minecraft/world/GameRules$BooleanRule;get()Z
-
set
public void set(boolean value, @Nullable @Nullable MinecraftServer server)- Mappings:
Namespace Name Mixin selector official aLbvn$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
public String serialize()
- 指定者:
serialize在类中GameRules.Rule<GameRules.BooleanRule>- 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.BooleanRule>- 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
-
getCommandResult
public int getCommandResult()
- 指定者:
getCommandResult在类中GameRules.Rule<GameRules.BooleanRule>- 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.BooleanRule getThis()
- 指定者:
getThis在类中GameRules.Rule<GameRules.BooleanRule>- Mappings:
Namespace Name Mixin selector official dLbvn$a;d()Lbvn$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
protected GameRules.BooleanRule copy()
- 指定者:
copy在类中GameRules.Rule<GameRules.BooleanRule>- Mappings:
Namespace Name Mixin selector official eLbvn$a;e()Lbvn$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)
- 指定者:
setValue在类中GameRules.Rule<GameRules.BooleanRule>- Mappings:
Namespace Name Mixin selector official aLbvn$a;a(Lbvn$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
-
-