NovaTileEntityBlock
Properties
Link copied to clipboard
A list of all BlockBehaviors of this NovaBlock.
Link copied to clipboard
A list of all possible NovaBLockStates of this NovaBlock
Link copied to clipboard
The default block state of this NovaBlock.
Link copied to clipboard
Functions
Link copied to clipboard
suspend fun canPlace(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockPlace>): Boolean
Link copied to clipboard
Link copied to clipboard
Gets the first BlockBehavior that is an instance of T, or throws an IllegalStateException if there is none.
Gets the first BlockBehavior that is an instance of behavior, or throws an IllegalStateException if there is none.
Link copied to clipboard
Gets the first BlockBehavior that is an instance of T, or null if there is none.
Gets the first BlockBehavior that is an instance of type or a subclass, or null if there is none.
Link copied to clipboard
fun getDrops(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockBreak>): List<ItemStack>
Link copied to clipboard
fun getExp(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockBreak>): Int
Link copied to clipboard
fun handleAttack(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockBreak>)
Link copied to clipboard
open override fun handleBreak(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockBreak>)
Link copied to clipboard
Link copied to clipboard
fun handleInteract(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockInteract>): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun handlePlace(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockPlace>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Checks whether this NovaBlock has a BlockBehavior of the reified type T, or a subclass of it.
Checks whether this NovaBlock has a BlockBehavior of the specified class type, or a subclass of it.
Link copied to clipboard
fun pickBlockCreative(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockInteract>): ItemStack?
Link copied to clipboard