本文整理匯總了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);
}
}
示例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();
}
示例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();
}
示例4: _setWQ
import com.wurmonline.client.game.World; //導入依賴的package包/類
public void _setWQ(World world, Queue queue) {
this._world = world;
this._queuePick = queue;
}
示例5: getWorld
import com.wurmonline.client.game.World; //導入依賴的package包/類
public World getWorld() {
return world;
}