當前位置: 首頁>>代碼示例>>Java>>正文


Java MapleSurvival類代碼示例

本文整理匯總了Java中server.events.MapleSurvival的典型用法代碼示例。如果您正苦於以下問題:Java MapleSurvival類的具體用法?Java MapleSurvival怎麽用?Java MapleSurvival使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


MapleSurvival類屬於server.events包,在下文中一共展示了MapleSurvival類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: loadEvents

import server.events.MapleSurvival; //導入依賴的package包/類
private final void loadEvents() {
    if (!events.isEmpty()) {
        return;
    }
    events.put(MapleEventType.CokePlay, new MapleCoconut(channel, MapleEventType.CokePlay)); //yep, coconut. same shit
    events.put(MapleEventType.Coconut, new MapleCoconut(channel, MapleEventType.Coconut));
    events.put(MapleEventType.Fitness, new MapleFitness(channel, MapleEventType.Fitness));
    events.put(MapleEventType.OlaOla, new MapleOla(channel, MapleEventType.OlaOla));
    events.put(MapleEventType.OxQuiz, new MapleOxQuiz(channel, MapleEventType.OxQuiz));
    events.put(MapleEventType.Snowball, new MapleSnowball(channel, MapleEventType.Snowball));
    events.put(MapleEventType.Survival, new MapleSurvival(channel, MapleEventType.Survival));
}
 
開發者ID:ergothvs,項目名稱:Lucid2.0,代碼行數:13,代碼來源:ChannelServer.java

示例2: loadEvents

import server.events.MapleSurvival; //導入依賴的package包/類
public void loadEvents() {
    if (!events.isEmpty()) {
        return;
    }
    events.put(MapleEventType.CokePlay, new MapleCoconut(channel, MapleEventType.CokePlay));
    events.put(MapleEventType.Coconut, new MapleCoconut(channel, MapleEventType.Coconut));
    events.put(MapleEventType.Fitness, new MapleFitness(channel, MapleEventType.Fitness));
    events.put(MapleEventType.OlaOla, new MapleOla(channel, MapleEventType.OlaOla));
    events.put(MapleEventType.OxQuiz, new MapleOxQuiz(channel, MapleEventType.OxQuiz));
    events.put(MapleEventType.Snowball, new MapleSnowball(channel, MapleEventType.Snowball));
    events.put(MapleEventType.Survival, new MapleSurvival(channel, MapleEventType.Survival));
}
 
開發者ID:icelemon1314,項目名稱:mapleLemon,代碼行數:13,代碼來源:ChannelServer.java


注:本文中的server.events.MapleSurvival類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。