mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 10:05:12 +01: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 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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user