/** * Creates a textured box. */ @Override public void addBox(float offX, float offY, float offZ, int width, int height, int depth, float scaleFactor) { this.cubeList.add(new ModelBox(this, this.textureOffsetX, this.textureOffsetY, offX, offY, offZ, width, height, depth, scaleFactor)); }
@Override public ModelRenderer addBox(float offX, float offY, float offZ, int width, int height, int depth) { this.cubeList.add(new ModelBox(this, this.textureOffsetX, this.textureOffsetY, offX, offY, offZ, width, height, depth, 0.0F)); return this; }
@Override public ModelRenderer addBox(float offX, float offY, float offZ, int width, int height, int depth, boolean mirrored) { this.cubeList.add(new ModelBox(this, this.textureOffsetX, this.textureOffsetY, offX, offY, offZ, width, height, depth, 0.0F, mirrored)); return this; }
@Override public ModelRenderer addBox(String partName, float offX, float offY, float offZ, int width, int height, int depth) { partName = this.boxName + "." + partName; TextureOffset textureoffset = this.model.getTextureOffset(partName); this.setTextureOffset(textureoffset.textureOffsetX, textureoffset.textureOffsetY); this.cubeList.add((new ModelBox(this, this.textureOffsetX, this.textureOffsetY, offX, offY, offZ, width, height, depth, 0.0F)).setBoxName(partName)); return this; }