咳……又是自己摸索……
6 U$ x2 {2 J! t9 H6 Tsel = SwarmUtils.getSelector("FoodSpace", "seedFood");- {8 A( _5 {, V+ o5 P: x
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
: t+ b+ `# u* s5 _/ _. Y" S+ }% K: W I! j( d2 V) M# }
其中FoodSpace的seedFood函数:
, n" @' C- o- G7 Z1 \6 ]public Object seedFood(int x, int y) {
: m8 n7 [8 N0 \; {0 r putValue$atX$Y(1, x, y);
# N& [* Z. l$ c1 e0 {, J/ J X return this;! S' A& b2 Y$ W. d9 N
} |