咳……又是自己摸索……2 G- L: v5 k6 `9 M; e5 N, Y
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");( {, d1 ]& K& ~' @) y
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);4 ^- |" a3 O6 A5 L! @
- k) v; ^7 k) B8 ]& l3 U: f$ g8 k; H
其中FoodSpace的seedFood函数:! V7 ~0 f9 C# T. T
public Object seedFood(int x, int y) {
8 B( K5 Z$ D0 _' z. f3 ]$ P putValue$atX$Y(1, x, y);
5 u/ H9 k. Q1 `$ e: \" ^ J return this;7 k/ G3 l. {& @& l' F
} |