Interface FabricRenderState
@NonExtendable
public interface FabricRenderState
Fabric-provided extensions for render states, allowing for the addition of extra render data.
Note: This interface is automatically implemented on the following classes via Mixin and interface injection:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidClears all extra render data on the render state.default <T> TgetData(RenderStateDataKey<T> key) Get extra render data from the render state.default <T> voidsetData(RenderStateDataKey<T> key, T value) Set extra render data to the render state.
-
Method Details
-
getData
Get extra render data from the render state.- Type Parameters:
T- the type of the data- Parameters:
key- the key of the data- Returns:
- the data, or
nullif it cannot be found.
-
setData
Set extra render data to the render state.- Type Parameters:
T- the type of the data- Parameters:
key- the key of the datavalue- the data
-
clearExtraData
default void clearExtraData()Clears all extra render data on the render state.
-