类 GameRules.Rule<T extends GameRules.Rule<T>>

  • 直接已知子类:
    GameRules.BooleanRule, GameRules.IntRule
    封闭类:
    GameRules

    public abstract static class GameRules.Rule<T extends GameRules.Rule<T>>
    extends Object
    Mappings:
    Namespace Name
    official bvn$g
    intermediary net/minecraft/class_1928$class_4315
    named net/minecraft/world/GameRules$Rule
    • 字段详细资料

      • type

        protected final GameRules.Type<T extends GameRules.Rule<T>> type
        Mappings:
        Namespace Name Mixin selector
        official a Lbvn$g;a:Lbvn$f;
        intermediary field_19417 Lnet/minecraft/class_1928$class_4315;field_19417:Lnet/minecraft/class_1928$class_4314;
        named type Lnet/minecraft/world/GameRules$Rule;type:Lnet/minecraft/world/GameRules$Type;
    • 构造器详细资料

      • Rule

        public Rule​(GameRules.Type<T> type)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lbvn$g;<init>(Lbvn$f;)V
        intermediary <init> Lnet/minecraft/class_1928$class_4315;<init>(Lnet/minecraft/class_1928$class_4314;)V
        named <init> Lnet/minecraft/world/GameRules$Rule;<init>(Lnet/minecraft/world/GameRules$Type;)V
    • 方法详细资料

      • setFromArgument

        protected abstract void setFromArgument​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
                                                String name)
        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
      • set

        public void set​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
                        String name)
        Mappings:
        Namespace Name Mixin selector
        official b Lbvn$g;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)V
        intermediary method_20780 Lnet/minecraft/class_1928$class_4315;method_20780(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)V
        named set Lnet/minecraft/world/GameRules$Rule;set(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)V
      • changed

        protected void changed​(@Nullable
                               @Nullable MinecraftServer server)
        Mappings:
        Namespace Name Mixin selector
        official a Lbvn$g;a(Lnet/minecraft/server/MinecraftServer;)V
        intermediary method_20778 Lnet/minecraft/class_1928$class_4315;method_20778(Lnet/minecraft/server/MinecraftServer;)V
        named changed Lnet/minecraft/world/GameRules$Rule;changed(Lnet/minecraft/server/MinecraftServer;)V
      • deserialize

        protected abstract void deserialize​(String value)
        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
      • serialize

        public abstract String serialize()
        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;
      • toString

        public String toString()
        覆盖:
        toString 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official toString Lbvn$g;toString()Ljava/lang/String;
        intermediary toString Lnet/minecraft/class_1928$class_4315;toString()Ljava/lang/String;
        named toString Lnet/minecraft/world/GameRules$Rule;toString()Ljava/lang/String;
      • getCommandResult

        public abstract int getCommandResult()
        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 abstract T getThis()
        Mappings:
        Namespace Name Mixin selector
        official g Lbvn$g;g()Lbvn$g;
        intermediary method_20782 Lnet/minecraft/class_1928$class_4315;method_20782()Lnet/minecraft/class_1928$class_4315;
        named getThis Lnet/minecraft/world/GameRules$Rule;getThis()Lnet/minecraft/world/GameRules$Rule;
      • copy

        protected abstract T copy()
        Mappings:
        Namespace Name Mixin selector
        official f Lbvn$g;f()Lbvn$g;
        intermediary method_27338 Lnet/minecraft/class_1928$class_4315;method_27338()Lnet/minecraft/class_1928$class_4315;
        named copy Lnet/minecraft/world/GameRules$Rule;copy()Lnet/minecraft/world/GameRules$Rule;
      • setValue

        public abstract void setValue​(T rule,
                                      @Nullable
                                      @Nullable MinecraftServer server)
        Mappings:
        Namespace Name Mixin selector
        official a Lbvn$g;a(Lbvn$g;Lnet/minecraft/server/MinecraftServer;)V
        intermediary method_27337 Lnet/minecraft/class_1928$class_4315;method_27337(Lnet/minecraft/class_1928$class_4315;Lnet/minecraft/server/MinecraftServer;)V
        named setValue Lnet/minecraft/world/GameRules$Rule;setValue(Lnet/minecraft/world/GameRules$Rule;Lnet/minecraft/server/MinecraftServer;)V