Class BlockStateVariantMap

java.lang.Object
net.minecraft.data.client.model.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 jg
intermediary net/minecraft/class_4926
named net/minecraft/data/client/model/BlockStateVariantMap
  • Field Details

    • variants

      private final Map<PropertiesMap,​List<BlockStateVariant>> variants
      Mappings:
      Namespace Name Mixin selector
      official a Ljg;a:Ljava/util/Map;
      intermediary field_22863 Lnet/minecraft/class_4926;field_22863:Ljava/util/Map;
      named variants Lnet/minecraft/data/client/model/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 Ljg;a(Ljh;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/model/BlockStateVariantMap;register(Lnet/minecraft/data/client/model/PropertiesMap;Ljava/util/List;)V
    • getVariants

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

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

      abstract List<Property<?>> getProperties()
      Mappings:
      Namespace Name Mixin selector
      official b Ljg;b()Ljava/util/List;
      intermediary method_25791 Lnet/minecraft/class_4926;method_25791()Ljava/util/List;
      named getProperties Lnet/minecraft/data/client/model/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 Ljg;a(Lclv;)Ljg$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/model/BlockStateVariantMap;create(Lnet/minecraft/state/property/Property;)Lnet/minecraft/data/client/model/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 Ljg;a(Lclv;Lclv;)Ljg$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/model/BlockStateVariantMap;create(Lnet/minecraft/state/property/Property;Lnet/minecraft/state/property/Property;)Lnet/minecraft/data/client/model/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 Ljg;a(Lclv;Lclv;Lclv;)Ljg$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/model/BlockStateVariantMap;create(Lnet/minecraft/state/property/Property;Lnet/minecraft/state/property/Property;Lnet/minecraft/state/property/Property;)Lnet/minecraft/data/client/model/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 Ljg;a(Lclv;Lclv;Lclv;Lclv;)Ljg$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/model/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/model/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 Ljg;a(Lclv;Lclv;Lclv;Lclv;Lclv;)Ljg$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/model/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/model/BlockStateVariantMap$QuintupleProperty;