InvalidateRenderStateCallback

public interface InvalidateRenderStateCallback

Called when the world renderer reloads, usually as result of changing resource pack or video configuration, or when the player types F3+A in the debug screen. Afterwards all render chunks will be reset and reloaded.

Render chunks and other render-related object instances will be made null or invalid after this event so do not use it to capture dependent state. Instead, use it to invalidate state and reinitialize lazily.

Functions

onInvalidate
Link copied to clipboard
abstract void onInvalidate()

Sources

jvm source
Link copied to clipboard