User Tools

Site Tools


tutorial:blockentity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorial:blockentity [2022/08/08 04:27] – external edit 127.0.0.1tutorial:blockentity [2022/12/16 02:14] – [Registering your BlockEntity] solidblock
Line 29: Line 29:
 <code java> <code java>
     public static final BlockEntityType<DemoBlockEntity> DEMO_BLOCK_ENTITY = Registry.register(     public static final BlockEntityType<DemoBlockEntity> DEMO_BLOCK_ENTITY = Registry.register(
-        Registry.BLOCK_ENTITY_TYPE,+        Registries.BLOCK_ENTITY_TYPE,
         new Identifier("tutorial", "demo_block_entity"),         new Identifier("tutorial", "demo_block_entity"),
         FabricBlockEntityTypeBuilder.create(DemoBlockEntity::new, DEMO_BLOCK).build()         FabricBlockEntityTypeBuilder.create(DemoBlockEntity::new, DEMO_BLOCK).build()
tutorial/blockentity.txt · Last modified: 2023/09/20 19:18 by haykam