一個java檔案(自動生成的)轉class,總是出現需要class, interface或enum

代碼如下
Package/com/flansmod/client/model/mw;
Import/com/flansmod/client/tmt/modelrendererturbo;
public class modelg36 extends modelgun
{
public modelg36()
{
int texturex = 64;
int texturey = 16;
gunmodel = new modelrendererturbo[7];
gunmodel[0] = new modelrendererturbo(this, 0, 0, texturex, texturey);
gunmodel[0].addbox(-1f, 2f, -1f, 15, 2, 2);
gunmodel[1] = new modelrendererturbo(this, 0, 4, texturex, texturey);
gunmodel[1].addbox(1f, 4f, -1f, 5, 0.5f, 2);
gunmodel[2] = new modelrendererturbo(this, 0, 7, texturex, texturey);
gunmodel[2].addbox(2f, 4.5f, -1f, 9, 0.5f, 2);
gunmodel[3] = new modelrendererturbo(this, 14, 4, texturex, texturey);
gunmodel[3].addbox(10f, 4f, -1f, 2, 0.5f, 2);
gunmodel[4] = new modelrendererturbo(this, 32, 0, texturex, texturey);
gunmodel[4].addbox(14f, 2.5f, -0.5f, 1, 1, 1);
gunmodel[5] = new modelrendererturbo(this, 22, 4, texturex, texturey);
gunmodel[5].addbox(1f, 1f, -1f, 6, 1, 2);
gunmodel[6] = new modelrendererturbo(this, 0, 10, texturex, texturey);
gunmodel[6].addbox(-0.5f, -2f, -0.5f, 1, 3, 1);
gunmodel[6].setrotationpoint(2f, 1f, 0f);
gunmodel[6].rotateanglez = -0.5f;
//scope
scopeattachpoint = new vector3f(4f / 16f, 5f / 16f, 0f);
//stock
defaultstockmodel = new modelrendererturbo[5];
defaultstockmodel[0] = new modelrendererturbo(this, 4, 10, texturex, texturey);
defaultstockmodel[0].addbox(-7f, 1f, -0.5f, 1, 3, 1);
defaultstockmodel[1] = new modelrendererturbo(this, 0, 14, texturex, texturey);
defaultstockmodel[1].addbox(-6f, 1.5f, -0.5f, 2, 0.5f, 1);
defaultstockmodel[2] = new modelrendererturbo(this, 6, 14, texturex, texturey);
defaultstockmodel[2].addbox(-4f, 2f, -0.5f, 3, 0.5f, 1);
defaultstockmodel[3] = new modelrendererturbo(this, 14, 14, texturex, texturey);
defaultstockmodel[3].addbox(-6f, 3.5f, -0.5f, 5, 0.5f, 1);
defaultstockmodel[4] = new modelrendererturbo(this, 26, 14, texturex, texturey);
defaultstockmodel[4].addbox(-3f, 2.5f, -0.5f, 1, 1, 1);
stockattachpoint = new vector3f(-4f / 16f, 3.5f / 16f, 0f);
//barrel
barrelattachpoint = new vector3f(15f / 16f, 3f / 16f, 0f);
//grip
defaultgripmodel = new modelrendererturbo[2];
defaultgripmodel[0] = new modelrendererturbo(this, 8, 10, texturex, texturey);
defaultgripmodel[0].addbox(11f, 1f, -1f, 2, 1, 2);
defaultgripmodel[1] = new modelrendererturbo(this, 16, 10, texturex, texturey);
defaultgripmodel[1].addbox(11.5f, -1f, -0.5f, 1, 2, 1);
gripattachpoint = new vector3f(10f / 16f, 3f / 16f, 0f);
//ammo
ammomodel = new modelrendererturbo[1];
ammomodel[0] = new modelrendererturbo(this, 22, 7, texturex, texturey);
ammomodel[0].addbox(-1f, -4f, -0.5f, 2, 5, 1);
ammomodel[0].setrotationpoint(6f, 1f, 0f);
ammomodel[0].rotateanglez = 0.25f;
gunslidedistance = 0.5f;
animationtype = enumanimationtype.bottom_clip;
}
}
uj5u.com熱心網友回復:
是UTF-8無BOM的編碼格式轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/249989.html
標籤:Java SE
上一篇:MySQL
