Class VariantSetting<T>

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

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

    • key

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

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

    • VariantSetting

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

    • evaluate

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

      public String toString()
      Overrides:
      toString in class Object