canPlace

abstract fun canPlace(player: OfflinePlayer, item: ItemStack, location: 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(tileEntity: TileEntity, item: ItemStack, location: 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.