本文整理汇总了Java中io.lumine.xikage.mythicmobs.MythicMobs类的典型用法代码示例。如果您正苦于以下问题:Java MythicMobs类的具体用法?Java MythicMobs怎么用?Java MythicMobs使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MythicMobs类属于io.lumine.xikage.mythicmobs包,在下文中一共展示了MythicMobs类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: execute
import io.lumine.xikage.mythicmobs.MythicMobs; //导入依赖的package包/类
@Override
protected void execute(Event e) {
try {
try {
if (level != null) {
MythicMobs.inst().getAPIHelper().spawnMythicMob(mn.getSingle(e), loc.getSingle(e),
Math.round(level.getSingle(e).intValue()));
} else {
MythicMobs.inst().getAPIHelper().spawnMythicMob(mn.getSingle(e), loc.getSingle(e), 1);
}
} catch (NullPointerException ex) {
return;
}
} catch (InvalidMobTypeException e1) {
return;
}
}
示例2: check
import io.lumine.xikage.mythicmobs.MythicMobs; //导入依赖的package包/类
@Override
public boolean check(Event e) {
Boolean result = Boolean.valueOf(false);
Boolean result2 = false;
try {
result = Boolean
.valueOf(MythicMobs.inst().getAPIHelper().isMythicMob(mythicmob.getSingle(e).getUniqueId()));
if (result.equals(false)) {
result2 = true;
}
} catch (NullPointerException ex) {
return false;
}
return result2;
}
示例3: check
import io.lumine.xikage.mythicmobs.MythicMobs; //导入依赖的package包/类
@Override
public boolean check(Event e) {
Boolean result = Boolean.valueOf(false);
try {
result = Boolean
.valueOf(MythicMobs.inst().getAPIHelper().isMythicMob(mythicmob.getSingle(e).getUniqueId()));
} catch (NullPointerException ex) {
return result.booleanValue();
}
return result.booleanValue();
}
示例4: isMythicMob
import io.lumine.xikage.mythicmobs.MythicMobs; //导入依赖的package包/类
@Override
public boolean isMythicMob(Entity entity) {
if (isMythicMobsEnabled()) {
return MythicMobs.inst().getAPIHelper().isMythicMob(entity);
}
return false;
}