Class VariantSetting<T>

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

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

    • key

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

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

    • VariantSetting

      public VariantSetting(String key, Function<T,JsonElement> writer)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ljs;<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/VariantSetting;<init>(Ljava/lang/String;Ljava/util/function/Function;)V
  • Method Details

    • evaluate

      public VariantSetting<T>.Value evaluate(T value)
      Mappings:
      Namespace Name Mixin selector
      official a Ljs;a(Ljava/lang/Object;)Ljs$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/VariantSetting;evaluate(Ljava/lang/Object;)Lnet/minecraft/data/client/VariantSetting$Value;
    • toString

      public String toString()
      Overrides:
      toString in class Object