Java Code Examples for net.minecraft.util.EnumParticleTypes#values()

The following examples show how to use net.minecraft.util.EnumParticleTypes#values() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EntityConverter.java    From NOVA-Core with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Override
@SideOnly(Side.CLIENT)
public void preInit(FMLPreInitializationEvent evt) {
	/**
	 * Backward register all particle effects
	 */
	//Look up for particle factory and pass it into BWParticle
	for (EnumParticleTypes type : EnumParticleTypes.values()) {
		Game.entities().register(Game.info().name + ":" + type.getParticleName(), () -> new BWParticle(type.getParticleID()));
	}
}
 
Example 2
Source File: EntityConverter.java    From NOVA-Core with GNU Lesser General Public License v3.0 5 votes vote down vote up
@Override
@SideOnly(Side.CLIENT)
public void preInit(FMLPreInitializationEvent evt) {
	/**
	 * Backward register all particle effects
	 */
	//Look up for particle factory and pass it into BWEntityFX
	for (EnumParticleTypes type : EnumParticleTypes.values()) {
		Game.entities().register(Game.info().name + ":" + type.getParticleName(), () -> new BWEntityFX(type.getParticleID()));
	}
}