Package me.totalfreedom.particle
Class NoteColorUtil
java.lang.Object
me.totalfreedom.particle.NoteColorUtil
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final double -
Method Summary
-
Field Details
-
CYAN_NOTE_F_SHARP_LOW
public static final double CYAN_NOTE_F_SHARP_LOW- See Also:
-
CYAN_NOTE_G
public static final double CYAN_NOTE_G- See Also:
-
GRAY_NOTE_G_SHARP
public static final double GRAY_NOTE_G_SHARP- See Also:
-
GRAY_NOTE_A
public static final double GRAY_NOTE_A- See Also:
-
GRAY_NOTE_A_SHARP
public static final double GRAY_NOTE_A_SHARP- See Also:
-
MAGENTA_NOTE_B
public static final double MAGENTA_NOTE_B- See Also:
-
RED_NOTE_C
public static final double RED_NOTE_C- See Also:
-
YELLOW_NOTE_C_SHARP
public static final double YELLOW_NOTE_C_SHARP- See Also:
-
YELLOW_NOTE_D
public static final double YELLOW_NOTE_D- See Also:
-
YELLOW_NOTE_D_SHARP_LOW
public static final double YELLOW_NOTE_D_SHARP_LOW- See Also:
-
GRAY_NOTE_E
public static final double GRAY_NOTE_E- See Also:
-
GRAY_NOTE_F
public static final double GRAY_NOTE_F- See Also:
-
GRAY_NOTE_F_SHARP
public static final double GRAY_NOTE_F_SHARP- See Also:
-
LIGHT_BLUE_NOTE_G
public static final double LIGHT_BLUE_NOTE_G- See Also:
-
BLUE_NOTE_G_SHARP
public static final double BLUE_NOTE_G_SHARP- See Also:
-
PURPLE_NOTE_A
public static final double PURPLE_NOTE_A- See Also:
-
PURPLE_NOTE_A_SHARP
public static final double PURPLE_NOTE_A_SHARP- See Also:
-
PURPLE_NOTE_B
public static final double PURPLE_NOTE_B- See Also:
-
GRAY_NOTE_C
public static final double GRAY_NOTE_C- See Also:
-
GRAY_NOTE_C_SHARP
public static final double GRAY_NOTE_C_SHARP- See Also:
-
GRAY_NOTE_D
public static final double GRAY_NOTE_D- See Also:
-
YELLOW_NOTE_D_SHARP_HIGH
public static final double YELLOW_NOTE_D_SHARP_HIGH- See Also:
-
YELLOW_NOTE_E
public static final double YELLOW_NOTE_E- See Also:
-
YELLOW_NOTE_F
public static final double YELLOW_NOTE_F- See Also:
-
CYAN_NOTE_F_SHARP_HIGH
public static final double CYAN_NOTE_F_SHARP_HIGH- See Also:
-
BLACK_NOTE_NA
public static final double BLACK_NOTE_NA- See Also:
-