Class NoteColorUtil

java.lang.Object
me.totalfreedom.particle.NoteColorUtil

public final class NoteColorUtil extends Object
A utility class for the 24 different note colors available in Minecraft. Each note is represented as a double value between 0 and 1. Furthermore, each note is a multiple of 1/24 within that range of 0 to 1.

For example, the note G is represented as 1/24, or 0.042. The note C is represented as 6/24, or 0.25.

When spawning particles, the count must be set to 0 and the extra value set between 0 and 1. The extra value is the size of the note particle. To add a color, use one of the provided methods in this class for the xOffset value in World.spawnParticle(Particle, double, double, double, int, double, double, double, double). The xOffset value is the note color, with the yOffset and zOffset values set to 0.