咳……又是自己摸索……
# S# G8 e7 }/ d, d& Dsel = SwarmUtils.getSelector("FoodSpace", "seedFood");
: Y3 n5 D9 E, U7 s8 |$ F0 e$ p& ] worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
& v6 M- S9 b/ [4 s3 s h/ ?
f$ u% y9 m' P, y I. @其中FoodSpace的seedFood函数:
' `$ j. h4 d4 r4 J8 U& ypublic Object seedFood(int x, int y) {
, [% q( D, O0 W( J putValue$atX$Y(1, x, y);
( l. g& W. r* h& M8 m; E2 \/ T return this;( Y0 b& ^3 c# E5 J
} |