Store the type of watcher this disguise will use

This commit is contained in:
Andrew 2013-07-28 10:59:49 +12:00
parent e755ed24db
commit 593f3f492b

View File

@ -135,6 +135,7 @@ public enum DisguiseType {
private int defaultId;
private int entityId;
private EntityType entityType;
private Class watcherClass;
private DisguiseType(EntityType newType, int... obj) {
entityType = newType;
@ -160,6 +161,14 @@ public enum DisguiseType {
return defaultData;
}
public Class getWatcherClass() {
return watcherClass;
}
public void setWatcherClass(Class c) {
watcherClass = c;
}
public int getDefaultId() {
return defaultId;
}
@ -179,7 +188,7 @@ public enum DisguiseType {
public boolean isPlayer() {
return entityType == EntityType.PLAYER;
}
public EntityType getEntityType() {
return entityType;
}