咳……又是自己摸索……
- T( M9 O$ M; N! j" dsel = SwarmUtils.getSelector("FoodSpace", "seedFood");
* y7 E1 d1 D5 | worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
8 v1 U: B, l& A# N" A+ D6 J1 h5 X) |9 c8 o r; [4 j
其中FoodSpace的seedFood函数:
( X9 C2 z' q n* u4 Gpublic Object seedFood(int x, int y) {
1 ^! c( s( t* y5 V E/ ^ putValue$atX$Y(1, x, y); e; L/ ^: v% [% {$ Q: P3 J4 i2 n( t
return this;# [3 Z% }8 @+ q. F! ~/ J) N8 |
} |