package land.chipmunk.chipmunkmod.song;


import net.minecraft.world.phys.Vec3;

public class Note implements Comparable<Note> {
    public Instrument instrument;
    public double pitch;
    public float volume;
    public long time;
    public Vec3 position;

    public Note (final Instrument instrument, final double pitch, final float volume, final long time, final Vec3 position) {
        this.instrument = instrument;
        this.pitch = pitch;
        this.volume = volume;
        this.time = time;
        this.position = position;
    }

    @Override
    public int compareTo (final Note other) {
        return Long.compare(time, other.time);
    }
}
