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
public abstract class BlockStateVariantBuilder extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockStateVariantBuilder.Five<T1 extends java.lang.Comparable<T1>,T2 extends java.lang.Comparable<T2>,T3 extends java.lang.Comparable<T3>,T4 extends java.lang.Comparable<T4>,T5 extends java.lang.Comparable<T5>>
static class
BlockStateVariantBuilder.Four<T1 extends java.lang.Comparable<T1>,T2 extends java.lang.Comparable<T2>,T3 extends java.lang.Comparable<T3>,T4 extends java.lang.Comparable<T4>>
static interface
BlockStateVariantBuilder.ITriFunction<P1,P2,P3,R>
static class
BlockStateVariantBuilder.One<T1 extends java.lang.Comparable<T1>>
static class
BlockStateVariantBuilder.Three<T1 extends java.lang.Comparable<T1>,T2 extends java.lang.Comparable<T2>,T3 extends java.lang.Comparable<T3>>
static class
BlockStateVariantBuilder.Two<T1 extends java.lang.Comparable<T1>,T2 extends java.lang.Comparable<T2>>
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<VariantPropertyBuilder,java.util.List<BlockModelDefinition>>
values
-
Constructor Summary
Constructors Constructor Description BlockStateVariantBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract java.util.List<Property<?>>
getDefinedProperties()
(package private) java.util.Map<VariantPropertyBuilder,java.util.List<BlockModelDefinition>>
getEntries()
static <T1 extends java.lang.Comparable<T1>,T2 extends java.lang.Comparable<T2>>
BlockStateVariantBuilder.Two<T1,T2>properties(Property<T1> p_240134_0_, Property<T2> p_240134_1_)
static <T1 extends java.lang.Comparable<T1>,T2 extends java.lang.Comparable<T2>,T3 extends java.lang.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 java.lang.Comparable<T1>,T2 extends java.lang.Comparable<T2>,T3 extends java.lang.Comparable<T3>,T4 extends java.lang.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 java.lang.Comparable<T1>,T2 extends java.lang.Comparable<T2>,T3 extends java.lang.Comparable<T3>,T4 extends java.lang.Comparable<T4>,T5 extends java.lang.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 java.lang.Comparable<T1>>
BlockStateVariantBuilder.One<T1>property(Property<T1> p_240133_0_)
protected void
putValue(VariantPropertyBuilder p_240140_1_, java.util.List<BlockModelDefinition> p_240140_2_)
private void
verifyComplete()
-
-
-
Field Detail
-
values
private final java.util.Map<VariantPropertyBuilder,java.util.List<BlockModelDefinition>> values
-
-
Method Detail
-
putValue
protected void putValue(VariantPropertyBuilder p_240140_1_, java.util.List<BlockModelDefinition> p_240140_2_)
-
getEntries
java.util.Map<VariantPropertyBuilder,java.util.List<BlockModelDefinition>> getEntries()
-
verifyComplete
private void verifyComplete()
-
getDefinedProperties
abstract java.util.List<Property<?>> getDefinedProperties()
-
property
public static <T1 extends java.lang.Comparable<T1>> BlockStateVariantBuilder.One<T1> property(Property<T1> p_240133_0_)
-
properties
public static <T1 extends java.lang.Comparable<T1>,T2 extends java.lang.Comparable<T2>> BlockStateVariantBuilder.Two<T1,T2> properties(Property<T1> p_240134_0_, Property<T2> p_240134_1_)
-
properties
public static <T1 extends java.lang.Comparable<T1>,T2 extends java.lang.Comparable<T2>,T3 extends java.lang.Comparable<T3>> BlockStateVariantBuilder.Three<T1,T2,T3> properties(Property<T1> p_240135_0_, Property<T2> p_240135_1_, Property<T3> p_240135_2_)
-
properties
public static <T1 extends java.lang.Comparable<T1>,T2 extends java.lang.Comparable<T2>,T3 extends java.lang.Comparable<T3>,T4 extends java.lang.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_)
-
properties
public static <T1 extends java.lang.Comparable<T1>,T2 extends java.lang.Comparable<T2>,T3 extends java.lang.Comparable<T3>,T4 extends java.lang.Comparable<T4>,T5 extends java.lang.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_)
-
-