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
official cjs$e
intermediary net/minecraft/class_1928$class_4313
named net/minecraft/world/GameRules$Key
  • Field Details

    • name

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

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

    • Key

      public Key(String name, GameRules.Category category)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcjs$e;<init>(Ljava/lang/String;Lcjs$b;)V
      intermediary <init> Lnet/minecraft/class_1928$class_4313;<init>(Ljava/lang/String;Lnet/minecraft/class_1928$class_5198;)V
      named <init> Lnet/minecraft/world/GameRules$Key;<init>(Ljava/lang/String;Lnet/minecraft/world/GameRules$Category;)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
      official equals Lcjs$e;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1928$class_4313;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/world/GameRules$Key;equals(Ljava/lang/Object;)Z
    • hashCode

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

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

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

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