Example usage for net.minecraftforge.client.event FOVUpdateEvent getEntity

List of usage examples for net.minecraftforge.client.event FOVUpdateEvent getEntity

Introduction

In this page you can find the example usage for net.minecraftforge.client.event FOVUpdateEvent getEntity.

Prototype

public PlayerEntity getEntity() 

Source Link

Usage

From source file:com.elytradev.thermionics.Thermionics.java

License:Open Source License

@SubscribeEvent
@SideOnly(Side.CLIENT)// w ww .  j av  a2 s . c om
public void updateFOV(FOVUpdateEvent event) {
    if (event.getEntity().getActivePotionEffect(Thermionics.POTION_EFFORTLESS_SPEED) != null) {
        event.setNewfov(1.0f);
    }
}