mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
Player Flyable Fall Event
Adds an event to EntityPlayer that is posted on player fall when the player has flight capabilities.
This commit is contained in:
1 parent
fa2cbe2671
commit
ee6dce2390
2 files changed
+56
-25
No files matched your search
@@ -0,0 +1,21 @@
|
||||
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
|
||||
*
|
||||
*/
|
||||
public class PlayerFlyableFallEvent extends PlayerEvent{
|
||||
|
||||
public float distance;
|
||||
|
||||
public PlayerFlyableFallEvent(EntityPlayer player, float f)
|
||||
{
|
||||
super(player);
|
||||
this.distance = f;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user