List of usage examples for net.minecraftforge.event.entity EntityMountEvent isDismounting
public boolean isDismounting()
From source file:com.parachute.common.PlayerMountEvent.java
License:Open Source License
@SuppressWarnings("unused") @SubscribeEvent/* w w w.j a va2 s .c o m*/ public void onMount(EntityMountEvent event) { if (event.entityBeingMounted instanceof EntityParachute && event.isDismounting()) { event.setCanceled(true); ((EntityParachute) event.entityBeingMounted).dismountParachute(); } }