You know when you want nicely labeled storage, but your Item Frames or Label Signs always get in the way of opening chests?
No more!
Clickthrough allows players to simply click "through" item frames and signs that are placed on chests, barrels, furnaces, etc. Basically, any block that has an inventory. Clicking on the item frame without sneaking simply opens the container the item frame / sign is attached to. The item frames and signs can still be modified by sneaking.
Credit to
@WMGameLive for the shulker obstruction check.
More precisely (and technical)
To be precise, players can click through any Entity whose type is or extends
org.bukkit.entity.ItemFrame, given that it is placed on a block, of which its BlockState (
block.getState()) is or implements
org.bukkit.inventory.BlockInventoryHolder
.
Additionally, since the 1.1, any block, of which the
BlockData
is instanceof
org.bukkit.block.data.type.WallSign
, we can also click through it.
In the case of chests, this only applies if the material of the block above the chest returns
false
when
material.isOccluding()
is called.