getBlockTextureItem

open fun getBlockTextureItem(): <Error class: unknown class>?(source)

Returns the item that should be used to display the block's texture.

By default, returns the item with the same key as the block, marked with the rebarBlockTextureEntityKey. The item will also have custom model data with the vanilla block state properties of the block, merged with any custom properties provided by the block. (see getBlockTextureProperties) This allows resource packs to provide different models/textures for different block states.

It is recommended to only override this method if you definitely need to, for most use cases you should only ever need to override getBlockTextureProperties.

Return

the item that should be used to display the block's texture