TexturePngBytesLookup


public fun interface TexturePngBytesLookup


Summary

Public methods

abstract byte[]
getTexturePngBytes(@NonNull String clientTextureId)

Low-level callback for retrieving texture PNG bytes to encode into a serialized BrushFamily.

Public methods

getTexturePngBytes

Added in 1.1.0-alpha04
abstract byte[] getTexturePngBytes(@NonNull String clientTextureId)

Low-level callback for retrieving texture PNG bytes to encode into a serialized BrushFamily.

Parameters
@NonNull String clientTextureId

The texture ID for the texture to encode.

Returns
byte[]

The PNG bytes of the texture bitmap to encode, or null to not encode any texture.