• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java PlayerLifecycleHolder类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中net.gtaun.shoebill.common.player.PlayerLifecycleHolder的典型用法代码示例。如果您正苦于以下问题:Java PlayerLifecycleHolder类的具体用法?Java PlayerLifecycleHolder怎么用?Java PlayerLifecycleHolder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PlayerLifecycleHolder类属于net.gtaun.shoebill.common.player包,在下文中一共展示了PlayerLifecycleHolder类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onEnable

import net.gtaun.shoebill.common.player.PlayerLifecycleHolder; //导入依赖的package包/类
@Override
protected void onEnable() throws Throwable {
	instance = this;
	EventManager eventManager = getEventManager();
       eventManagerNode = eventManager.createChildNode();
       playerLifecycleHolder = new PlayerLifecycleHolder(eventManager);
       playerLifecycleHolder.registerClass(PlayerData.class);
	playerManager = new PlayerManager();
   	languageService = Service.get(LanguageService.class);
   	localizedStringSet = languageService.createStringSet(new File(getDataDir(), "lang"));
	//TODO: init EventMapBase
	//TODO: init EventBase
   	EventNPCBase.initialize();
   	chat = new Chat();
	System.out.println("[EVENT] initialized");
}
 
开发者ID:Alf21,项目名称:event-system,代码行数:17,代码来源:EventSystem.java


示例2: onEnable

import net.gtaun.shoebill.common.player.PlayerLifecycleHolder; //导入依赖的package包/类
@Override
protected void onEnable() throws Throwable {
	instance = this;
	EventManager eventManager = getEventManager();
       eventManagerNode = eventManager.createChildNode();
       playerLifecycleHolder = new PlayerLifecycleHolder(eventManager);
       playerLifecycleHolder.registerClass(PlayerData.class);
	playerManager = new PlayerManager();
	playersTextdraws = new ArrayList<>();
	playerTextdraws = new ArrayList<>();
	System.out.println("[TEXTDRAWSYSTEM] initialized");
}
 
开发者ID:Alf21,项目名称:textdraw-system,代码行数:13,代码来源:TextdrawSystem.java


示例3: onEnable

import net.gtaun.shoebill.common.player.PlayerLifecycleHolder; //导入依赖的package包/类
@Override
protected void onEnable() throws Throwable {
	instance = this;
	eventManager = getEventManager();
       eventManagerNode = eventManager.createChildNode();
       playerLifecycleHolder = new PlayerLifecycleHolder(eventManager);
       playerLifecycleHolder.registerClass(PlayerData.class);
	playerManager = new PlayerManager();
	vehicleDatas = new ArrayList<VehicleData>();
	initializeVehicleBasicDatas();
	System.out.println("[VEHICLESYSTEM] initialized");
}
 
开发者ID:Alf21,项目名称:vehicle-system,代码行数:13,代码来源:VehicleSystem.java


示例4: onEnable

import net.gtaun.shoebill.common.player.PlayerLifecycleHolder; //导入依赖的package包/类
@Override
protected void onEnable() throws Throwable {
    instance = this;
    this.logger = getLogger();
    this.playerLifecycleHolder = new PlayerLifecycleHolder(getEventManager());
    this.playerLifecycleHolder.registerClass(PlayerData.class);
    logger.info("Streamer is ready!");
    isInitialized = true;
}
 
开发者ID:Shoebill,项目名称:shoebill-streamer,代码行数:10,代码来源:Streamer.java


示例5: onEnable

import net.gtaun.shoebill.common.player.PlayerLifecycleHolder; //导入依赖的package包/类
@Override
protected void onEnable() throws Throwable {
	instance = this;
	eventManager = getEventManager();
       eventManagerNode = eventManager.createChildNode();
       playerLifecycleHolder = new PlayerLifecycleHolder(eventManager);
       playerLifecycleHolder.registerClass(PlayerData.class);
	playerManager = new PlayerManager();
       mysqlConnection = new MysqlConnection();
       mysqlConnection.initConnection();
       mysqlConnection.makeDatabase();
}
 
开发者ID:Alf21,项目名称:weapon-system,代码行数:13,代码来源:WeaponSystem.java


示例6: RaceServiceImpl

import net.gtaun.shoebill.common.player.PlayerLifecycleHolder; //导入依赖的package包/类
public RaceServiceImpl(EventManager rootEventManager, RacePlugin plugin, Datastore datastore)
{
	super(rootEventManager);
	this.plugin = plugin;
	
	playerLifecycleHolder = new PlayerLifecycleHolder(eventManagerNode);

	LanguageService languageService = Service.get(LanguageService.class);
	localizedStringSet = languageService.createStringSet(new File(plugin.getDataDir(), "text"));
	
	trackManager = new TrackManagerImpl(datastore);
	racingManager = new RacingManagerImpl(eventManagerNode, this, datastore);
	
	init();
}
 
开发者ID:GTAUN,项目名称:wl-race,代码行数:16,代码来源:RaceServiceImpl.java


示例7: VehicleManagerServiceImpl

import net.gtaun.shoebill.common.player.PlayerLifecycleHolder; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public VehicleManagerServiceImpl(EventManager rootEventManager, VehicleManagerPlugin plugin, Datastore datastore)
{
	super(rootEventManager);
	this.plugin = plugin;
	this.datastore = datastore;

	eventManager = rootEventManager.createChildNode();
	playerLifecycleHolder = new PlayerLifecycleHolder(eventManager);

	LanguageService languageService = Service.get(LanguageService.class);
	localizedStringSet = languageService.createStringSet(new File(plugin.getDataDir(), "text"));

	statisticManager = new VehicleStatisticManager(eventManager, playerLifecycleHolder, this.datastore);

	playerOwnedVehicles = new HashMap<>();
	ownedVehicles = new HashSet<>();

	playerOwnedVehicleLastPassengers = new WeakHashMap<>();

	commonVehicles = new HashMap<>();
	File commonVehiclesFile = new File(plugin.getDataDir(), "commonVehicles.yml");
	try
	{
		Map<String, Object> map = (Map<String, Object>) new Yaml().load(new FileInputStream(commonVehiclesFile));
		List<Map<String, Object>> vehicleGroups = (List<Map<String,Object>>) map.get("commonVehicles");
		for (Map<String, Object> group : vehicleGroups)
		{
			String name = group.get("name").toString();
			List<Integer> modelIds = (List<Integer>) group.get("modelIds");
			commonVehicles.put(name, modelIds);
		}
	}
	catch (Throwable e)
	{
		VehicleManagerPlugin.LOGGER.info(commonVehiclesFile + " failed to load!");
	}

	init();
}
 
开发者ID:GTAUN,项目名称:wl-vehicle-manager,代码行数:41,代码来源:VehicleManagerServiceImpl.java


示例8: VehicleStatisticManager

import net.gtaun.shoebill.common.player.PlayerLifecycleHolder; //导入依赖的package包/类
public VehicleStatisticManager(EventManager rootEventManager, PlayerLifecycleHolder holder, Datastore datastore)
{
	super(rootEventManager);
	this.playerLifecycleHolder = holder;
	this.datastore = datastore;
	this.globalVehicleStatistics = new HashMap<>();
	
	onInit();
}
 
开发者ID:GTAUN,项目名称:wl-vehicle-manager,代码行数:10,代码来源:VehicleStatisticManager.java


示例9: onInit

import net.gtaun.shoebill.common.player.PlayerLifecycleHolder; //导入依赖的package包/类
@Override
protected void onInit()
{
	contexts = new PlayerLifecycleHolder(eventManagerNode);
	statistic = new LocalizedStringStatistic();
	
	contexts.registerClass(PlayerLanguageContext.class);
}
 
开发者ID:GTAUN,项目名称:wl-language,代码行数:9,代码来源:LanguageServiceImpl.java


示例10: getPlayerLifecycleHolder

import net.gtaun.shoebill.common.player.PlayerLifecycleHolder; //导入依赖的package包/类
public PlayerLifecycleHolder getPlayerLifecycleHolder() {
    return playerLifecycleHolder;
}
 
开发者ID:Alf21,项目名称:textdraw-system,代码行数:4,代码来源:TextdrawSystem.java


示例11: getPlayerLifecycleHolder

import net.gtaun.shoebill.common.player.PlayerLifecycleHolder; //导入依赖的package包/类
PlayerLifecycleHolder getPlayerLifecycleHolder() {
    return playerLifecycleHolder;
}
 
开发者ID:Alf21,项目名称:weapon-system,代码行数:4,代码来源:WeaponSystem.java



注:本文中的net.gtaun.shoebill.common.player.PlayerLifecycleHolder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SessionInfoStore类代码示例发布时间:2022-05-23
下一篇:
Java DefaultDavProperty类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap