create Builder
abstract fun createBuilder(addonObject: Any, name: String, translation: String, icon: String, weight: Int): BaseServerSourceLine.Builder<T>
Creates a new builder for building server audio source lines.
Return
A new builder for server audio source line.
Parameters
addon Object
The addon associated with the source line.
name
The name of the source line.
translation
The translation key for the source line.
icon
The icon representation of the source line can be a Minecraft ResourceLocation or a base64-encoded string.
weight
The weight of the source line.
open fun createBuilder(addonObject: Any, name: String, translation: String, icon: InputStream, weight: Int): BaseServerSourceLine.Builder<T>
Creates a new builder for building instances of server audio source lines using an InputStream as the icon source. The icon will be encoded as a base64 string.
Return
A new builder for server audio source line.
Parameters
addon Object
The addon associated with the source line.
name
The name of the source line.
translation
The translation key for the source line.
icon
An InputStream representing the icon image.
weight
The weight of the source line.