Package net.minecraft.data
Class BlockStateVariantBuilder
java.lang.Object
net.minecraft.data.BlockStateVariantBuilder
- Direct Known Subclasses:
BlockStateVariantBuilder.Five
,BlockStateVariantBuilder.Four
,BlockStateVariantBuilder.One
,BlockStateVariantBuilder.Three
,BlockStateVariantBuilder.Two
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
BlockStateVariantBuilder.Five<T1 extends Comparable<T1>,
T2 extends Comparable<T2>, T3 extends Comparable<T3>, T4 extends Comparable<T4>, T5 extends Comparable<T5>> static class
BlockStateVariantBuilder.Four<T1 extends Comparable<T1>,
T2 extends Comparable<T2>, T3 extends Comparable<T3>, T4 extends Comparable<T4>> static interface
static class
BlockStateVariantBuilder.One<T1 extends Comparable<T1>>
static class
BlockStateVariantBuilder.Three<T1 extends Comparable<T1>,
T2 extends Comparable<T2>, T3 extends Comparable<T3>> static class
BlockStateVariantBuilder.Two<T1 extends Comparable<T1>,
T2 extends Comparable<T2>> -
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<VariantPropertyBuilder,
List<BlockModelDefinition>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) Map<VariantPropertyBuilder,
List<BlockModelDefinition>> static <T1 extends Comparable<T1>,
T2 extends Comparable<T2>>
BlockStateVariantBuilder.Two<T1,T2> properties
(Property<T1> p_240134_0_, Property<T2> p_240134_1_) static <T1 extends Comparable<T1>,
T2 extends Comparable<T2>, T3 extends Comparable<T3>>
BlockStateVariantBuilder.Three<T1,T2, T3> properties
(Property<T1> p_240135_0_, Property<T2> p_240135_1_, Property<T3> p_240135_2_) static <T1 extends Comparable<T1>,
T2 extends Comparable<T2>, T3 extends Comparable<T3>, T4 extends Comparable<T4>>
BlockStateVariantBuilder.Four<T1,T2, T3, T4> properties
(Property<T1> p_240136_0_, Property<T2> p_240136_1_, Property<T3> p_240136_2_, Property<T4> p_240136_3_) static <T1 extends Comparable<T1>,
T2 extends Comparable<T2>, T3 extends Comparable<T3>, T4 extends Comparable<T4>, T5 extends Comparable<T5>>
BlockStateVariantBuilder.Five<T1,T2, T3, T4, T5> properties
(Property<T1> p_240137_0_, Property<T2> p_240137_1_, Property<T3> p_240137_2_, Property<T4> p_240137_3_, Property<T5> p_240137_4_) static <T1 extends Comparable<T1>>
BlockStateVariantBuilder.One<T1>protected void
putValue
(VariantPropertyBuilder p_240140_1_, List<BlockModelDefinition> p_240140_2_) private void
-
Field Details
-
values
-
-
Constructor Details
-
BlockStateVariantBuilder
public BlockStateVariantBuilder()
-
-
Method Details
-
putValue
-
getEntries
Map<VariantPropertyBuilder,List<BlockModelDefinition>> getEntries() -
verifyComplete
private void verifyComplete() -
getDefinedProperties
-
property
public static <T1 extends Comparable<T1>> BlockStateVariantBuilder.One<T1> property(Property<T1> p_240133_0_) -
properties
public static <T1 extends Comparable<T1>,T2 extends Comparable<T2>> BlockStateVariantBuilder.Two<T1,T2> properties(Property<T1> p_240134_0_, Property<T2> p_240134_1_) -
properties
public static <T1 extends Comparable<T1>,T2 extends Comparable<T2>, BlockStateVariantBuilder.Three<T1,T3 extends Comparable<T3>> T2, propertiesT3> (Property<T1> p_240135_0_, Property<T2> p_240135_1_, Property<T3> p_240135_2_) -
properties
public static <T1 extends Comparable<T1>,T2 extends Comparable<T2>, BlockStateVariantBuilder.Four<T1,T3 extends Comparable<T3>, T4 extends Comparable<T4>> T2, propertiesT3, T4> (Property<T1> p_240136_0_, Property<T2> p_240136_1_, Property<T3> p_240136_2_, Property<T4> p_240136_3_) -
properties
public static <T1 extends Comparable<T1>,T2 extends Comparable<T2>, BlockStateVariantBuilder.Five<T1,T3 extends Comparable<T3>, T4 extends Comparable<T4>, T5 extends Comparable<T5>> T2, propertiesT3, T4, T5> (Property<T1> p_240137_0_, Property<T2> p_240137_1_, Property<T3> p_240137_2_, Property<T4> p_240137_3_, Property<T5> p_240137_4_)
-