#[1.21.3] Registering Block Entity Error

11 messages · Page 1 of 1 (latest)

vague pasture
#
public static final BlockEntityType<TestBlockEntity> TEST_BLOCK_ENTITY =
            Registry.register(Registries.BLOCK_ENTITY_TYPE, Identifier.of(Testmod.MOD_ID, "test_block_entity"),
                    FabricBlockEntityTypeBuilder.create(TestBlockEntity::new, ModBlocks.TEST).build(null));

The error I am encountering is in:

TestBlockEntity::new, ModBlocks.TEST

with it being: Cannot resolve method 'create(<method reference>, Block)'
any ideas on the issue?

little wave
#

probably wrong constructor

vague pasture
#

yeah quick fix

#

lol

#

sometimes its right under your nose like that

true lily
#

what was the fix for this? I am having the same issue

little wave
#

having the wrong constructor for your be

true lily
#

I know I should use BlockEntityType.Builder but for some reason it doesn't exist for me

#

at least according to Intellij

#

did they make any chances to it in fabric 1.21.4?