RenderAttachmentBlockEntity

public interface RenderAttachmentBlockEntity

Interface for BlockEntitys 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.

Functions

getRenderAttachmentData
Link copied to clipboard
@Nullable()
abstract Object getRenderAttachmentData()
The model state data provided by this block entity.

Inheritors

MixinBlockEntity
Link copied to clipboard

Sources

jvm source
Link copied to clipboard