List of usage examples for net.minecraftforge.client.event FOVUpdateEvent getEntity
public PlayerEntity getEntity()
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); } }