EntityGolem .java

net.minecraft.entity.monster.EntityGolem (class): members: getTalkInterval, canDespawn, fall, getLivingSound, getDeathSound, getHurtSound. strings: "none".

net.minecraft.entity.monsterclass58 linescommonextends EntityCreature1.1 KB

Implements

API Surface (6)

void fall(float distance, float damageMultiplier)
String getLivingSound()
String getHurtSound()
String getDeathSound()
int getTalkInterval()
boolean canDespawn()

String literals (1)

"none"

Code Graph: Dependencies (3)

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

Full Source

EntityGolem.java58 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.entity.monster;
2
3
import net.minecraft.entity.EntityCreature;
4
import net.minecraft.entity.passive.IAnimals;
5
import net.minecraft.world.World;
6
7
public abstract class EntityGolem extends EntityCreature implements IAnimals
8
{
9
    public EntityGolem(World worldIn)
10
    {
11
        super(worldIn);
12
    }
13
14
    public void fall(float distance, float damageMultiplier)
15
    {
16
    }
17
18
    /**
19
     * Returns the sound this mob makes while it's alive.
20
     */
21
    protected String getLivingSound()
22
    {
23
        return "none";
24
    }
25
26
    /**
27
     * Returns the sound this mob makes when it is hurt.
28
     */
29
    protected String getHurtSound()
30
    {
31
        return "none";
32
    }
33
34
    /**
35
     * Returns the sound this mob makes on death.
36
     */
37
    protected String getDeathSound()
38
    {
39
        return "none";
40
    }
41
42
    /**
43
     * Get number of ticks, at least during which the living entity will be silent.
44
     */
45
    public int getTalkInterval()
46
    {
47
        return 120;
48
    }
49
50
    /**
51
     * Determines if an entity can be despawned, used on idle far away entities
52
     */
53
    protected boolean canDespawn()
54
    {
55
        return false;
56
    }
57
}
58

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