RebarAddon

interface RebarAddon : Keyed(source)

Welcome to the place where it all begins: the Rebar addon!

Inheritors

Properties

Link copied to clipboard

The name used to represent this addon in the guide and other places.

Link copied to clipboard

The name used to represent this addon in the item tooltips. By default, a blue italic <your-addon-key>.addon translation key.

Link copied to clipboard
abstract val javaPlugin: JavaPlugin

Must return this

Link copied to clipboard
open override val key: NamespacedKey
Link copied to clipboard
abstract val languages: Set<Locale>

The set of Locales this addon has translations for.

Link copied to clipboard
abstract val material: Material

The material to represent this addon in menus.

Link copied to clipboard
@get:JvmName(name = "suppressAddonNameWarning")
open val suppressAddonNameWarning: Boolean

If you use something besides the default <your-addon-key>.addon translation key for the addon name, set this to true to suppress warnings about the "missing" key.

Link copied to clipboard
@get:JvmName(name = "getTranslatorForAddon")
val RebarAddon.translator: RebarTranslator

Functions

Link copied to clipboard
open override fun getKey(): NamespacedKey
Link copied to clipboard
open fun key(): @NotNull Key
Link copied to clipboard
@ApiStatus.NonExtendable
open fun registerWithRebar()

Must be called as the first thing in your plugin's onEnable