NovaTileEntityBlock

Properties

Link copied to clipboard
Link copied to clipboard

A list of all possible NovaBLockStates of this NovaBlock

Link copied to clipboard

The configuration for this NovaBlock. Trying to read config values from this when no config is present will result in an exception.

Link copied to clipboard

The default block state of this NovaBlock.

Link copied to clipboard
val id: ResourceLocation
Link copied to clipboard

The NovaItem associated with this NovaBlock.

Link copied to clipboard
val name: Component
Link copied to clipboard
Link copied to clipboard
val style: Style
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
inline fun <T : Any> getBehavior(): T

Gets the first BlockBehavior that is an instance of T, or throws an IllegalStateException if there is none.

fun <T : Any> getBehavior(behavior: KClass<T>): T

Gets the first BlockBehavior that is an instance of behavior, or throws an IllegalStateException if there is none.

Link copied to clipboard
inline fun <T : Any> getBehaviorOrNull(): T?

Gets the first BlockBehavior that is an instance of T, or null if there is none.

fun <T : Any> getBehaviorOrNull(type: KClass<T>): T?

Gets the first BlockBehavior that is an instance of type or a subclass, or null if there is none.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun handleEntityInside(pos: BlockPos, state: NovaBlockState, entity: Entity)
Link copied to clipboard
fun handleNeighborChanged(pos: BlockPos, state: NovaBlockState, neighborPos: BlockPos)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : Any> hasBehavior(): Boolean

Checks whether this NovaBlock has a BlockBehavior of the reified type T, or a subclass of it.

fun <T : Any> hasBehavior(type: KClass<T>): Boolean

Checks whether this NovaBlock has a BlockBehavior of the specified class type, or a subclass of it.

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun updateShape(pos: BlockPos, state: NovaBlockState, neighborPos: BlockPos): NovaBlockState