mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-04 08:59:47 +01:00
Why isn't this compiling?
This commit is contained in:
parent
63aae6d9d0
commit
931aa484d6
@ -1,15 +1,11 @@
|
||||
package me.libraryaddict.disguise.disguisetypes;
|
||||
|
||||
public enum RabbitType
|
||||
{
|
||||
public enum RabbitType {
|
||||
BLACK(2), BROWN(0), GOLD(4), KILLER_BUNNY(99), PATCHES(3), PEPPER(5), WHITE(1);
|
||||
|
||||
public static RabbitType getType(int id)
|
||||
{
|
||||
for (RabbitType type : values())
|
||||
{
|
||||
if (type.getTypeId() == id)
|
||||
{
|
||||
public static RabbitType getType(int id) {
|
||||
for (RabbitType type : values()) {
|
||||
if (type.getTypeId() == id) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
@ -19,13 +15,11 @@ public enum RabbitType
|
||||
|
||||
private int type;
|
||||
|
||||
private RabbitType(int type)
|
||||
{
|
||||
private RabbitType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public int getTypeId()
|
||||
{
|
||||
public int getTypeId() {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user