Search in sources :

Example 1 with FOVUpdateEvent

use of net.minecraftforge.client.event.FOVUpdateEvent in project MinecraftForge by MinecraftForge.

the class ForgeHooksClient method getOffsetFOV.

public static float getOffsetFOV(EntityPlayer entity, float fov) {
    FOVUpdateEvent fovUpdateEvent = new FOVUpdateEvent(entity, fov);
    MinecraftForge.EVENT_BUS.post(fovUpdateEvent);
    return fovUpdateEvent.getNewfov();
}
Also used : FOVUpdateEvent(net.minecraftforge.client.event.FOVUpdateEvent)

Aggregations

FOVUpdateEvent (net.minecraftforge.client.event.FOVUpdateEvent)1