/FileExtraction/Java_unseen/Wind-Development_WindSpigot/WindSpigot-API/src/main/java/org/bukkit/event/hanging/HangingBreakByEntityEvent.java
package org.bukkit.event.hanging;

import org.bukkit.entity.Entity;
import org.bukkit.entity.Hanging;

/**
 * Triggered when a hanging entity is removed by an entity
 */
public class HangingBreakByEntityEvent extends HangingBreakEvent {
	private final Entity remover;

	public HangingBreakByEntityEvent(final Hanging hanging, final Entity remover) {
		super(hanging, HangingBreakEvent.RemoveCause.ENTITY);
		this.remover = remover;
	}

	/**
	 * Gets the entity that removed the hanging entity
	 *
	 * @return the entity that removed the hanging entity
	 */
	public Entity getRemover() {
		return remover;
	}
}
