3
0

Initial commit (Forge 1291).

This commit is contained in:
gamerforEA
2015-03-22 20:38:04 +03:00
commit 16773ead6a
611 changed files with 64826 additions and 0 deletions

View File

@ -0,0 +1,39 @@
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 boolean cancelled;
private final Entity dismounted;
public EntityDismountEvent(Entity what, Entity dismounted)
{
super( what );
this.dismounted = dismounted;
}
public Entity getDismounted()
{
return dismounted;
}
@Override
public HandlerList getHandlers()
{
return handlers;
}
public static HandlerList getHandlerList()
{
return handlers;
}
}

View File

@ -0,0 +1,52 @@
package org.spigotmc.event.entity;
import org.bukkit.entity.Entity;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
import org.bukkit.event.entity.EntityEvent;
/**
* Called when an entity attempts to ride another entity.
*
*/
public class EntityMountEvent extends EntityEvent implements Cancellable
{
private static final HandlerList handlers = new HandlerList();
private boolean cancelled;
private final Entity mount;
public EntityMountEvent(Entity what, Entity mount)
{
super( what );
this.mount = mount;
}
public Entity getMount()
{
return mount;
}
@Override
public boolean isCancelled()
{
return cancelled;
}
@Override
public void setCancelled(boolean cancel)
{
this.cancelled = cancel;
}
@Override
public HandlerList getHandlers()
{
return handlers;
}
public static HandlerList getHandlerList()
{
return handlers;
}
}