咳……又是自己摸索……& @ g/ [. ^: K W- \
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");
$ e) T- \8 G- Z worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);- Z$ p$ o4 M% I. Y! H
. |" ]9 O( O3 r- B( K1 {- V& f
其中FoodSpace的seedFood函数:
$ x Y2 {5 Z- u/ Tpublic Object seedFood(int x, int y) {
% q7 z- T6 r) \0 J% r putValue$atX$Y(1, x, y);) O0 m! ^0 L4 c2 }
return this; E6 Z% R/ Q) s# Y! W# A h
} |