getDrops

@Nullable
open fun getDrops(@NotNull location: @NotNull Location): @Nullable List<@NotNull 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.


@Nullable
open fun getDrops(@NotNull location: @NotNull Location, @Nullable tool: @Nullable ItemStack): @Nullable List<@NotNull 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.


@Nullable
abstract fun getDrops(@NotNull location: @NotNull Location, @Nullable source: @Nullable Any, @Nullable tool: @Nullable ItemStack): @Nullable List<@NotNull 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.