blob: 572e2e91e4b2c52a936e99820380fc9aef2fabdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package darkknight.jewelrycraft.util;
import net.minecraft.command.IEntitySelector;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EnumCreatureType;
public class EntitySelector {
public static IEntitySelector selectMonsters;
static {
selectMonsters = new IEntitySelector() {
@Override
public boolean isEntityApplicable(Entity arg0) {
if (arg0.isCreatureType(EnumCreatureType.monster, false)) {
return true;
}
return false;
}
};
}
}
|