You can cache the BufferBuilder results by doing the same thing that RenderChunk does. I’ll write you some example code in a bit because it’s relatively complicated and I have lots of experience but the basic idea is:
1) Render your data to your own BufferBuilder
2) Render your BufferBuilder from the event
3) Update the BufferBuilder when your data changes
Hi there!
Looks like you're not actually drawing your background anywhere, just binding the texture.
Try calling Gui#drawTexturedModalRect(...) in the drawScreen method
.
1. You might want to try looking at the vanilla bed and see how it handles it (manually sets and breaks adjacent bed block).
2.
These indicate that you are not familiar with basic java. Please learn java before making a mod.