putBlock

void putBlock(Block block, RenderLayer renderLayer)

Map (or re-map) a block state with a render layer. Re-mapping is not recommended but if done, last one in wins.Must be called from client thread prior to world load/rendering. Best practice will be to call from mod's client initializer.

Parameters

block

Identifies block to be mapped.

renderLayer

Render layer. Should be one of the layers used for terrain rendering.

Sources

jvm source
Link copied to clipboard