当前位置: 首页>>代码示例>>Java>>正文


Java World类代码示例

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


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

示例1: initEspWR

import com.wurmonline.client.game.World; //导入依赖的package包/类
@SuppressWarnings("unchecked")
private void initEspWR() {
	try {
		World world = (World) ReflectionUtil.getPrivateField(hud, ReflectionUtil.getField(hud.getClass(), "world"));

		WurmEspWindow wurmEspWindow = new WurmEspWindow(world);

		MainMenu mainMenu = (MainMenu) ReflectionUtil.getPrivateField(hud,
				ReflectionUtil.getField(hud.getClass(), "mainMenu"));
		mainMenu.registerComponent("Esp", wurmEspWindow);

		List<WurmComponent> components = (List) ReflectionUtil.getPrivateField(hud,
				ReflectionUtil.getField(hud.getClass(), "components"));
		components.add(wurmEspWindow);

		SavePosManager savePosManager = (SavePosManager) ReflectionUtil.getPrivateField(hud,
				ReflectionUtil.getField(hud.getClass(), "savePosManager"));
		savePosManager.registerAndRefresh(wurmEspWindow, "wurmespwindow");
	} catch (IllegalArgumentException | IllegalAccessException | ClassCastException | NoSuchFieldException e) {
		throw new RuntimeException(e);
	}
}
 
开发者ID:encode32,项目名称:WurmEsp,代码行数:23,代码来源:WurmEspMod.java

示例2: MinimapComponent

import com.wurmonline.client.game.World; //导入依赖的package包/类
public MinimapComponent(World world, HeadsUpDisplay hud) throws IOException, IllegalAccessException, NoSuchFieldException {
	super("Minimap", 0, 0, SIZE, SIZE);
	this.world = world;
	this.hud = hud;
	this.dragger = new DragController(this);

	hud.mainMenu.registerComponent("Minimap", this);
	hud.mainMenu.setAvailable(this, true);
	hud.hudSettings.registerComponent("Minimap", this);
	hud.hudSettings.setAvailable(this, true);

	Field field = HeadsUpDisplay.class.getDeclaredField("savePosManager");
	field.setAccessible(true);
	((SavePosManager) field.get(hud)).registerAndRefresh(this, "minimap");

	InputStream in = this.getClass().getClassLoader().getResourceAsStream("minimap_border.png");
	border = ImageIO.read(in);
	in.close();
}
 
开发者ID:jonathanedgecombe,项目名称:anvil,代码行数:20,代码来源:MinimapComponent.java

示例3: ClientPluginContext

import com.wurmonline.client.game.World; //导入依赖的package包/类
public ClientPluginContext(WurmClientBase client) throws NoSuchFieldException, IllegalAccessException {
	Field field = WurmClientBase.class.getDeclaredField("world");
	field.setAccessible(true);

	this.client = client;
	this.world = (World) field.get(this.client);
	this.hud = this.world.getHud();
}
 
开发者ID:jonathanedgecombe,项目名称:anvil,代码行数:9,代码来源:ClientPluginContext.java

示例4: _setWQ

import com.wurmonline.client.game.World; //导入依赖的package包/类
public void _setWQ(World world, Queue queue) {
	this._world = world;
	this._queuePick = queue;
}
 
开发者ID:encode32,项目名称:WurmEsp,代码行数:5,代码来源:XRayManager.java

示例5: getWorld

import com.wurmonline.client.game.World; //导入依赖的package包/类
public World getWorld() {
	return world;
}
 
开发者ID:jonathanedgecombe,项目名称:anvil,代码行数:4,代码来源:ClientPluginContext.java


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