I recently found myself in a situation, where I have a method, annotated with @Environment(EnvType.Client), which contains a lambda expression, referencing a client-only class (in my case ...
Personal chest unusable, right clicking to open it generates a error log on the server, "[Server thread/FATAL] [minecraft/ThreadTaskExecutor]: Error executing task on ...