Skip to content

The method onUse(World, PlayerEntity, BlockHitResult) of type ExampleBlock must override or implement a supertype method #3849

Closed Answered by rackodo
rackodo asked this question in Mod Dev Support
Discussion options

You must be logged in to vote

UPDATE:

Resolved by matching the onUse method with the one found in AbstractBlock.class.

Changed:
onUse(World world, PlayerEntity player, BlockHitResult hit)
to:
onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rackodo
Comment options

You must be logged in to vote
1 reply
@rackodo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
2 participants