public class MultipartBlockStateSupplier extends Object implements BlockStateSupplier
Modifier and Type | Class and Description |
---|---|
(package private) static class |
MultipartBlockStateSupplier.ConditionalMultipart |
(package private) static class |
MultipartBlockStateSupplier.Multipart |
Modifier and Type | Field and Description |
---|---|
private Block |
block |
private List<MultipartBlockStateSupplier.Multipart> |
multiparts |
Modifier | Constructor and Description |
---|---|
private |
MultipartBlockStateSupplier(Block block) |
Modifier and Type | Method and Description |
---|---|
static MultipartBlockStateSupplier |
create(Block block) |
JsonElement |
get() |
Block |
getBlock() |
MultipartBlockStateSupplier |
with(BlockStateVariant blockStateVariant) |
MultipartBlockStateSupplier |
with(List<BlockStateVariant> list) |
MultipartBlockStateSupplier |
with(When when,
BlockStateVariant blockStateVariant) |
MultipartBlockStateSupplier |
with(When when,
BlockStateVariant[] blockStateVariant) |
MultipartBlockStateSupplier |
with(When when,
List<BlockStateVariant> list) |
private final Block block
private final List<MultipartBlockStateSupplier.Multipart> multiparts
private MultipartBlockStateSupplier(Block block)
public Block getBlock()
getBlock
in interface BlockStateSupplier
public static MultipartBlockStateSupplier create(Block block)
public MultipartBlockStateSupplier with(List<BlockStateVariant> list)
public MultipartBlockStateSupplier with(BlockStateVariant blockStateVariant)
public MultipartBlockStateSupplier with(When when, List<BlockStateVariant> list)
public MultipartBlockStateSupplier with(When when, BlockStateVariant[] blockStateVariant)
public MultipartBlockStateSupplier with(When when, BlockStateVariant blockStateVariant)
public JsonElement get()
get
in interface Supplier<JsonElement>