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

org.spigotmc.event.entity.EntityDismountEvent Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package org.spigotmc.event.entity;

import org.bukkit.entity.Entity;
import org.bukkit.event.HandlerList;
import org.bukkit.event.entity.EntityEvent;

/**
 * Called when an entity stops riding another entity.
 */
public class EntityDismountEvent extends EntityEvent {

  private static final HandlerList handlers = new HandlerList();
  private final Entity dismounted;
  private boolean cancelled;

  public EntityDismountEvent(Entity what, Entity dismounted) {
    super(what);
    this.dismounted = dismounted;
  }

  public static HandlerList getHandlerList() {
    return handlers;
  }

  public Entity getDismounted() {
    return dismounted;
  }

  @Override
  public HandlerList getHandlers() {
    return handlers;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy