TileEntityLimited
Tracks tile-entity placement and removal and enforces tile-entity limits. Should only be applied to tile-entity blocks.
Functions
Link copied to clipboard
open suspend override 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 override fun handleBreak(pos: BlockPos, state: NovaBlockState, ctx: Context<DefaultContextIntentions.BlockBreak>)
Link copied to clipboard
Link copied to clipboard
open 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 override 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.