public abstract class BlockStateVariantMap extends Object
Map<String, WeightedUnbakedModel>
passed to the constructor of ModelVariantMap
.Modifier and Type | Class and 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>> |
Modifier and Type | Field and Description |
---|---|
private Map<PropertiesMap,List<BlockStateVariant>> |
variants |
Constructor and Description |
---|
BlockStateVariantMap() |
Modifier and Type | Method and Description |
---|---|
private void |
checkAllPropertyDefinitions() |
static <T1 extends Comparable<T1>> |
create(Property<T1> property) |
static <T1 extends Comparable<T1>,T2 extends Comparable<T2>> |
create(Property<T1> property,
Property<T2> property2) |
static <T1 extends Comparable<T1>,T2 extends Comparable<T2>,T3 extends Comparable<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>> |
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>> |
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) |
private final Map<PropertiesMap,List<BlockStateVariant>> variants
protected void register(PropertiesMap condition, List<BlockStateVariant> possibleVariants)
Map<PropertiesMap,List<BlockStateVariant>> getVariants()
private void checkAllPropertyDefinitions()
public static <T1 extends Comparable<T1>> BlockStateVariantMap.SingleProperty<T1> create(Property<T1> property)
public static <T1 extends Comparable<T1>,T2 extends Comparable<T2>> BlockStateVariantMap.DoubleProperty<T1,T2> create(Property<T1> property, Property<T2> property2)
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)
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)
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)