Add BlockFailedDispenseEvent

This commit is contained in:
TheViperShow
2020-04-22 09:40:38 +02:00
parent 84d13a09ca
commit 36eff9b616
3 changed files with 27 additions and 2 deletions

View File

@@ -2125,4 +2125,12 @@ public class CraftEventFactory {
return org.bukkit.craftbukkit.inventory.CraftItemStack.asNMSCopy(event.getPotion());
}
// Paper end - WitchReadyPotionEvent
// Paper start
public static boolean handleBlockFailedDispenseEvent(ServerLevel serverLevel, BlockPos pos) {
org.bukkit.block.Block block = CraftBlock.at(serverLevel, pos);
io.papermc.paper.event.block.BlockFailedDispenseEvent event = new io.papermc.paper.event.block.BlockFailedDispenseEvent(block);
return event.callEvent();
}
// Paper end
}