001 package org.bukkit.event.hanging; 002 003 import org.bukkit.entity.Hanging; 004 import org.bukkit.event.Event; 005 006 /** 007 * Represents a hanging entity-related event. 008 */ 009 public abstract class HangingEvent extends Event { 010 protected Hanging hanging; 011 012 protected HangingEvent(final Hanging painting) { 013 this.hanging = painting; 014 } 015 016 /** 017 * Gets the hanging entity involved in this event. 018 * 019 * @return the hanging entity 020 */ 021 public Hanging getEntity() { 022 return hanging; 023 } 024 }