getDrops

open fun getDrops(location: Location): List<ItemStack>

Gets the drops of the Nova block at that location or null if there is no Nova block there.

Return

The list of drops or null if there is no block from Nova at that location.

Parameters

location

The location of the Nova block.


open fun getDrops(location: Location, tool: ItemStack): List<ItemStack>

Gets the drops of the Nova block at that location as if it was mined with the given tool or null if there is no Nova block there.

Return

The list of drops or null if there is no block from Nova at that location.

Parameters

location

The location of the Nova block.

tool

The tool that should be used.


abstract fun getDrops(location: Location, source: Any, tool: ItemStack): List<ItemStack>

Gets the drops of the Nova block at that location as if it was mined by source with the given tool or null if there is no Nova block there.

Return

The list of drops or null if there is no block from Nova at that location.

Parameters

location

The location of the Nova block.

source

The source of this action. Could be a player, tile-entity or similar.

tool

The tool that should be used.