Invalidate Render State Callback
public interface InvalidateRenderStateCallback
Content copied to clipboard
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.
Deprecated
Replaced by net.fabricmc.fabric.api.client.rendering.v1.InvalidateRenderStateCallback
Functions
onInvalidate
Link copied to clipboard
abstract void onInvalidate()
Content copied to clipboard
Sources
jvm source
Link copied to clipboard