本文整理汇总了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;
}