mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-06-24 10:14:51 +02:00
32 lines
576 B
Java
32 lines
576 B
Java
package me.libraryaddict.disguise.disguisetypes;
|
|
|
|
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) {
|
|
return type;
|
|
}
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
private final int type;
|
|
|
|
RabbitType(int type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public int getTypeId() {
|
|
return type;
|
|
}
|
|
}
|