setProfession with professionID
With this method, you can disguise as a "generic" villager, which is not in the Profession enum
This commit is contained in:
parent
d33af82177
commit
ddb76d7488
@ -18,8 +18,11 @@ public class VillagerWatcher extends AgeableWatcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setProfession(Profession newProfession) {
|
public void setProfession(Profession newProfession) {
|
||||||
setValue(16, newProfession.getId() % 6);
|
setProfession(newProfession.getId() % 6);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProfession(int professionId){
|
||||||
|
setValue(16, professionId);
|
||||||
sendData(16);
|
sendData(16);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user