Class LowercaseEnumTypeAdapterFactory

java.lang.Object
net.minecraft.util.LowercaseEnumTypeAdapterFactory
All Implemented Interfaces:
TypeAdapterFactory

public class LowercaseEnumTypeAdapterFactory extends Object implements TypeAdapterFactory
Mappings:
Namespace Name
named net/minecraft/util/LowercaseEnumTypeAdapterFactory
intermediary net/minecraft/class_3530
official bab
  • Constructor Details

    • LowercaseEnumTypeAdapterFactory

      public LowercaseEnumTypeAdapterFactory()
  • Method Details

    • create

      @Nullable public <T> @Nullable TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken)
      Specified by:
      create in interface TypeAdapterFactory
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/util/LowercaseEnumTypeAdapterFactory;create(Lcom/google/gson/Gson;Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
      intermediary create Lnet/minecraft/class_3530;create(Lcom/google/gson/Gson;Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
      official create Lbab;create(Lcom/google/gson/Gson;Lcom/google/gson/reflect/TypeToken;)Lcom/google/gson/TypeAdapter;
    • getKey

      String getKey(Object o)
      Mappings:
      Namespace Name Mixin selector
      named getKey Lnet/minecraft/util/LowercaseEnumTypeAdapterFactory;getKey(Ljava/lang/Object;)Ljava/lang/String;
      intermediary method_15334 Lnet/minecraft/class_3530;method_15334(Ljava/lang/Object;)Ljava/lang/String;
      official a Lbab;a(Ljava/lang/Object;)Ljava/lang/String;