ModelSkeleton .java

net.minecraft.client.model.ModelSkeleton (class): members: setLivingAnimations, setRotationAngles. imports: EntitySkeleton, EntityLivingBase, Entity.

net.minecraft.client.modelclass57 linesclientextends ModelZombie2.5 KB

API Surface (2)

void setLivingAnimations(EntityLivingBase entitylivingbaseIn, float p_78086_2_, float p_78086_3_, float partialTickTime)
void setRotationAngles(float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, Entity entityIn)

Code Graph: Dependencies (5)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

ModelSkeleton.java57 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.client.model;
2
3
import net.minecraft.entity.Entity;
4
import net.minecraft.entity.EntityLivingBase;
5
import net.minecraft.entity.monster.EntitySkeleton;
6
7
public class ModelSkeleton extends ModelZombie
8
{
9
    public ModelSkeleton()
10
    {
11
        this(0.0F, false);
12
    }
13
14
    public ModelSkeleton(float p_i46303_1_, boolean p_i46303_2_)
15
    {
16
        super(p_i46303_1_, 0.0F, 64, 32);
17
18
        if (!p_i46303_2_)
19
        {
20
            this.bipedRightArm = new ModelRenderer(this, 40, 16);
21
            this.bipedRightArm.addBox(-1.0F, -2.0F, -1.0F, 2, 12, 2, p_i46303_1_);
22
            this.bipedRightArm.setRotationPoint(-5.0F, 2.0F, 0.0F);
23
            this.bipedLeftArm = new ModelRenderer(this, 40, 16);
24
            this.bipedLeftArm.mirror = true;
25
            this.bipedLeftArm.addBox(-1.0F, -2.0F, -1.0F, 2, 12, 2, p_i46303_1_);
26
            this.bipedLeftArm.setRotationPoint(5.0F, 2.0F, 0.0F);
27
            this.bipedRightLeg = new ModelRenderer(this, 0, 16);
28
            this.bipedRightLeg.addBox(-1.0F, 0.0F, -1.0F, 2, 12, 2, p_i46303_1_);
29
            this.bipedRightLeg.setRotationPoint(-2.0F, 12.0F, 0.0F);
30
            this.bipedLeftLeg = new ModelRenderer(this, 0, 16);
31
            this.bipedLeftLeg.mirror = true;
32
            this.bipedLeftLeg.addBox(-1.0F, 0.0F, -1.0F, 2, 12, 2, p_i46303_1_);
33
            this.bipedLeftLeg.setRotationPoint(2.0F, 12.0F, 0.0F);
34
        }
35
    }
36
37
    /**
38
     * Used for easily adding entity-dependent animations. The second and third float params here are the same second
39
     * and third as in the setRotationAngles method.
40
     */
41
    public void setLivingAnimations(EntityLivingBase entitylivingbaseIn, float p_78086_2_, float p_78086_3_, float partialTickTime)
42
    {
43
        this.aimedBow = ((EntitySkeleton)entitylivingbaseIn).getSkeletonType() == 1;
44
        super.setLivingAnimations(entitylivingbaseIn, p_78086_2_, p_78086_3_, partialTickTime);
45
    }
46
47
    /**
48
     * Sets the model's various rotation angles. For bipeds, par1 and par2 are used for animating the movement of arms
49
     * and legs, where par1 represents the time(so that arms and legs swing back and forth) and par2 represents how
50
     * "far" arms and legs can swing at most.
51
     */
52
    public void setRotationAngles(float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, Entity entityIn)
53
    {
54
        super.setRotationAngles(limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scaleFactor, entityIn);
55
    }
56
}
57

Deobfuscated MCP 1.8.9 source of ModelSkeleton from Marcelektro/MavenMCP-1.8.9 (net/minecraft/client/model/ModelSkeleton.java), stored verbatim.