Fix indent and broken with setter

This commit is contained in:
Olof Larsson 2016-03-01 19:36:23 +01:00
parent 5b835073e0
commit ea0539b24e
2 changed files with 44 additions and 43 deletions

View File

@ -36,7 +36,8 @@ public final class SoundEffect implements Serializable
// FIELDS: WITH // FIELDS: WITH
// -------------------------------------------- // // -------------------------------------------- //
public SoundEffect withSound(Sound sound) { return new SoundEffect(soundId, volume, pitch); } public SoundEffect withSoundId(String soundId) { return new SoundEffect(soundId, volume, pitch); }
public SoundEffect withSound(Sound sound) { return new SoundEffect(TypeSound.get().getId(sound), volume, pitch); }
public SoundEffect withVolume(float volume) { return new SoundEffect(soundId, volume, pitch); } public SoundEffect withVolume(float volume) { return new SoundEffect(soundId, volume, pitch); }
public SoundEffect withPitch(float pitch) { return new SoundEffect(soundId, volume, pitch); } public SoundEffect withPitch(float pitch) { return new SoundEffect(soundId, volume, pitch); }