Class FabricBlockEntityTypeBuilder<T extends BlockEntity>
java.lang.Object
net.fabricmc.fabric.api.object.builder.v1.block.entity.FabricBlockEntityTypeBuilder<T>
Fabric's version of BlockEntityType.Builder with additional convenience methods.
Alternatively, use the access widener for
in Fabric Transitive Access Wideners (v1).invalid @link
BlockEntityType.BlockEntityFactory
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Method Summary
Modifier and TypeMethodDescriptionAdds a supported block for the block entity type.Adds supported blocks for the block entity type.build()
build
(com.mojang.datafixers.types.Type<?> type) static <T extends BlockEntity>
FabricBlockEntityTypeBuilder<T>create
(FabricBlockEntityTypeBuilder.Factory<? extends T> factory, Block... blocks)
-
Method Details
-
create
public static <T extends BlockEntity> FabricBlockEntityTypeBuilder<T> create(FabricBlockEntityTypeBuilder.Factory<? extends T> factory, Block... blocks) -
addBlock
Adds a supported block for the block entity type.- Parameters:
block
- the supported block- Returns:
- this builder
-
addBlocks
Adds supported blocks for the block entity type.- Parameters:
blocks
- the supported blocks- Returns:
- this builder
-
build
-
build
-