Class VariantSetting<T>

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

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

    • key

      private final String key
      Mappings:
      Namespace Name Mixin selector
      official a Lja;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

      private final Function<T,​JsonElement> writer
      Mappings:
      Namespace Name Mixin selector
      official b Lja;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> Lja;<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 Lja;a(Ljava/lang/Object;)Lja$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
      Mappings:
      Namespace Name Mixin selector
      official toString Lja;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_4938;toString()Ljava/lang/String;
      named toString Lnet/minecraft/data/client/model/VariantSetting;toString()Ljava/lang/String;