Tiny bit of bracket reformatting just for format consistency

This commit is contained in:
Myles 2016-03-01 11:00:06 +00:00
parent 954dfb74e5
commit 68bfaf6d23
2 changed files with 300 additions and 309 deletions

View File

@ -17,19 +17,16 @@ public enum SoundCategory {
private String name;
private int id;
SoundCategory(String name, int id)
{
SoundCategory(String name, int id) {
this.name = name;
this.id = id;
}
public String getName()
{
public String getName() {
return name;
}
public int getId()
{
public int getId() {
return id;
}

View File

@ -257,36 +257,30 @@ public enum SoundEffect {
private String newname;
private SoundCategory cat;
SoundEffect(String name, String newname, SoundCategory cat)
{
SoundEffect(String name, String newname, SoundCategory cat) {
this.cat = cat;
this.newname = newname;
this.name = name;
}
public static SoundEffect getByName(String name)
{
public static SoundEffect getByName(String name) {
name = name.toLowerCase();
for(SoundEffect e : SoundEffect.values())
{
for (SoundEffect e : SoundEffect.values()) {
if (e.getName().equals(name))
return e;
}
return null;
}
public String getNewName()
{
public String getNewName() {
return newname;
}
public String getName()
{
public String getName() {
return name;
}
public SoundCategory getCategory()
{
public SoundCategory getCategory() {
return cat;
}