Properties

Link copied to clipboard
val id: ResourceLocation

Functions

Link copied to clipboard
open fun addBehaviors(vararg block: BlockBehaviorHolder)

Adds the behaviors to the behaviors of this block.

Link copied to clipboard
open fun behaviors(vararg behaviors: BlockBehaviorHolder)

Sets the behaviors of this block to behaviors.

Link copied to clipboard
fun config(name: String)

Configures the name of the config file in this addon's namespace.

Link copied to clipboard
fun localizedName(localizedName: String)

Sets the localization key of the block.

Link copied to clipboard
fun models(buildModel: BlockModelLayoutBuilder.() -> Unit)
Link copied to clipboard
fun name(name: Component)

Sets the name of the block.

Link copied to clipboard
fun rawConfig(id: String)
fun rawConfig(id: ResourceLocation)

Configures the id of this config file in the format namespace:name.

Link copied to clipboard
fun stateProperties(vararg stateProperties: ScopedBlockStateProperty<*>)

Adds the stateProperties to the properties of this block.

Link copied to clipboard
fun style(vararg decorations: TextDecoration)
fun style(style: Style)
fun style(color: TextColor)
fun style(decoration: TextDecoration)
fun style(color: TextColor, vararg decorations: TextDecoration)

Sets the style of the block name.