类 GameRules.IntRule

  • 封闭类:
    GameRules

    public static class GameRules.IntRule
    extends GameRules.Rule<GameRules.IntRule>
    Mappings:
    Namespace Name
    official bvn$d
    intermediary net/minecraft/class_1928$class_4312
    named net/minecraft/world/GameRules$IntRule
    • 字段详细资料

      • value

        private int value
        Mappings:
        Namespace Name Mixin selector
        official b Lbvn$d;b:I
        intermediary field_19412 Lnet/minecraft/class_1928$class_4312;field_19412:I
        named value Lnet/minecraft/world/GameRules$IntRule;value:I
    • 构造器详细资料

      • IntRule

        public IntRule​(GameRules.Type<GameRules.IntRule> rule,
                       int initialValue)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbvn$d;<init>(Lbvn$f;I)V
        intermediary <init> Lnet/minecraft/class_1928$class_4312;<init>(Lnet/minecraft/class_1928$class_4314;I)V
        named <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 a Lbvn$d;a(ILjava/util/function/BiConsumer;)Lbvn$f;
        intermediary method_20766 Lnet/minecraft/class_1928$class_4312;method_20766(ILjava/util/function/BiConsumer;)Lnet/minecraft/class_1928$class_4314;
        named create Lnet/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 b Lbvn$d;b(I)Lbvn$f;
        intermediary method_20768 Lnet/minecraft/class_1928$class_4312;method_20768(I)Lnet/minecraft/class_1928$class_4314;
        named create Lnet/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 a Lbvn$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
      • get

        public int get()
        Mappings:
        Namespace Name Mixin selector
        official a Lbvn$d;a()I
        intermediary method_20763 Lnet/minecraft/class_1928$class_4312;method_20763()I
        named get Lnet/minecraft/world/GameRules$IntRule;get()I
      • set

        public void set​(int value,
                        @Nullable
                        @Nullable MinecraftServer server)
        Mappings:
        Namespace Name Mixin selector
        official a Lbvn$d;a(ILnet/minecraft/server/MinecraftServer;)V
        intermediary method_35236 Lnet/minecraft/class_1928$class_4312;method_35236(ILnet/minecraft/server/MinecraftServer;)V
        named set Lnet/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 b Lbvn$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

        protected void deserialize​(String value)
        指定者:
        deserialize 在类中 GameRules.Rule<GameRules.IntRule>
        Mappings:
        Namespace Name Mixin selector
        official a Lbvn$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
      • validate

        public boolean validate​(String input)
        Validates that an input is valid for this rule.
        Mappings:
        Namespace Name Mixin selector
        official b Lbvn$d;b(Ljava/lang/String;)Z
        intermediary method_27332 Lnet/minecraft/class_1928$class_4312;method_27332(Ljava/lang/String;)Z
        named validate Lnet/minecraft/world/GameRules$IntRule;validate(Ljava/lang/String;)Z
      • parseInt

        private static int parseInt​(String input)
        Mappings:
        Namespace Name Mixin selector
        official c Lbvn$d;c(Ljava/lang/String;)I
        intermediary method_20769 Lnet/minecraft/class_1928$class_4312;method_20769(Ljava/lang/String;)I
        named parseInt Lnet/minecraft/world/GameRules$IntRule;parseInt(Ljava/lang/String;)I
      • getCommandResult

        public int getCommandResult()
        指定者:
        getCommandResult 在类中 GameRules.Rule<GameRules.IntRule>
        Mappings:
        Namespace Name Mixin selector
        official c Lbvn$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

        protected GameRules.IntRule getThis()
        指定者:
        getThis 在类中 GameRules.Rule<GameRules.IntRule>
        Mappings:
        Namespace Name Mixin selector
        official d Lbvn$d;d()Lbvn$d;
        intermediary method_20770 Lnet/minecraft/class_1928$class_4312;method_20770()Lnet/minecraft/class_1928$class_4312;
        named getThis Lnet/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 e Lbvn$d;e()Lbvn$d;
        intermediary method_27333 Lnet/minecraft/class_1928$class_4312;method_27333()Lnet/minecraft/class_1928$class_4312;
        named copy Lnet/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 a Lbvn$d;a(Lbvn$d;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
        named setValue Lnet/minecraft/world/GameRules$IntRule;setValue(Lnet/minecraft/world/GameRules$IntRule;Lnet/minecraft/server/MinecraftServer;)V