FabricBlockEntityTypeBuilder

public final class FabricBlockEntityTypeBuilder<T extends BlockEntity>

Fabric's version of BlockEntityType.Builder. Removes the need to use an access widener on the BlockEntityFactory

Types

Factory
Link copied to clipboard
public interface Factory<T extends BlockEntity>

Functions

build
Link copied to clipboard
BlockEntityType<Tbuild()
BlockEntityType<Tbuild(Type<? extends Object> type)
create
Link copied to clipboard
static FabricBlockEntityTypeBuilder<Tcreate<T extends BlockEntity>(FabricBlockEntityTypeBuilder.Factory<? extends T> factory, Array<Block> blocks)

Sources

jvm source
Link copied to clipboard