Class BlockStateVariantMap

java.lang.Object
net.minecraft.data.client.BlockStateVariantMap
Direct Known Subclasses:
BlockStateVariantMap.DoubleProperty, BlockStateVariantMap.QuadrupleProperty, BlockStateVariantMap.QuintupleProperty, BlockStateVariantMap.SingleProperty, BlockStateVariantMap.TripleProperty

public abstract class BlockStateVariantMap extends Object
An equivalence to the Map<String, WeightedUnbakedModel> passed to the constructor of ModelVariantMap.
Mappings:
Namespace Name
official mg
intermediary net/minecraft/class_4926
named net/minecraft/data/client/BlockStateVariantMap
  • Field Details

    • variants

      private final Map<PropertiesMap,List<BlockStateVariant>> variants
      Mappings:
      Namespace Name Mixin selector
      official a Lmg;a:Ljava/util/Map;
      intermediary field_22863 Lnet/minecraft/class_4926;field_22863:Ljava/util/Map;
      named variants Lnet/minecraft/data/client/BlockStateVariantMap;variants:Ljava/util/Map;
  • Constructor Details

    • BlockStateVariantMap

      public BlockStateVariantMap()
  • Method Details

    • register

      protected void register(PropertiesMap condition, List<BlockStateVariant> possibleVariants)
      Mappings:
      Namespace Name Mixin selector
      official a Lmg;a(Lmh;Ljava/util/List;)V
      intermediary method_25790 Lnet/minecraft/class_4926;method_25790(Lnet/minecraft/class_4934;Ljava/util/List;)V
      named register Lnet/minecraft/data/client/BlockStateVariantMap;register(Lnet/minecraft/data/client/PropertiesMap;Ljava/util/List;)V
    • getVariants

      Mappings:
      Namespace Name Mixin selector
      official a Lmg;a()Ljava/util/Map;
      intermediary method_25782 Lnet/minecraft/class_4926;method_25782()Ljava/util/Map;
      named getVariants Lnet/minecraft/data/client/BlockStateVariantMap;getVariants()Ljava/util/Map;
    • checkAllPropertyDefinitions

      private void checkAllPropertyDefinitions()
      Mappings:
      Namespace Name Mixin selector
      official c Lmg;c()V
      intermediary method_25792 Lnet/minecraft/class_4926;method_25792()V
      named checkAllPropertyDefinitions Lnet/minecraft/data/client/BlockStateVariantMap;checkAllPropertyDefinitions()V
    • getProperties

      abstract List<Property<?>> getProperties()
      Mappings:
      Namespace Name Mixin selector
      official b Lmg;b()Ljava/util/List;
      intermediary method_25791 Lnet/minecraft/class_4926;method_25791()Ljava/util/List;
      named getProperties Lnet/minecraft/data/client/BlockStateVariantMap;getProperties()Ljava/util/List;
    • create

      public static <T1 extends Comparable<T1>> BlockStateVariantMap.SingleProperty<T1> create(Property<T1> property)
      Mappings:
      Namespace Name Mixin selector
      official a Lmg;a(Ldkk;)Lmg$a;
      intermediary method_25783 Lnet/minecraft/class_4926;method_25783(Lnet/minecraft/class_2769;)Lnet/minecraft/class_4926$class_4927;
      named create Lnet/minecraft/data/client/BlockStateVariantMap;create(Lnet/minecraft/state/property/Property;)Lnet/minecraft/data/client/BlockStateVariantMap$SingleProperty;
    • create

      public static <T1 extends Comparable<T1>, T2 extends Comparable<T2>> BlockStateVariantMap.DoubleProperty<T1,T2> create(Property<T1> first, Property<T2> second)
      Mappings:
      Namespace Name Mixin selector
      official a Lmg;a(Ldkk;Ldkk;)Lmg$b;
      intermediary method_25784 Lnet/minecraft/class_4926;method_25784(Lnet/minecraft/class_2769;Lnet/minecraft/class_2769;)Lnet/minecraft/class_4926$class_4928;
      named create Lnet/minecraft/data/client/BlockStateVariantMap;create(Lnet/minecraft/state/property/Property;Lnet/minecraft/state/property/Property;)Lnet/minecraft/data/client/BlockStateVariantMap$DoubleProperty;
    • create

      public static <T1 extends Comparable<T1>, T2 extends Comparable<T2>, T3 extends Comparable<T3>> BlockStateVariantMap.TripleProperty<T1,T2,T3> create(Property<T1> first, Property<T2> second, Property<T3> third)
      Mappings:
      Namespace Name Mixin selector
      official a Lmg;a(Ldkk;Ldkk;Ldkk;)Lmg$c;
      intermediary method_25785 Lnet/minecraft/class_4926;method_25785(Lnet/minecraft/class_2769;Lnet/minecraft/class_2769;Lnet/minecraft/class_2769;)Lnet/minecraft/class_4926$class_4929;
      named create Lnet/minecraft/data/client/BlockStateVariantMap;create(Lnet/minecraft/state/property/Property;Lnet/minecraft/state/property/Property;Lnet/minecraft/state/property/Property;)Lnet/minecraft/data/client/BlockStateVariantMap$TripleProperty;
    • create

      public static <T1 extends Comparable<T1>, T2 extends Comparable<T2>, T3 extends Comparable<T3>, T4 extends Comparable<T4>> BlockStateVariantMap.QuadrupleProperty<T1,T2,T3,T4> create(Property<T1> first, Property<T2> second, Property<T3> third, Property<T4> fourth)
      Mappings:
      Namespace Name Mixin selector
      official a Lmg;a(Ldkk;Ldkk;Ldkk;Ldkk;)Lmg$d;
      intermediary method_25786 Lnet/minecraft/class_4926;method_25786(Lnet/minecraft/class_2769;Lnet/minecraft/class_2769;Lnet/minecraft/class_2769;Lnet/minecraft/class_2769;)Lnet/minecraft/class_4926$class_4930;
      named create Lnet/minecraft/data/client/BlockStateVariantMap;create(Lnet/minecraft/state/property/Property;Lnet/minecraft/state/property/Property;Lnet/minecraft/state/property/Property;Lnet/minecraft/state/property/Property;)Lnet/minecraft/data/client/BlockStateVariantMap$QuadrupleProperty;
    • create

      public static <T1 extends Comparable<T1>, T2 extends Comparable<T2>, T3 extends Comparable<T3>, T4 extends Comparable<T4>, T5 extends Comparable<T5>> BlockStateVariantMap.QuintupleProperty<T1,T2,T3,T4,T5> create(Property<T1> first, Property<T2> second, Property<T3> third, Property<T4> fourth, Property<T5> fifth)
      Mappings:
      Namespace Name Mixin selector
      official a Lmg;a(Ldkk;Ldkk;Ldkk;Ldkk;Ldkk;)Lmg$e;
      intermediary method_25787 Lnet/minecraft/class_4926;method_25787(Lnet/minecraft/class_2769;Lnet/minecraft/class_2769;Lnet/minecraft/class_2769;Lnet/minecraft/class_2769;Lnet/minecraft/class_2769;)Lnet/minecraft/class_4926$class_4931;
      named create Lnet/minecraft/data/client/BlockStateVariantMap;create(Lnet/minecraft/state/property/Property;Lnet/minecraft/state/property/Property;Lnet/minecraft/state/property/Property;Lnet/minecraft/state/property/Property;Lnet/minecraft/state/property/Property;)Lnet/minecraft/data/client/BlockStateVariantMap$QuintupleProperty;