Class VariantSetting<T>

java.lang.Object
net.minecraft.data.client.VariantSetting<T>

public class VariantSetting<T> extends Object
Mappings:
Namespace Name
named net/minecraft/data/client/VariantSetting
intermediary net/minecraft/class_4938
official oc
  • Field Details

    • key

      final String key
      Mappings:
      Namespace Name Mixin selector
      named key Lnet/minecraft/data/client/VariantSetting;key:Ljava/lang/String;
      intermediary field_22896 Lnet/minecraft/class_4938;field_22896:Ljava/lang/String;
      official a Loc;a:Ljava/lang/String;
    • writer

      final Function<T,JsonElement> writer
      Mappings:
      Namespace Name Mixin selector
      named writer Lnet/minecraft/data/client/VariantSetting;writer:Ljava/util/function/Function;
      intermediary field_22897 Lnet/minecraft/class_4938;field_22897:Ljava/util/function/Function;
      official b Loc;b:Ljava/util/function/Function;
  • Constructor Details

    • VariantSetting

      public VariantSetting(String key, Function<T,JsonElement> writer)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/data/client/VariantSetting;<init>(Ljava/lang/String;Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_4938;<init>(Ljava/lang/String;Ljava/util/function/Function;)V
      official <init> Loc;<init>(Ljava/lang/String;Ljava/util/function/Function;)V
  • Method Details

    • evaluate

      public VariantSetting<T>.Value evaluate(T value)
      Mappings:
      Namespace Name Mixin selector
      named evaluate Lnet/minecraft/data/client/VariantSetting;evaluate(Ljava/lang/Object;)Lnet/minecraft/data/client/VariantSetting$Value;
      intermediary method_25836 Lnet/minecraft/class_4938;method_25836(Ljava/lang/Object;)Lnet/minecraft/class_4938$class_4939;
      official a Loc;a(Ljava/lang/Object;)Loc$a;
    • toString

      public String toString()
      Overrides:
      toString in class Object