Waterloggable
Allows water-logging blocks via right-clicking with buckets. Requires the WATERLOGGED property.
Functions
Link copied to clipboard
open suspend fun canPlace(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockPlace>): Boolean
Link copied to clipboard
open fun getDrops(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockBreak>): List<ItemStack>
Link copied to clipboard
open fun getExp(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockBreak>): Int
Link copied to clipboard
open fun handleAttack(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockBreak>)
Link copied to clipboard
open fun handleBreak(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockBreak>)
Link copied to clipboard
Link copied to clipboard
open override fun handleInteract(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockInteract>): Boolean
Link copied to clipboard
Called when a block at neighborPos changed next to this state at pos.
Link copied to clipboard
open fun handlePlace(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockPlace>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun pickBlockCreative(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockInteract>): ItemStack?
Link copied to clipboard
Whether this behavior implements random-tick logic for the given state. Note that the result of this method will be cached on startup.
Link copied to clipboard
Called when a block at neighborPos changed to update the NovaBlockState of this state at pos.