IMob .java

net.minecraft.entity.monster.IMob (interface, 24 lines): members: VISIBLE_MOB_SELECTOR, mobSelector. imports: IAnimals, Predicate, Entity.

net.minecraft.entity.monsterinterface24 linescommonextends IAnimals620 B

API Surface (2)

boolean apply(Entity p_apply_1_)
boolean apply(Entity p_apply_1_)

Fields & Constants (2)

mobSelector
VISIBLE_MOB_SELECTOR

Code Graph: Dependencies (2)

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

Full Source

IMob.java24 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.entity.monster;
2
3
import com.google.common.base.Predicate;
4
import net.minecraft.entity.Entity;
5
import net.minecraft.entity.passive.IAnimals;
6
7
public interface IMob extends IAnimals
8
{
9
    Predicate<Entity> mobSelector = new Predicate<Entity>()
10
    {
11
        public boolean apply(Entity p_apply_1_)
12
        {
13
            return p_apply_1_ instanceof IMob;
14
        }
15
    };
16
    Predicate<Entity> VISIBLE_MOB_SELECTOR = new Predicate<Entity>()
17
    {
18
        public boolean apply(Entity p_apply_1_)
19
        {
20
            return p_apply_1_ instanceof IMob && !p_apply_1_.isInvisible();
21
        }
22
    };
23
}
24

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