org.spigotmc.event.entity.EntityDismountEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
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