咳……又是自己摸索……
+ e9 l- ?+ Q5 R) Y* S" s9 o* V& w- tsel = SwarmUtils.getSelector("FoodSpace", "seedFood");
6 I2 q6 T% r7 R7 t; _/ p4 Q2 v worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
, n9 ^; i. k# A F) @
' j( v3 p7 v2 I2 K* f其中FoodSpace的seedFood函数:
% O7 H: ~2 s1 i& R. ?3 Ppublic Object seedFood(int x, int y) {
+ {. \" ]4 q7 F, V4 B putValue$atX$Y(1, x, y);; I7 t* K5 n% U: B. l v& \; |
return this;
3 j7 o" p+ f) c* H" j: a. n$ a } |