You can do this in 1 line of code! Come on)) e.setCancelled(e.toWeatherState()); This should be typed in WeatherChangeEvent