canPlace

abstract fun canPlace(@NotNull player: @NotNull OfflinePlayer, @NotNull item: @NotNull ItemStack, @NotNull location: @NotNull Location): Boolean

Checks if that OfflinePlayer can place an ItemStack at that Location.

Return

If the player can place the block.

Parameters

player

The player trying to place the block.

item

The item to place.

location

The location of the block.


open fun canPlace(@NotNull tileEntity: @NotNull TileEntity, @NotNull item: @NotNull ItemStack, @NotNull location: @NotNull Location): Boolean

Checks if that TileEntity can place an ItemStack at that Location.

Return

If the tile-entity can place the block.

Parameters

tileEntity

The tile-entity trying to place the block.

item

The item to place.

location

The location of the block.