EntityGiantZombie .java

net.minecraft.entity.monster.EntityGiantZombie (class, 33 lines): members: getBlockPathWeight, getEyeHeight, applyEntityAttributes. imports: World.

net.minecraft.entity.monsterclass33 linescommonextends EntityMob919 B

API Surface (3)

float getEyeHeight()
void applyEntityAttributes()
float getBlockPathWeight(BlockPos pos)

Code Graph: Dependencies (4)

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

Full Source

EntityGiantZombie.java33 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.entity.monster;
2
3
import net.minecraft.entity.SharedMonsterAttributes;
4
import net.minecraft.util.BlockPos;
5
import net.minecraft.world.World;
6
7
public class EntityGiantZombie extends EntityMob
8
{
9
    public EntityGiantZombie(World worldIn)
10
    {
11
        super(worldIn);
12
        this.setSize(this.width * 6.0F, this.height * 6.0F);
13
    }
14
15
    public float getEyeHeight()
16
    {
17
        return 10.440001F;
18
    }
19
20
    protected void applyEntityAttributes()
21
    {
22
        super.applyEntityAttributes();
23
        this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(100.0D);
24
        this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.5D);
25
        this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(50.0D);
26
    }
27
28
    public float getBlockPathWeight(BlockPos pos)
29
    {
30
        return this.worldObj.getLightBrightness(pos) - 0.5F;
31
    }
32
}
33

Deobfuscated MCP 1.8.9 source of EntityGiantZombie from Marcelektro/MavenMCP-1.8.9 (net/minecraft/entity/monster/EntityGiantZombie.java), stored verbatim.