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

java.lang.Object
net.minecraft.world.GameRules.Key<T>
Enclosing class:
GameRules

public static final class GameRules.Key<T extends GameRules.Rule<T>> extends Object
Mappings:
Namespace Name
named net/minecraft/world/GameRules$Key
intermediary net/minecraft/class_1928$class_4313
official dhd$e
  • Field Details

    • name

      final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/world/GameRules$Key;name:Ljava/lang/String;
      intermediary field_19413 Lnet/minecraft/class_1928$class_4313;field_19413:Ljava/lang/String;
      official a Ldhd$e;a:Ljava/lang/String;
    • category

      private final GameRules.Category category
      Mappings:
      Namespace Name Mixin selector
      named category Lnet/minecraft/world/GameRules$Key;category:Lnet/minecraft/world/GameRules$Category;
      intermediary field_24103 Lnet/minecraft/class_1928$class_4313;field_24103:Lnet/minecraft/class_1928$class_5198;
      official b Ldhd$e;b:Ldhd$b;
  • Constructor Details

    • Key

      public Key(String name, GameRules.Category category)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/GameRules$Key;<init>(Ljava/lang/String;Lnet/minecraft/world/GameRules$Category;)V
      intermediary <init> Lnet/minecraft/class_1928$class_4313;<init>(Ljava/lang/String;Lnet/minecraft/class_1928$class_5198;)V
      official <init> Ldhd$e;<init>(Ljava/lang/String;Ldhd$b;)V
  • Method Details

    • toString

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/world/GameRules$Key;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1928$class_4313;equals(Ljava/lang/Object;)Z
      official equals Ldhd$e;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/world/GameRules$Key;getName()Ljava/lang/String;
      intermediary method_20771 Lnet/minecraft/class_1928$class_4313;method_20771()Ljava/lang/String;
      official a Ldhd$e;a()Ljava/lang/String;
    • getTranslationKey

      public String getTranslationKey()
      Mappings:
      Namespace Name Mixin selector
      named getTranslationKey Lnet/minecraft/world/GameRules$Key;getTranslationKey()Ljava/lang/String;
      intermediary method_27334 Lnet/minecraft/class_1928$class_4313;method_27334()Ljava/lang/String;
      official b Ldhd$e;b()Ljava/lang/String;
    • getCategory

      public GameRules.Category getCategory()
      Mappings:
      Namespace Name Mixin selector
      named getCategory Lnet/minecraft/world/GameRules$Key;getCategory()Lnet/minecraft/world/GameRules$Category;
      intermediary method_27335 Lnet/minecraft/class_1928$class_4313;method_27335()Lnet/minecraft/class_1928$class_5198;
      official c Ldhd$e;c()Ldhd$b;