EntityAmbientCreature .java

net.minecraft.entity.passive.EntityAmbientCreature (class, 27 lines): members: allowLeashing, interact. imports: EntityLiving, EntityPlayer, World.

net.minecraft.entity.passiveclass27 linescommonextends EntityLiving619 B

Implements

API Surface (2)

boolean allowLeashing()
boolean interact(EntityPlayer player)

Code Graph: Dependencies (4)

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

Full Source

EntityAmbientCreature.java27 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.entity.passive;
2
3
import net.minecraft.entity.EntityLiving;
4
import net.minecraft.entity.player.EntityPlayer;
5
import net.minecraft.world.World;
6
7
public abstract class EntityAmbientCreature extends EntityLiving implements IAnimals
8
{
9
    public EntityAmbientCreature(World worldIn)
10
    {
11
        super(worldIn);
12
    }
13
14
    public boolean allowLeashing()
15
    {
16
        return false;
17
    }
18
19
    /**
20
     * Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.
21
     */
22
    protected boolean interact(EntityPlayer player)
23
    {
24
        return false;
25
    }
26
}
27

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