createBuilder

abstract fun createBuilder(addonObject: Any, name: String, translation: String, icon: String, permission: String, weight: Int): ServerActivation.Builder

Creates a new activation builder for building server activations.

Return

A new builder for server activations.

Parameters

addonObject

The addon associated with the activation.

name

The name of the activation.

translation

The translation key for the activation.

icon

The icon representation of the source line can be a Minecraft ResourceLocation or a base64-encoded string.

permission

The permission required for the activation.

weight

The weight of the activation.


open fun createBuilder(addonObject: Any, name: String, translation: String, icon: InputStream, permission: String, weight: Int): ServerActivation.Builder

Creates a new activation builder for building server activations.

Return

A new builder for server activations.

Parameters

addonObject

The addon associated with the activation.

name

The name of the activation.

translation

The translation key for the activation.

icon

An InputStream representing the icon image.

permission

The permission required for the activation.

weight

The weight of the activation.