NovaBlock

interface NovaBlock

Functions

Link copied to clipboard
@NotNull
abstract fun getId(): @NotNull NamespacedId
Gets the id of this block type.
Link copied to clipboard
@Nullable
abstract fun getItem(): @Nullable NovaItem
Gets the item for this block type, or null if there is none.
Link copied to clipboard
@NotNull
open fun getLocalizedName(locale: String): @NotNull String
Gets the localized name of this block type.
Link copied to clipboard
@NotNull
abstract fun getName(): @NotNull Component
Gets the name of this block type.
Link copied to clipboard
@NotNull
abstract fun getPlaintextName(@NotNull locale: @NotNull String): @NotNull String
Gets the plaintext name of this block type.