* @return True to allow default logic to continue, False to suppress it
*/
public boolean onRightClick(Block clickedBlock, Player player, ItemStack heldItem, long clickInterval) {
// Handle interaction with minecart or rails onto another Block
if (MaterialUtil.ISMINECART.get(heldItem) || Util.ISTCRAIL.get(heldItem)) {
Material type = clickedBlock == null ? Material.AIR : clickedBlock.getType();
if (Util.ISTCRAIL.get(type)) {
if (MaterialUtil.ISMINECART.get(heldItem)) {
// Handle the interaction with rails while holding a minecart
// Place a TrainCart/Minecart on top of the rails, and handles permissions
return handleMinecartPlacement(player, clickedBlock, type);