咳……又是自己摸索……
2 Z4 J6 L- ?3 zsel = SwarmUtils.getSelector("FoodSpace", "seedFood");! p% W1 P" {/ e* W) I& p* e
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);/ w, k1 z; m% a7 [( q+ s
6 Y1 V5 c* p3 n5 v4 G: d
其中FoodSpace的seedFood函数:
- r; g# r7 h" q+ P3 Kpublic Object seedFood(int x, int y) {
; a; `1 C2 e. P putValue$atX$Y(1, x, y);1 M; \6 z7 B& P" l7 n- v* P
return this;
: @/ Q* Z( q) z, B! y } |