public class DemoBlockEntity extends BlockEntity { [...] @Override public static void tick(World world, BlockPos pos, BlockState state, DemoBlockEntity blockEntity) { [...] } }