本文整理匯總了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;
}