Class GameRules.Rule<T extends GameRules.Rule<T>>

java.lang.Object
net.minecraft.world.GameRules.Rule<T>
Direct Known Subclasses:
GameRules.BooleanRule, GameRules.IntRule
Enclosing class:
GameRules

public abstract static class GameRules.Rule<T extends GameRules.Rule<T>> extends Object
Mappings:
Namespace Name
named net/minecraft/world/GameRules$Rule
intermediary net/minecraft/class_1928$class_4315
official dbv$g
  • Field Details

    • type

      protected final GameRules.Type<T extends GameRules.Rule<T>> type
      Mappings:
      Namespace Name Mixin selector
      named type Lnet/minecraft/world/GameRules$Rule;type:Lnet/minecraft/world/GameRules$Type;
      intermediary field_19417 Lnet/minecraft/class_1928$class_4315;field_19417:Lnet/minecraft/class_1928$class_4314;
      official a Ldbv$g;a:Ldbv$f;
  • Constructor Details

    • Rule

      public Rule(GameRules.Type<T> type)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/GameRules$Rule;<init>(Lnet/minecraft/world/GameRules$Type;)V
      intermediary <init> Lnet/minecraft/class_1928$class_4315;<init>(Lnet/minecraft/class_1928$class_4314;)V
      official <init> Ldbv$g;<init>(Ldbv$f;)V
  • Method Details

    • setFromArgument

      protected abstract void setFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
      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 Ldbv$g;a(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
      named set Lnet/minecraft/world/GameRules$Rule;set(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
      official b Ldbv$g;b(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)V
    • changed

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

      protected abstract void deserialize(String value)
      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 Ldbv$g;a(Ljava/lang/String;)V
    • serialize

      public abstract String serialize()
      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 Ldbv$g;b()Ljava/lang/String;
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getCommandResult

      public abstract int getCommandResult()
      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 Ldbv$g;c()I
    • getThis

      protected abstract T getThis()
      Mappings:
      Namespace Name Mixin selector
      named getThis Lnet/minecraft/world/GameRules$Rule;getThis()Lnet/minecraft/world/GameRules$Rule;
      intermediary method_20782 Lnet/minecraft/class_1928$class_4315;method_20782()Lnet/minecraft/class_1928$class_4315;
      official g Ldbv$g;g()Ldbv$g;
    • copy

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

      public abstract void setValue(T rule, @Nullable @Nullable MinecraftServer server)
      Mappings:
      Namespace Name Mixin selector
      named setValue Lnet/minecraft/world/GameRules$Rule;setValue(Lnet/minecraft/world/GameRules$Rule;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
      official a Ldbv$g;a(Ldbv$g;Lnet/minecraft/server/MinecraftServer;)V