generateDynamicTexture

@NotNull
abstract fun generateDynamicTexture(@NotNull image: @NotNull BufferedImage): @NotNull DynamicTextureReference(source)

Dynamically load a buffered image into a minecraft bindable texture. The returned resource location must be destroyed.

Return

a resource location that can be used with bindTexture