public static final class BlockEntityType.Builder<T extends BlockEntity> extends Object
| Modifier and Type | Field and Description |
|---|---|
private Set<Block> |
blocks |
private Supplier<? extends T> |
supplier |
| Modifier | Constructor and Description |
|---|---|
private |
Builder(Supplier<? extends T> supplier,
Set<Block> blocks) |
| Modifier and Type | Method and Description |
|---|---|
BlockEntityType<T> |
build(com.mojang.datafixers.types.Type<?> type) |
static <T extends BlockEntity> |
create(Supplier<? extends T> supplier,
Block[] blocks) |
private final Supplier<? extends T extends BlockEntity> supplier
public static <T extends BlockEntity> BlockEntityType.Builder<T> create(Supplier<? extends T> supplier, Block[] blocks)
public BlockEntityType<T> build(com.mojang.datafixers.types.Type<?> type)