Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
HangingEvent.java
1 package org.bukkit.event.hanging;
2 
3 import org.bukkit.entity.Hanging;
4 import org.bukkit.event.Event;
5 
6 /**
7  * Represents a hanging entity-related event.
8  */
9 public abstract class HangingEvent extends Event {
10  protected Hanging hanging;
11 
12  protected HangingEvent(final Hanging painting) {
13  this.hanging = painting;
14  }
15 
16  /**
17  * Gets the hanging entity involved in this event.
18  *
19  * @return the hanging entity
20  */
21  public Hanging getEntity() {
22  return hanging;
23  }
24 }