Java 类net.minecraft.client.model.ModelRenderer 实例源码

项目:Backmemed    文件:ModelResolver.java   
public ModelVariable getModelVariable(String name)
{
    String[] astring = Config.tokenize(name, ".");

    if (astring.length != 2)
    {
        return null;
    }
    else
    {
        String s = astring[0];
        String s1 = astring[1];
        ModelRenderer modelrenderer = this.getModelRenderer(s);

        if (modelrenderer == null)
        {
            return null;
        }
        else
        {
            EnumModelVariable enummodelvariable = EnumModelVariable.parse(s1);
            return enummodelvariable == null ? null : new ModelVariable(name, modelrenderer, enummodelvariable);
        }
    }
}
项目:pnc-repressurized    文件:ModelVacuumPump.java   
public ModelVacuumPump() {
    textureWidth = 64;
    textureHeight = 64;

    turbineCase = new ModelRenderer(this, 0, 47);
    turbineCase.addBox(0F, 0F, 0F, 1, 4, 1);
    turbineCase.setRotationPoint(-0.5F, 14.1F, 0F);
    turbineCase.setTextureSize(64, 64);
    turbineCase.mirror = true;
    setRotation(turbineCase, 0F, 0F, 0F);
    top = new ModelRenderer(this, 0, 47);
    top.addBox(0F, 0F, 0F, 6, 1, 12);
    top.setRotationPoint(-3F, 13F, -6F);
    top.setTextureSize(64, 64);
    top.mirror = true;
    setRotation(top, 0F, 0F, 0F);
    blade = new ModelRenderer(this, 0, 0);
    blade.addBox(0F, 0F, 0F, 1, 4, 2);
    blade.setRotationPoint(-0.5F, 14F, -3F);
    blade.setTextureSize(64, 64);
    blade.mirror = true;
    setRotation(blade, 0F, 0F, 0F);
}
项目:Mods    文件:ModelGrenade.java   
public ModelGrenade() {
    textureWidth = 32;
    textureHeight = 32;

    Shape1 = new ModelRenderer(this, 0, 0);
    Shape1.addBox(0F, 0F, 0F, 4, 4, 5);
    Shape1.setRotationPoint(-2F, -2F, -1F);
    Shape1.setTextureSize(32, 32);
    Shape2 = new ModelRenderer(this, 0, 9);
    Shape2.addBox(0F, 0F, 0F, 3, 3, 1);
    Shape2.setRotationPoint(-1.5F, -1.5F, 4F);
    Shape2.setTextureSize(32, 32);
    Shape3 = new ModelRenderer(this, 0, 9);
    Shape3.addBox(0F, 0F, 0F, 3, 3, 1);
    Shape3.setRotationPoint(-1.5F, -1.5F, -2F);
    Shape3.setTextureSize(32, 32);
    Shape4 = new ModelRenderer(this, 18, 0);
    Shape4.addBox(0F, 0F, 0F, 4, 4, 1);
    Shape4.setRotationPoint(-2F, -2F, -3F);
    Shape4.setTextureSize(32, 32);
}
项目:Bewitchment    文件:ModelHerbPouch.java   
public ModelHerbPouch() {
    this.textureWidth = 32;
    this.textureHeight = 32;

    this.Cuboid = new ModelRenderer(this, 0, 4);
    this.Cuboid.setRotationPoint(-4.0F, 12.0F, -2.5F);
    this.Cuboid.addBox(0.0F, 0.0F, 0.0F, 9, 3, 1);
    this.Cuboid2 = new ModelRenderer(this, 0, 8);
    this.Cuboid2.setRotationPoint(-3.75F, 12.0F, -2.5F);
    this.Cuboid2.addBox(0.0F, 0.0F, -3.0F, 8, 3, 3);
    this.Cuboid3 = new ModelRenderer(this, 0, 14);
    this.Cuboid3.setRotationPoint(-4.0F, 11.5F, -4.0F);
    this.Cuboid3.addBox(0.0F, 0.0F, 0.0F, 9, 1, 4);
    this.Cuboid4 = new ModelRenderer(this, 0, 0);
    this.Cuboid4.setRotationPoint(-4.0F, 12.0F, -4.5F);
    this.Cuboid4.addBox(0.0F, 0.0F, 0.0F, 9, 3, 1);
    this.Cuboid5 = new ModelRenderer(this, 0, 15);
    this.Cuboid5.setRotationPoint(-2.25F, 13.1F, -5.2F);
    this.Cuboid5.addBox(0.0F, 0.0F, 0.6F, 1, 1, 1);
}
项目:Backmemed    文件:PlayerItemModel.java   
public static ModelRenderer getAttachModel(ModelBiped p_getAttachModel_0_, int p_getAttachModel_1_)
{
    switch (p_getAttachModel_1_)
    {
        case 0:
            return p_getAttachModel_0_.bipedBody;

        case 1:
            return p_getAttachModel_0_.bipedHead;

        case 2:
            return p_getAttachModel_0_.bipedLeftArm;

        case 3:
            return p_getAttachModel_0_.bipedRightArm;

        case 4:
            return p_getAttachModel_0_.bipedLeftLeg;

        case 5:
            return p_getAttachModel_0_.bipedRightLeg;

        default:
            return null;
    }
}
项目:Backmemed    文件:ModelAdapterRabbit.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelRabbit))
    {
        return null;
    }
    else
    {
        ModelRabbit modelrabbit = (ModelRabbit)model;
        Map<String, Integer> map = getMapPartFields();

        if (map.containsKey(modelPart))
        {
            int i = ((Integer)map.get(modelPart)).intValue();
            return (ModelRenderer)Reflector.getFieldValue(modelrabbit, Reflector.ModelRabbit_renderers, i);
        }
        else
        {
            return null;
        }
    }
}
项目:EndermanEvolution    文件:ModelFrienderman.java   
public ModelFrienderman(float scale) {
    super(0.0F, -14.0F, 64, 32);
    bipedHeadwear = new ModelRenderer(this, 0, 16);
    bipedHeadwear.addBox(-4.0F, -8.0F, -4.0F, 8, 8, 8, scale - 0.5F);
    bipedHeadwear.setRotationPoint(0.0F, -14.0F, 0.0F);
    bipedBody = new ModelRenderer(this, 32, 16);
    bipedBody.addBox(-4.0F, 0.0F, -2.0F, 8, 12, 4, scale);
    bipedBody.setRotationPoint(0.0F, -14.0F, 0.0F);
    bipedRightArm = new ModelRenderer(this, 56, 0);
    bipedRightArm.addBox(-1.0F, -2.0F, -1.0F, 2, 30, 2, scale);
    bipedRightArm.setRotationPoint(-3.0F, -12.0F, 0.0F);
    bipedLeftArm = new ModelRenderer(this, 56, 0);
    bipedLeftArm.mirror = true;
    bipedLeftArm.addBox(-1.0F, -2.0F, -1.0F, 2, 30, 2, scale);
    bipedLeftArm.setRotationPoint(5.0F, -12.0F, 0.0F);
    bipedRightLeg = new ModelRenderer(this, 56, 0);
    bipedRightLeg.addBox(-1.0F, 0.0F, -1.0F, 2, 30, 2, scale);
    bipedRightLeg.setRotationPoint(-2.0F, -2.0F, 0.0F);
    bipedLeftLeg = new ModelRenderer(this, 56, 0);
    bipedLeftLeg.mirror = true;
    bipedLeftLeg.addBox(-1.0F, 0.0F, -1.0F, 2, 30, 2, scale);
    bipedLeftLeg.setRotationPoint(2.0F, -2.0F, 0.0F);
}
项目:BaseClient    文件:ModelSprite.java   
public ModelSprite(ModelRenderer p_i59_1_, int p_i59_2_, int p_i59_3_, float p_i59_4_, float p_i59_5_, float p_i59_6_, int p_i59_7_, int p_i59_8_, int p_i59_9_, float p_i59_10_)
{
    this.modelRenderer = p_i59_1_;
    this.textureOffsetX = p_i59_2_;
    this.textureOffsetY = p_i59_3_;
    this.posX = p_i59_4_;
    this.posY = p_i59_5_;
    this.posZ = p_i59_6_;
    this.sizeX = p_i59_7_;
    this.sizeY = p_i59_8_;
    this.sizeZ = p_i59_9_;
    this.sizeAdd = p_i59_10_;
    this.minU = (float)p_i59_2_ / p_i59_1_.textureWidth;
    this.minV = (float)p_i59_3_ / p_i59_1_.textureHeight;
    this.maxU = (float)(p_i59_2_ + p_i59_7_) / p_i59_1_.textureWidth;
    this.maxV = (float)(p_i59_3_ + p_i59_8_) / p_i59_1_.textureHeight;
}
项目:Solar    文件:EyeOfSchrodingerRenderer.java   
EyeOfSchrodinger() {
    this.textureWidth = 32;
    this.textureHeight = 32;
    this.right = new ModelRenderer(this, 4, 12);
    this.right.setRotationPoint(0.0F, 24.0F, 0.0F);
    this.right.addBox(-4.5F, -1.5F, -1.5F, 3, 3, 3, 0.0F);
    this.bottom = new ModelRenderer(this, 4, 6);
    this.bottom.setRotationPoint(0.0F, 24.0F, 0.0F);
    this.bottom.addBox(-4.5F, 1.5F, -1.5F, 9, 3, 3, 0.0F);
    this.top = new ModelRenderer(this, 4, 0);
    this.top.setRotationPoint(0.0F, 24.0F, 0.0F);
    this.top.addBox(-4.5F, -4.5F, -1.5F, 9, 3, 3, 0.0F);
    this.left = new ModelRenderer(this, 16, 12);
    this.left.setRotationPoint(0.0F, 24.0F, 0.0F);
    this.left.addBox(1.5F, -1.5F, -1.5F, 3, 3, 3, 0.0F);
}
项目:Backmemed    文件:Shaders.java   
public static void resetDisplayListModelRenderer(ModelRenderer mrr)
{
    mrr.resetDisplayList();

    if (mrr.childModels != null)
    {
        int i = 0;

        for (int j = mrr.childModels.size(); i < j; ++i)
        {
            resetDisplayListModelRenderer((ModelRenderer)mrr.childModels.get(i));
        }
    }
}
项目:Backmemed    文件:ModelAdapterCreeper.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelCreeper))
    {
        return null;
    }
    else
    {
        ModelCreeper modelcreeper = (ModelCreeper)model;
        return modelPart.equals("head") ? modelcreeper.head : (modelPart.equals("armor") ? modelcreeper.creeperArmor : (modelPart.equals("body") ? modelcreeper.body : (modelPart.equals("leg1") ? modelcreeper.leg1 : (modelPart.equals("leg2") ? modelcreeper.leg2 : (modelPart.equals("leg3") ? modelcreeper.leg3 : (modelPart.equals("leg4") ? modelcreeper.leg4 : null))))));
    }
}
项目:Backmemed    文件:ModelAdapterHeadDragon.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelDragonHead))
    {
        return null;
    }
    else
    {
        ModelDragonHead modeldragonhead = (ModelDragonHead)model;
        return modelPart.equals("head") ? (ModelRenderer)Reflector.getFieldValue(modeldragonhead, Reflector.ModelDragonHead_head) : (modelPart.equals("jaw") ? (ModelRenderer)Reflector.getFieldValue(modeldragonhead, Reflector.ModelDragonHead_jaw) : null);
    }
}
项目:pnc-repressurized    文件:ModelLogistics.java   
@Override
protected void renderDynamic(float scale, float partialTicks) {
    ModelRenderer base;
    if (module.getTicksSinceAction() >= 0) {
        base = action;
    } else if (module.getTicksSinceNotEnoughAir() >= 0) {
        base = notEnoughAir;
    } else {
        base = module.hasPower() ? powered : notPowered;
    }
    base.render(scale);
    base2.render(scale);
    renderChannelColorFrame(scale);
}
项目:minecraft-quiverbow    文件:CoinTosser_Model.java   
public CoinTosser_Model()
{
    textureWidth = 64;
    textureHeight = 32;

    Barrel = new ModelRenderer(this, 0, 24);
    Barrel.addBox(0F, 0F, 0F, 18, 4, 4);
    Barrel.setRotationPoint(0F, -1F, -1F);
    Barrel.setTextureSize(64, 32);
    Barrel.mirror = true;
    setRotation(Barrel, 0F, 0F, 0F);

    Stock1 = new ModelRenderer(this, 45, 27);
    Stock1.addBox(0F, 0F, 0F, 7, 3, 2);
    Stock1.setRotationPoint(-6F, 1F, 0F);
    Stock1.setTextureSize(64, 32);
    Stock1.mirror = true;
    setRotation(Stock1, 0F, 0F, 0F);

    Stock2 = new ModelRenderer(this, 45, 27);
    Stock2.addBox(0F, 0F, 0F, 7, 3, 2);
    Stock2.setRotationPoint(-11F, 2F, -0.1F);
    Stock2.setTextureSize(64, 32);
    Stock2.mirror = true;
    setRotation(Stock2, 0F, 0F, 0F);

    Ammo = new ModelRenderer(this, 0, 18);
    Ammo.addBox(0F, 0F, 0F, 12, 2, 3);
    Ammo.setRotationPoint(4F, 3F, -0.5F);
    Ammo.setTextureSize(64, 32);
    Ammo.mirror = true;
    setRotation(Ammo, 0F, 0F, 0F);

    Trigger = new ModelRenderer(this, 45, 24);
    Trigger.addBox(0F, 0F, 0F, 3, 1, 1);
    Trigger.setRotationPoint(-1F, -2F, 0.5F);
    Trigger.setTextureSize(64, 32);
    Trigger.mirror = true;
    setRotation(Trigger, 0F, 0F, 0F);
}
项目:pnc-repressurized    文件:ModelFlowDetector.java   
public ModelFlowDetector(ModuleFlowDetector flowDetector){
    textureWidth = 64;
    textureHeight = 32;

    shape1 = new ModelRenderer(this, 0, 8);
    shape1.addBox(-1F, -3F, -2F, 2, 1, 5);
    shape1.setRotationPoint(0F, 16F, 4.5F);
    shape1.setTextureSize(64, 32);
    shape1.mirror = true;
    setRotation(shape1, 0F, 0F, 0F);
    this.flowDetector = flowDetector;
}
项目:pnc-repressurized    文件:ModelElevatorBase.java   
public ModelElevatorBase() {
    textureWidth = 64;
    textureHeight = 64;

    pole1 = new ModelRenderer(this, 0, 17);
    pole1.addBox(0F, 0F, 0F, 2, 14, 2);
    pole1.setRotationPoint(-1F, 9F, -1F);
    pole1.setTextureSize(64, 64);
    pole1.mirror = true;
    setRotation(pole1, 0F, 0F, 0F);
    pole2 = new ModelRenderer(this, 0, 17);
    pole2.addBox(0F, 0F, 0F, 4, 14, 4);
    pole2.setRotationPoint(-2F, 9F, -2F);
    pole2.setTextureSize(64, 64);
    pole2.mirror = true;
    setRotation(pole2, 0F, 0F, 0F);
    pole3 = new ModelRenderer(this, 0, 17);
    pole3.addBox(0F, 0F, 0F, 6, 14, 6);
    pole3.setRotationPoint(-3F, 9F, -3F);
    pole3.setTextureSize(64, 64);
    pole3.mirror = true;
    setRotation(pole3, 0F, 0F, 0F);
    pole4 = new ModelRenderer(this, 0, 17);
    pole4.addBox(0F, 0F, 0F, 8, 14, 8);
    pole4.setRotationPoint(-4F, 9F, -4F);
    pole4.setTextureSize(64, 64);
    pole4.mirror = true;
    setRotation(pole4, 0F, 0F, 0F);
    floor = new ModelRenderer(this, 0, 0);
    floor.addBox(0F, 0F, 0F, 16, 1, 16);
    floor.setRotationPoint(-8F, 8F, -8F);
    floor.setTextureSize(64, 64);
    floor.mirror = true;
    setRotation(floor, 0F, 0F, 0F);
}
项目:pnc-repressurized    文件:ModelElevatorBase.java   
private void renderPole(ModelRenderer pole, int idx, float scale, float extension) {
    GlStateManager.translate(0, -extension / 4, 0);
    GlStateManager.pushMatrix();
    GlStateManager.translate(0, FACTOR, 0);
    GlStateManager.scale(1, extension * 16 / 14 / 4, 1);
    GlStateManager.translate(0, -FACTOR, 0);
    GlStateManager.color(1 - idx * 0.15f, 1 - idx * 0.15f, 1 - idx * 0.15f, 1);
    pole.render(scale);
    GlStateManager.popMatrix();
}
项目:Backmemed    文件:ModelAdapterWitherSkull.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelSkeletonHead))
    {
        return null;
    }
    else
    {
        ModelSkeletonHead modelskeletonhead = (ModelSkeletonHead)model;
        return modelPart.equals("head") ? modelskeletonhead.skeletonHead : null;
    }
}
项目:pnc-repressurized    文件:ModelAssemblyControllerScreen.java   
public ModelAssemblyControllerScreen() {
    textureWidth = 64;
    textureHeight = 64;

    screen = new ModelRenderer(this, 33, 32);
    screen.addBox(0F, 0F, 0F, 10, 6, 1);
    screen.setRotationPoint(-5F, 8F, 1F);
    screen.setTextureSize(64, 32);
    screen.mirror = true;
    setRotation(screen, -0.5934119F, 0F, 0F);
}
项目:harshencastle    文件:BaseHarshenBiped.java   
protected ModelRenderer newRender(int dimensionX, int dimensionY, int dimensionZ, float positionX, float positionY, float positionZ,
        float offsetX, float offsetY, float offsetZ, int textureX, int textureY, boolean mirror, ModelBase model)
{
    ModelRenderer renderer = new ModelRenderer(model, textureX, textureY);
    renderer.mirror = mirror;
    renderer.addBox(offsetX, offsetY, offsetZ, dimensionX, dimensionY, dimensionZ, 0);
    renderer.setRotationPoint(positionX, positionY, positionZ);
    return renderer;
}
项目:harshencastle    文件:ModelArmour.java   
private void renderAndRotate(ArrayList<ModelRenderer> list, ModelRenderer parent, float scale)
{
    for(ModelRenderer renderer : list)
    {
        copyModelAngles(parent, renderer);
        if(rotations.keySet().contains(renderer))
            addAngle(renderer);
        renderer.render(scale);
    }
}
项目:harshencastle    文件:ModelArmour.java   
private void addAngle(ModelRenderer renderer)
{
    Vec3d vec = rotations.get(renderer);
    renderer.rotateAngleX += vec.x / 50f;
    renderer.rotateAngleY += vec.y / 50f;
    renderer.rotateAngleZ += vec.z / 50f;
}
项目:harshencastle    文件:ModelSoulPart.java   
public ModelSoulPart(float p_i47224_1_)
{
    super(p_i47224_1_, 0.0F, 64, 64);
    this.bipedLeftLeg.showModel = false;
    this.bipedHeadwear.showModel = false;
    this.bipedRightLeg = new ModelRenderer(this, 32, 0);
    this.bipedRightLeg.addBox(-1.0F, -1.0F, -2.0F, 6, 10, 4, 0.0F);
    this.bipedRightLeg.setRotationPoint(-1.9F, 12.0F, 0.0F);
    this.rightWing = new ModelRenderer(this, 0, 32);
    this.rightWing.addBox(-20.0F, 0.0F, 0.0F, 20, 12, 1);
    this.leftWing = new ModelRenderer(this, 0, 32);
    this.leftWing.mirror = true;
    this.leftWing.addBox(0.0F, 0.0F, 0.0F, 20, 12, 1);
}
项目:Backmemed    文件:ModelAdapterMinecart.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelMinecart))
    {
        return null;
    }
    else
    {
        ModelMinecart modelminecart = (ModelMinecart)model;
        return modelPart.equals("bottom") ? modelminecart.sideModels[0] : (modelPart.equals("back") ? modelminecart.sideModels[1] : (modelPart.equals("front") ? modelminecart.sideModels[2] : (modelPart.equals("right") ? modelminecart.sideModels[3] : (modelPart.equals("left") ? modelminecart.sideModels[4] : (modelPart.equals("dirt") ? modelminecart.sideModels[5] : null)))));
    }
}
项目:Backmemed    文件:ModelAdapterChest.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelChest))
    {
        return null;
    }
    else
    {
        ModelChest modelchest = (ModelChest)model;
        return modelPart.equals("lid") ? modelchest.chestLid : (modelPart.equals("base") ? modelchest.chestBelow : (modelPart.equals("knob") ? modelchest.chestKnob : null));
    }
}
项目:Backmemed    文件:PlayerItemRenderer.java   
public void render(ModelBiped p_render_1_, float p_render_2_)
{
    ModelRenderer modelrenderer = PlayerItemModel.getAttachModel(p_render_1_, this.attachTo);

    if (modelrenderer != null)
    {
        modelrenderer.postRender(p_render_2_);
    }

    this.modelRenderer.render(p_render_2_);
}
项目:minecraft-quiverbow    文件:FenFire_Model.java   
public FenFire_Model()
{
    textureWidth = 32;
    textureHeight = 32;

    BarrelFull = new ModelRenderer(this, 0, 0);
    BarrelFull.addBox(0F, 0F, 0F, 10, 4, 4);
    BarrelFull.setRotationPoint(0F, 0F, -2F);
    BarrelFull.setTextureSize(32, 32);
    BarrelFull.mirror = true;
    setRotation(BarrelFull, 0F, 0F, 0F);
    Stock1 = new ModelRenderer(this, 9, 14);
    Stock1.addBox(0F, 0F, 0F, 2, 2, 2);
    Stock1.setRotationPoint(-2F, 1F, -1F);
    Stock1.setTextureSize(32, 32);
    Stock1.mirror = true;
    setRotation(Stock1, 0F, 0F, 0F);
    Stock2 = new ModelRenderer(this, 0, 14);
    Stock2.addBox(0F, 0F, 0F, 2, 3, 2);
    Stock2.setRotationPoint(-3F, 2F, -1F);
    Stock2.setTextureSize(32, 32);
    Stock2.mirror = true;
    setRotation(Stock2, 0F, 0F, 0F);
    Stock3 = new ModelRenderer(this, 0, 20);
    Stock3.addBox(0F, 0F, 0F, 2, 3, 2);
    Stock3.setRotationPoint(-4F, 3F, -1F);
    Stock3.setTextureSize(32, 32);
    Stock3.mirror = true;
    setRotation(Stock3, 0F, 0F, 0F);
    Trigger = new ModelRenderer(this, 0, 26);
    Trigger.addBox(0F, 0F, 0F, 3, 2, 1);
    Trigger.setRotationPoint(-1F, 2.466667F, -0.5333334F);
    Trigger.setTextureSize(32, 32);
    Trigger.mirror = true;
    setRotation(Trigger, 0F, 0F, 0F);

}
项目:Backmemed    文件:ModelAdapterWitch.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelWitch))
    {
        return null;
    }
    else
    {
        ModelWitch modelwitch = (ModelWitch)model;
        return modelPart.equals("mole") ? (ModelRenderer)Reflector.getFieldValue(modelwitch, Reflector.ModelWitch_mole) : (modelPart.equals("hat") ? (ModelRenderer)Reflector.getFieldValue(modelwitch, Reflector.ModelWitch_hat) : (modelPart.equals("head") ? modelwitch.villagerHead : (modelPart.equals("body") ? modelwitch.villagerBody : (modelPart.equals("arms") ? modelwitch.villagerArms : (modelPart.equals("left_leg") ? modelwitch.leftVillagerLeg : (modelPart.equals("right_leg") ? modelwitch.rightVillagerLeg : (modelPart.equals("nose") ? modelwitch.villagerNose : null)))))));
    }
}
项目:Mods    文件:ModelRocket.java   
public ModelRocket() {
    textureWidth = 32;
    textureHeight = 32;

    bigger = new ModelRenderer(this, 0, 0);
    bigger.addBox(0F, 0F, 0F, 3, 2, 2);
    bigger.setRotationPoint(-1F, -1F, -1F);
    bigger.setTextureSize(32, 32);
    bigger.mirror = true;
    longer = new ModelRenderer(this, 0, 4);
    longer.addBox(0F, 0F, 0F, 7, 1, 1);
    longer.setRotationPoint(-4F, -0.5F, -0.5F);
    longer.setTextureSize(32, 32);
    longer.mirror = true;
}
项目:minecraft-quiverbow    文件:SnowCannon_Model.java   
public SnowCannon_Model()
{
    textureWidth = 64;
    textureHeight = 32;

    Barrel1 = new ModelRenderer(this, 0, 0);
    Barrel1.addBox(0F, 0F, 0F, 16, 4, 3);
    Barrel1.setRotationPoint(0F, -1F, -1.5F);
    Barrel1.setTextureSize(64, 32);
    Barrel1.mirror = true;
    setRotation(Barrel1, 0F, 0F, 0F);
    Stock1 = new ModelRenderer(this, 0, 8);
    Stock1.addBox(0F, 0F, 0F, 8, 3, 2);
    Stock1.setRotationPoint(-8F, 0F, -1F);
    Stock1.setTextureSize(64, 32);
    Stock1.mirror = true;
    setRotation(Stock1, 0F, 0F, 0F);
    Trigger = new ModelRenderer(this, 0, 14);
    Trigger.addBox(0F, 0F, 0F, 2, 5, 1);
    Trigger.setRotationPoint(1F, 3F, -0.5F);
    Trigger.setTextureSize(64, 32);
    Trigger.mirror = true;
    setRotation(Trigger, 0F, 0F, 0F);
    Shield = new ModelRenderer(this, 0, 21);
    Shield.addBox(0F, 0F, 0F, 1, 6, 2);
    Shield.setRotationPoint(7F, -7F, -1F);
    Shield.setTextureSize(64, 32);
    Shield.mirror = true;
    setRotation(Shield, 0F, 0F, 0F);
    Ice = new ModelRenderer(this, 7, 14);
    Ice.addBox(0F, 0F, 0F, 5, 7, 4);
    Ice.setRotationPoint(2F, -8F, -2F);
    Ice.setTextureSize(64, 32);
    Ice.mirror = true;
    setRotation(Ice, 0F, 0F, 0F);
}
项目:Backmemed    文件:ModelAdapterEnderCrystal.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelEnderCrystal))
    {
        return null;
    }
    else
    {
        ModelEnderCrystal modelendercrystal = (ModelEnderCrystal)model;
        return modelPart.equals("cube") ? (ModelRenderer)Reflector.getFieldValue(modelendercrystal, Reflector.ModelEnderCrystal_ModelRenderers, 0) : (modelPart.equals("glass") ? (ModelRenderer)Reflector.getFieldValue(modelendercrystal, Reflector.ModelEnderCrystal_ModelRenderers, 1) : (modelPart.equals("base") ? (ModelRenderer)Reflector.getFieldValue(modelendercrystal, Reflector.ModelEnderCrystal_ModelRenderers, 2) : null));
    }
}
项目:BaseClient    文件:Shaders.java   
public static void resetDisplayListModelRenderer(ModelRenderer mrr)
{
    mrr.resetDisplayList();

    if (mrr.childModels != null)
    {
        int i = 0;

        for (int j = mrr.childModels.size(); i < j; ++i)
        {
            resetDisplayListModelRenderer((ModelRenderer)mrr.childModels.get(i));
        }
    }
}
项目:Backmemed    文件:ModelAdapterSpider.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelSpider))
    {
        return null;
    }
    else
    {
        ModelSpider modelspider = (ModelSpider)model;
        return modelPart.equals("head") ? modelspider.spiderHead : (modelPart.equals("neck") ? modelspider.spiderNeck : (modelPart.equals("body") ? modelspider.spiderBody : (modelPart.equals("leg1") ? modelspider.spiderLeg1 : (modelPart.equals("leg2") ? modelspider.spiderLeg2 : (modelPart.equals("leg3") ? modelspider.spiderLeg3 : (modelPart.equals("leg4") ? modelspider.spiderLeg4 : (modelPart.equals("leg5") ? modelspider.spiderLeg5 : (modelPart.equals("leg6") ? modelspider.spiderLeg6 : (modelPart.equals("leg7") ? modelspider.spiderLeg7 : (modelPart.equals("leg8") ? modelspider.spiderLeg8 : null))))))))));
    }
}
项目:Backmemed    文件:ModelAdapterVillager.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelVillager))
    {
        return null;
    }
    else
    {
        ModelVillager modelvillager = (ModelVillager)model;
        return modelPart.equals("head") ? modelvillager.villagerHead : (modelPart.equals("body") ? modelvillager.villagerBody : (modelPart.equals("arms") ? modelvillager.villagerArms : (modelPart.equals("left_leg") ? modelvillager.leftVillagerLeg : (modelPart.equals("right_leg") ? modelvillager.rightVillagerLeg : (modelPart.equals("nose") ? modelvillager.villagerNose : null)))));
    }
}
项目:Backmemed    文件:ModelAdapterSign.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelSign))
    {
        return null;
    }
    else
    {
        ModelSign modelsign = (ModelSign)model;
        return modelPart.equals("board") ? modelsign.signBoard : (modelPart.equals("stick") ? modelsign.signStick : null);
    }
}
项目:connor41-etfuturum2    文件:ModelPlayer.java   
private void copyModelAngles(ModelRenderer source, ModelRenderer dest) {
    dest.rotateAngleX = source.rotateAngleX;
    dest.rotateAngleY = source.rotateAngleY;
    dest.rotateAngleZ = source.rotateAngleZ;
    dest.rotationPointX = source.rotationPointX;
    dest.rotationPointY = source.rotationPointY;
    dest.rotationPointZ = source.rotationPointZ;
}
项目:Backmemed    文件:ModelAdapterBook.java   
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelBook))
    {
        return null;
    }
    else
    {
        ModelBook modelbook = (ModelBook)model;
        return modelPart.equals("cover_right") ? modelbook.coverRight : (modelPart.equals("cover_left") ? modelbook.coverLeft : (modelPart.equals("pages_right") ? modelbook.pagesRight : (modelPart.equals("pages_left") ? modelbook.pagesLeft : (modelPart.equals("flipping_page_right") ? modelbook.flippingPageRight : (modelPart.equals("flipping_page_left") ? modelbook.flippingPageLeft : (modelPart.equals("book_spine") ? modelbook.bookSpine : null))))));
    }
}
项目:connor41-etfuturum2    文件:ModelEndermite.java   
public ModelEndermite() {
    field_178713_d = new ModelRenderer[field_178715_c];
    float f = -3.5F;

    for (int i = 0; i < field_178713_d.length; ++i) {
        field_178713_d[i] = new ModelRenderer(this, field_178714_b[i][0], field_178714_b[i][1]);
        field_178713_d[i].addBox(field_178716_a[i][0] * -0.5F, 0.0F, field_178716_a[i][2] * -0.5F, field_178716_a[i][0], field_178716_a[i][1], field_178716_a[i][2]);
        field_178713_d[i].setRotationPoint(0.0F, 24 - field_178716_a[i][1], f);

        if (i < field_178713_d.length - 1)
            f += (field_178716_a[i][2] + field_178716_a[i + 1][2]) * 0.5F;
    }
}
项目:connor41-etfuturum2    文件:ModelArmorStand.java   
public ModelArmorStand(float size) {
    super(size, 64, 64);
    bipedHead = new ModelRenderer(this, 0, 0);
    bipedHead.addBox(-1.0F, -7.0F, -1.0F, 2, 7, 2, size);
    bipedHead.setRotationPoint(0.0F, 0.0F, 0.0F);
    bipedBody = new ModelRenderer(this, 0, 26);
    bipedBody.addBox(-6.0F, 0.0F, -1.5F, 12, 3, 3, size);
    bipedBody.setRotationPoint(0.0F, 0.0F, 0.0F);
    bipedRightArm = new ModelRenderer(this, 24, 0);
    bipedRightArm.addBox(-2.0F, -2.0F, -1.0F, 2, 12, 2, size);
    bipedRightArm.setRotationPoint(-5.0F, 2.0F, 0.0F);
    bipedLeftArm = new ModelRenderer(this, 32, 16);
    bipedLeftArm.mirror = true;
    bipedLeftArm.addBox(0.0F, -2.0F, -1.0F, 2, 12, 2, size);
    bipedLeftArm.setRotationPoint(5.0F, 2.0F, 0.0F);
    bipedRightLeg = new ModelRenderer(this, 8, 0);
    bipedRightLeg.addBox(-1.0F, 0.0F, -1.0F, 2, 11, 2, size);
    bipedRightLeg.setRotationPoint(-1.9F, 12.0F, 0.0F);
    bipedLeftLeg = new ModelRenderer(this, 40, 16);
    bipedLeftLeg.mirror = true;
    bipedLeftLeg.addBox(-1.0F, 0.0F, -1.0F, 2, 11, 2, size);
    bipedLeftLeg.setRotationPoint(1.9F, 12.0F, 0.0F);
    standRightSide = new ModelRenderer(this, 16, 0);
    standRightSide.addBox(-3.0F, 3.0F, -1.0F, 2, 7, 2, size);
    standRightSide.setRotationPoint(0.0F, 0.0F, 0.0F);
    standRightSide.showModel = true;
    standLeftSide = new ModelRenderer(this, 48, 16);
    standLeftSide.addBox(1.0F, 3.0F, -1.0F, 2, 7, 2, size);
    standLeftSide.setRotationPoint(0.0F, 0.0F, 0.0F);
    standWaist = new ModelRenderer(this, 0, 48);
    standWaist.addBox(-4.0F, 10.0F, -1.0F, 8, 2, 2, size);
    standWaist.setRotationPoint(0.0F, 0.0F, 0.0F);
    standBase = new ModelRenderer(this, 0, 32);
    standBase.addBox(-6.0F, 11.0F, -6.0F, 12, 1, 12, size);
    standBase.setRotationPoint(0.0F, 12.0F, 0.0F);
}
项目:Backmemed    文件:CustomModelRenderer.java   
public CustomModelRenderer(String modelPart, boolean attach, ModelRenderer modelRenderer, ModelUpdater modelUpdater)
{
    this.modelPart = modelPart;
    this.attach = attach;
    this.modelRenderer = modelRenderer;
    this.modelUpdater = modelUpdater;
}