/*** Gets the player associated with the event.** @return The player triggering the enchant.*/publicPlayergetPlayer() {// Method implementation}@OverridepublicbooleanisCancelled() {return isCancelled;}@OverridepublicvoidsetCancelled(boolean cancelled) {this.isCancelled= cancelled;}/*** Gets the name of the enchant triggering the event.** @return The name of the enchant.*/publicStringgetEnchant() {// Method implementation}