mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 07:17:27 +00:00
IJobPuppet:
-Added allEnabled function for setting all parts as enabled.
This commit is contained in:
1 parent
54d89bab39
commit
01848e82c8
1 file changed
+6
@@ -31,6 +31,12 @@ public class ScriptJobPuppet extends ScriptJobInterface implements IJobPuppet {
|
||||
return null;
|
||||
}
|
||||
|
||||
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