Package net.minecraft.data.client.model
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
.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockStateVariantMap.DoubleProperty<T1 extends Comparable<T1>,T2 extends Comparable<T2>>
static class
BlockStateVariantMap.QuadrupleProperty<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>,T4 extends Comparable<T4>>
static class
BlockStateVariantMap.QuintupleProperty<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>,T4 extends Comparable<T4>,T5 extends Comparable<T5>>
static class
BlockStateVariantMap.SingleProperty<T1 extends Comparable<T1>>
static interface
BlockStateVariantMap.TriFunction<P1,P2,P3,R>
static class
BlockStateVariantMap.TripleProperty<T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<T3>>
-
Field Summary
Fields Modifier and Type Field Description private Map<PropertiesMap,List<BlockStateVariant>>
variants
-
Constructor Summary
Constructors Constructor Description BlockStateVariantMap()
-
Method Summary
Modifier and Type Method Description private void
checkAllPropertyDefinitions()
static <T1 extends Comparable<T1>>
BlockStateVariantMap.SingleProperty<T1>create(Property<T1> property)
static <T1 extends Comparable<T1>, T2 extends Comparable<T2>>
BlockStateVariantMap.DoubleProperty<T1,T2>create(Property<T1> property, Property<T2> property2)
static <T1 extends Comparable<T1>, T2 extends Comparable<T2>, T3 extends Comparable<T3>>
BlockStateVariantMap.TripleProperty<T1,T2,T3>create(Property<T1> property, Property<T2> property2, Property<T3> property3)
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> property, Property<T2> property2, Property<T3> property3, Property<T4> property4)
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> property, Property<T2> property2, Property<T3> property3, Property<T4> property4, Property<T5> property5)
(package private) abstract List<Property<?>>
getProperties()
(package private) Map<PropertiesMap,List<BlockStateVariant>>
getVariants()
protected void
register(PropertiesMap condition, List<BlockStateVariant> possibleVariants)
-
Field Details
-
variants
-
-
Constructor Details
-
BlockStateVariantMap
public BlockStateVariantMap()
-
-
Method Details
-
register
-
getVariants
Map<PropertiesMap,List<BlockStateVariant>> getVariants() -
checkAllPropertyDefinitions
private void checkAllPropertyDefinitions() -
getProperties
-
create
public static <T1 extends Comparable<T1>> BlockStateVariantMap.SingleProperty<T1> create(Property<T1> property) -
create
public static <T1 extends Comparable<T1>, T2 extends Comparable<T2>> BlockStateVariantMap.DoubleProperty<T1,T2> create(Property<T1> property, Property<T2> property2) -
create
public static <T1 extends Comparable<T1>, T2 extends Comparable<T2>, T3 extends Comparable<T3>> BlockStateVariantMap.TripleProperty<T1,T2,T3> create(Property<T1> property, Property<T2> property2, Property<T3> property3) -
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> property, Property<T2> property2, Property<T3> property3, Property<T4> property4) -
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> property, Property<T2> property2, Property<T3> property3, Property<T4> property4, Property<T5> property5)
-