BlockRenderLayerMap

public interface BlockRenderLayerMap

Use to associate blocks or fluids with block render layer other than default. Replaces the {@code renderLayer} property previously on {@code Block}.

{@code BlockRenderLayer} controls how sprite pixels for fluids and blocks are blended with the scene. Consult the vanilla {@code BlockRenderLayer} implementation for examples.

The Fabric Renderer API can be used to control this at a per-quad level at the code via {@code BlendMode}.

Client-side only.

Functions

putBlock
Link copied to clipboard
abstract void putBlock(Block block, RenderLayer renderLayer)
Map (or re-map) a block state with a render layer.
putBlocks
Link copied to clipboard
abstract void putBlocks(RenderLayer renderLayer, Array<Block> blocks)
Map (or re-map) multiple block states with a render layer.
putFluid
Link copied to clipboard
abstract void putFluid(Fluid fluid, RenderLayer renderLayer)
Map (or re-map) a fluid state with a render layer.
putFluids
Link copied to clipboard
abstract void putFluids(RenderLayer renderLayer, Array<Fluid> fluids)
Map (or re-map) multiple fluid states with a render layer.
putItem
Link copied to clipboard
abstract void putItem(Item item, RenderLayer renderLayer)
Map (or re-map) a item with a render layer.
putItems
Link copied to clipboard
abstract void putItems(RenderLayer renderLayer, Array<Item> items)
Map (or re-map) multiple items with a render layer.

Inheritors

BlockRenderLayerMapImpl
Link copied to clipboard

Sources

jvm source
Link copied to clipboard