Advertisement
Guest User

Untitled

a guest
May 12th, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. @Optional.Method(modid = "OpenComputers")
  2. @Callback(doc = "function():boolean; sets to attack hostile mobs or not.")
  3. public Object[] setAttacksMobs(Context context, Arguments args) {
  4. this.setAttacksMobs(args.checkBoolean(0));
  5. return null;
  6. }
  7.  
  8. // Usage from Lua side: component.<componentName>.setAttacksMobs(true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement