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
named net/minecraft/data/client/BlockStateVariantMap
intermediary net/minecraft/class_4926
official nv
  • Field Details

    • variants

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

    • BlockStateVariantMap

      public BlockStateVariantMap()
  • Method Details

    • register

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

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

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

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

      public static <T1 extends Comparable<T1>> BlockStateVariantMap.SingleProperty<T1> create(Property<T1> property)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/data/client/BlockStateVariantMap;create(Lnet/minecraft/state/property/Property;)Lnet/minecraft/data/client/BlockStateVariantMap$SingleProperty;
      intermediary method_25783 Lnet/minecraft/class_4926;method_25783(Lnet/minecraft/class_2769;)Lnet/minecraft/class_4926$class_4927;
      official a Lnv;a(Lduf;)Lnv$a;
    • 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
      named create Lnet/minecraft/data/client/BlockStateVariantMap;create(Lnet/minecraft/state/property/Property;Lnet/minecraft/state/property/Property;)Lnet/minecraft/data/client/BlockStateVariantMap$DoubleProperty;
      intermediary method_25784 Lnet/minecraft/class_4926;method_25784(Lnet/minecraft/class_2769;Lnet/minecraft/class_2769;)Lnet/minecraft/class_4926$class_4928;
      official a Lnv;a(Lduf;Lduf;)Lnv$b;
    • 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
      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;
      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;
      official a Lnv;a(Lduf;Lduf;Lduf;)Lnv$c;
    • 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
      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;
      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;
      official a Lnv;a(Lduf;Lduf;Lduf;Lduf;)Lnv$d;
    • 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
      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;
      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;
      official a Lnv;a(Lduf;Lduf;Lduf;Lduf;Lduf;)Lnv$e;