咳……又是自己摸索……
5 N9 n# H1 ~0 Msel = SwarmUtils.getSelector("FoodSpace", "seedFood");
8 F- M9 f, N" O worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
+ Q K: \8 V7 l
) x0 @+ {* k) Z6 j; s% P其中FoodSpace的seedFood函数:
- S3 r+ b6 r" K- e) i" X4 y4 Jpublic Object seedFood(int x, int y) {& O( p: a5 p& C
putValue$atX$Y(1, x, y);8 m0 i& K0 F+ w9 l$ y6 J* }0 `
return this;
8 @) ~2 T: |, j) | _ } |