Java Code Examples for

The following are Jave code examples for showing how to use addWeatherEffect() of the class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: NemesisSystem   File:   Source Code and License Vote up 5 votes
private static void nemesisAnnounceEffects(EntityCreature nemesisEntity) {
	World world =;

	if (canSeeSky(nemesisEntity)) {
		world.addWeatherEffect(new EntityLightningBolt(, nemesisEntity.posX, nemesisEntity.posY, nemesisEntity.posZ, true));

	// TODO sound horn