@FunctionalInterface public interface RenderAttachmentBlockEntity
BlockEntity
s which provide dynamic model state data.
Dynamic model state data is separate from BlockState, and will be cached during render chunk building on the main thread (safely) and accessible during chunk rendering on non-main threads.
For this reason, please ensure that all accesses to the passed model data are thread-safe. This can be achieved by, for example, passing a pre-generated immutable object, or ensuring all gets performed on the passed object are atomic and well-checked for unusual states.
Modifier and Type | Method and Description |
---|---|
Object |
getRenderAttachmentData() |
Object getRenderAttachmentData()