Java Code Examples for net.minecraft.world.World.addWeatherEffect()

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

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

	// TODO sound horn
}