咳……又是自己摸索……
* a& t/ |* W% p) g& usel = SwarmUtils.getSelector("FoodSpace", "seedFood");6 Z5 M, k# s0 A' S
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
6 y) \$ I" t, n* X9 w5 E' \4 | ?0 {# n$ v
其中FoodSpace的seedFood函数:
* ?# b' P/ u% c, ?, ppublic Object seedFood(int x, int y) {$ `$ l/ S6 C( w' J' h2 z
putValue$atX$Y(1, x, y);
7 R; u. {% O4 o* n2 F return this;4 y, G9 @7 ~3 d: Z% P# i2 Y5 Z
} |