mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
Added getProfessionId() and setProfessionId(int id)
This commit is contained in:
parent
66be1f8fa9
commit
6b58c8ef5f
1 changed files with 10 additions and 2 deletions
|
@ -17,9 +17,17 @@ public class VillagerWatcher extends AgeableWatcher {
|
|||
return Profession.values()[(Integer) getValue(16, 0)];
|
||||
}
|
||||
|
||||
public void setProfession(Profession newProfession) {
|
||||
setValue(16, newProfession.getId());
|
||||
public int getProfessionId() {
|
||||
return (Integer) getValue(16, 0);
|
||||
}
|
||||
|
||||
public void setProfessionId(int profession) {
|
||||
setValue(16, profession % 6);
|
||||
sendData(16);
|
||||
}
|
||||
|
||||
public void setProfession(Profession newProfession) {
|
||||
setProfessionId(newProfession.getId());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue