Package net.minecraft.data
Class FinishedVariantBlockState
- java.lang.Object
-
- net.minecraft.data.FinishedVariantBlockState
-
- All Implemented Interfaces:
java.util.function.Supplier<com.google.gson.JsonElement>
,IFinishedBlockState
public class FinishedVariantBlockState extends java.lang.Object implements IFinishedBlockState
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<BlockModelDefinition>
baseVariants
private Block
block
private java.util.List<BlockStateVariantBuilder>
declaredPropertySets
private java.util.Set<Property<?>>
seenProperties
-
Constructor Summary
Constructors Modifier Constructor Description private
FinishedVariantBlockState(Block p_i232529_1_, java.util.List<BlockModelDefinition> p_i232529_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gson.JsonElement
get()
Block
getBlock()
private static java.util.List<BlockModelDefinition>
mergeVariants(java.util.List<BlockModelDefinition> p_240127_0_, java.util.List<BlockModelDefinition> p_240127_1_)
static FinishedVariantBlockState
multiVariant(Block p_240119_0_)
static FinishedVariantBlockState
multiVariant(Block p_240120_0_, BlockModelDefinition p_240120_1_)
static FinishedVariantBlockState
multiVariant(Block p_240121_0_, BlockModelDefinition... p_240121_1_)
FinishedVariantBlockState
with(BlockStateVariantBuilder p_240125_1_)
-
-
-
Field Detail
-
block
private final Block block
-
baseVariants
private final java.util.List<BlockModelDefinition> baseVariants
-
seenProperties
private final java.util.Set<Property<?>> seenProperties
-
declaredPropertySets
private final java.util.List<BlockStateVariantBuilder> declaredPropertySets
-
-
Constructor Detail
-
FinishedVariantBlockState
private FinishedVariantBlockState(Block p_i232529_1_, java.util.List<BlockModelDefinition> p_i232529_2_)
-
-
Method Detail
-
with
public FinishedVariantBlockState with(BlockStateVariantBuilder p_240125_1_)
-
get
public com.google.gson.JsonElement get()
- Specified by:
get
in interfacejava.util.function.Supplier<com.google.gson.JsonElement>
-
mergeVariants
private static java.util.List<BlockModelDefinition> mergeVariants(java.util.List<BlockModelDefinition> p_240127_0_, java.util.List<BlockModelDefinition> p_240127_1_)
-
getBlock
public Block getBlock()
- Specified by:
getBlock
in interfaceIFinishedBlockState
-
multiVariant
public static FinishedVariantBlockState multiVariant(Block p_240119_0_)
-
multiVariant
public static FinishedVariantBlockState multiVariant(Block p_240120_0_, BlockModelDefinition p_240120_1_)
-
multiVariant
public static FinishedVariantBlockState multiVariant(Block p_240121_0_, BlockModelDefinition... p_240121_1_)
-
-