mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 21:17:32 +00:00
IPlayerModelData:
-Added allEnabled function for setting all parts as enabled.
This commit is contained in:
1 parent
76761c4f3d
commit
bfb262a487
1 file changed
+6
@@ -130,6 +130,12 @@ public class PlayerModelData implements IPlayerModelData {
|
||||
this.animRate = animRate;
|
||||
}
|
||||
|
||||
public void allEnabled(boolean enabled) {
|
||||
for (int i = 0; i < 6; i++) {
|
||||
this.getPart(i).setEnabled(enabled);
|
||||
}
|
||||
}
|
||||
|
||||
public void allAnimated(boolean animated) {
|
||||
for (int i = 0; i < 6; i++) {
|
||||
this.getPart(i).setAnimated(animated);
|
||||
|
||||
Reference in new issue
Block a user