Package dev.architectury.hooks.block
Class BlockEntityHooks
java.lang.Object
dev.architectury.hooks.block.BlockEntityHooks
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
BlockEntityHooks.Constructor<T extends net.minecraft.world.level.block.entity.BlockEntity>
static class
BlockEntityHooks.TypeBuilder<T extends net.minecraft.world.level.block.entity.BlockEntity>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends net.minecraft.world.level.block.entity.BlockEntity>
BlockEntityHooks.TypeBuilder<T>builder
(BlockEntityHooks.Constructor<? extends T> constructor, net.minecraft.world.level.block.Block... blocks) Deprecated.Use the Builder from vanilla directly.static void
syncData
(net.minecraft.world.level.block.entity.BlockEntity entity) Sync data to the clients.
-
Method Details
-
builder
@Deprecated @ScheduledForRemoval public static <T extends net.minecraft.world.level.block.entity.BlockEntity> BlockEntityHooks.TypeBuilder<T> builder(BlockEntityHooks.Constructor<? extends T> constructor, net.minecraft.world.level.block.Block... blocks) Deprecated.Use the Builder from vanilla directly. -
syncData
public static void syncData(net.minecraft.world.level.block.entity.BlockEntity entity) Sync data to the clients.
-