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();
}
Aggregations