2013-03-22 19:05:58 +00:00
|
|
|
package net.minecraftforge.event.entity.player;
|
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraftforge.event.Cancelable;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Occurs when a player falls, but is able to fly. Doesn't need to be cancelable, this is mainly for notification purposes.
|
|
|
|
* @author Mithion
|
|
|
|
*
|
|
|
|
*/
|
2013-03-23 20:56:01 +00:00
|
|
|
public class PlayerFlyableFallEvent extends PlayerEvent
|
|
|
|
{
|
2013-03-22 19:05:58 +00:00
|
|
|
|
|
|
|
public float distance;
|
2013-03-23 20:56:01 +00:00
|
|
|
|
2013-03-22 19:05:58 +00:00
|
|
|
public PlayerFlyableFallEvent(EntityPlayer player, float f)
|
|
|
|
{
|
|
|
|
super(player);
|
|
|
|
this.distance = f;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|