All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bukkit.event.hanging.HangingEvent Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package org.bukkit.event.hanging;

import org.bukkit.entity.Hanging;
import org.bukkit.event.Event;

/**
 * Represents a hanging entity-related event.
 */
public abstract class HangingEvent extends Event {
  protected Hanging hanging;

  protected HangingEvent(final Hanging painting) {
    this.hanging = painting;
  }

  /**
   * Gets the hanging entity involved in this event.
   *
   * @return the hanging entity
   */
  public Hanging getEntity() {
    return hanging;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy