BlockDrops
Simple block drop logic for non-tile-entity blocks. Should not be used for tile-entity blocks.
See also
Functions
Link copied to clipboard
Link copied to clipboard
open override fun getDrops(pos: BlockPos, state: NovaBlockState, ctx: Context<BlockBreak>): List<ItemStack>
Retrieves the items that would be dropped when breaking a block of state at pos with the given ctx. Handlers should check BlockBreak.BLOCK_DROPS and BlockBreak.BLOCK_STORAGE_DROPS.
Link copied to clipboard
Retrieves the amount of experience that would be dropped when breaking a block of state at pos with the given ctx. Handlers should check BlockBreak.BLOCK_EXP_DROPS.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun pickBlockCreative(pos: BlockPos, state: NovaBlockState, ctx: Context<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.
Link copied to clipboard
Link copied to clipboard
open fun useItemOn(pos: BlockPos, state: NovaBlockState, ctx: Context<BlockInteract>): InteractionResult