咳……又是自己摸索……
8 a& e5 {( Y( c& v" d' v$ I) {/ Zsel = SwarmUtils.getSelector("FoodSpace", "seedFood");
J4 M2 W# M- h0 g worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
" ^7 Z/ I: k+ f9 z5 G* n( u
3 K' u1 A5 V3 \& m- H/ q其中FoodSpace的seedFood函数:
7 I9 J, H9 \$ Dpublic Object seedFood(int x, int y) {
. |, G0 K# d- ]% N* g putValue$atX$Y(1, x, y);
. u! ~+ U9 `" w# e: Q/ @1 _ return this;
' J" V. Q# b; |- I5 Y) [ } |