public class BlockStateVariant extends Object implements Supplier<JsonElement>
ModelVariant
's JSON representation.Modifier and Type | Field and Description |
---|---|
private Map<VariantSetting<?>,VariantSetting.Value> |
properties |
Constructor and Description |
---|
BlockStateVariant() |
Modifier and Type | Method and Description |
---|---|
static BlockStateVariant |
create() |
JsonElement |
get() |
<T> BlockStateVariant |
put(VariantSetting<T> key,
T value) |
static JsonElement |
toJson(List<BlockStateVariant> variants) |
static BlockStateVariant |
union(BlockStateVariant first,
BlockStateVariant second) |
private final Map<VariantSetting<?>,VariantSetting.Value> properties
public <T> BlockStateVariant put(VariantSetting<T> key, T value)
public static BlockStateVariant create()
public static BlockStateVariant union(BlockStateVariant first, BlockStateVariant second)
public JsonElement get()
get
in interface Supplier<JsonElement>
public static JsonElement toJson(List<BlockStateVariant> variants)