ESBlockPlaceEvent

The Enchantment Solution Block Place Event is an event called when blocks are placed through the use of Enchantment Solution.

Description
The ESBlockPlaceEvent is a class that adds the enchantment level information to a BlockPlaceEvent for use in Enchantment Solution.

Constructor
ESBlockPlaceEvent(Block placedBlock, BlockState replacedBlockState, Block placedAgainst, ItemStack itemInHand, Player thePlayer, boolean canBuild, EquipmentSlot hand, EnchantmentLevel enchantment)
 * // Block placedBlock - the block being placed
 * // BlockState replacedBlockState - the replaced block's blockstate
 * // Block placedAgainst - the block this block was placed against
 * // ItemStack itemInHand - the item to be placed
 * // boolean canBuild - whether the player can build in this spot
 * // EquipmentSlot hand - which hand the item is being placed from
 * // EnchantmentLevel enchantment - the enchantment and level of the enchantment modifying the block

Implements
None

Extends
BlockPlaceEvent

EnchantmentLevel getEnchantment
Returns the enchantment and level modifying the block