mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-06-29 08:05:12 +02:00
Tiny bit of bracket reformatting just for format consistency
This commit is contained in:
parent
954dfb74e5
commit
68bfaf6d23
|
@ -17,19 +17,16 @@ public enum SoundCategory {
|
||||||
private String name;
|
private String name;
|
||||||
private int id;
|
private int id;
|
||||||
|
|
||||||
SoundCategory(String name, int id)
|
SoundCategory(String name, int id) {
|
||||||
{
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName()
|
public String getName() {
|
||||||
{
|
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getId()
|
public int getId() {
|
||||||
{
|
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -257,36 +257,30 @@ public enum SoundEffect {
|
||||||
private String newname;
|
private String newname;
|
||||||
private SoundCategory cat;
|
private SoundCategory cat;
|
||||||
|
|
||||||
SoundEffect(String name, String newname, SoundCategory cat)
|
SoundEffect(String name, String newname, SoundCategory cat) {
|
||||||
{
|
|
||||||
this.cat = cat;
|
this.cat = cat;
|
||||||
this.newname = newname;
|
this.newname = newname;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static SoundEffect getByName(String name)
|
public static SoundEffect getByName(String name) {
|
||||||
{
|
|
||||||
name = name.toLowerCase();
|
name = name.toLowerCase();
|
||||||
for(SoundEffect e : SoundEffect.values())
|
for (SoundEffect e : SoundEffect.values()) {
|
||||||
{
|
if (e.getName().equals(name))
|
||||||
if(e.getName().equals(name))
|
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNewName()
|
public String getNewName() {
|
||||||
{
|
|
||||||
return newname;
|
return newname;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName()
|
public String getName() {
|
||||||
{
|
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SoundCategory getCategory()
|
public SoundCategory getCategory() {
|
||||||
{
|
|
||||||
return cat;
|
return cat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user