當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。