Class FabricBlockEntityTypeBuilder<T extends BlockEntity>
java.lang.Object
net.fabricmc.fabric.api.object.builder.v1.block.entity.FabricBlockEntityTypeBuilder<T>
Deprecated.
Fabric's version of BlockEntityType.Builder with additional convenience methods.
Alternatively, use the access widener for
in Fabric Transitive Access Wideners (v1).invalid reference
BlockEntityType.BlockEntityFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated.Use.invalid reference
BlockEntityType.BlockEntityFactory -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.Use.invalid reference
BlockEntityType.Builder#build()build(com.mojang.datafixers.types.Type<?> type) Deprecated.static <T extends BlockEntity>
FabricBlockEntityTypeBuilder<T> create(FabricBlockEntityTypeBuilder.Factory<? extends T> factory, Block... blocks)
-
Method Details
-
create
@Deprecated 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
Deprecated.Use.invalid reference
BlockEntityType.Builder#build() -
build
Deprecated.
-
BlockEntityType.Builderdirectly.