org.inventivetalent.mapmanager.controller.MapController Java Examples
The following examples show how to use
org.inventivetalent.mapmanager.controller.MapController.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AnimatedFrame.java From AnimatedFrames with MIT License | 6 votes |
public void addViewer(Player player) { if (this.mapWrappers != null) { for (MapWrapper wrapper : mapWrappers) { if (wrapper == null) { plugin.getLogger().warning("Null-element in MapWrapper array of " + getName()); continue; } MapController controller = wrapper.getController(); controller.addViewer(player); controller.sendContent(player); } } synchronized (this.worldPlayersLock) { this.worldPlayers.add(player.getUniqueId()); } }
Example #2
Source File: AnimatedFrame.java From AnimatedFrames with MIT License | 6 votes |
public void removeViewer(OfflinePlayer player) { boolean empty; synchronized (this.worldPlayersLock) { this.worldPlayers.remove(player.getUniqueId()); empty = this.worldPlayers.isEmpty(); } if (this.mapWrappers != null) { for (MapWrapper wrapper : mapWrappers) { if (wrapper == null) { plugin.getLogger().warning("Null-element in MapWrapper array of " + getName()); continue; } MapController controller = wrapper.getController(); if (empty) { controller.clearViewers(); } else { controller.removeViewer(player); } } } }
Example #3
Source File: DefaultMapWrapper.java From MapManager with MIT License | 4 votes |
public MapController getController() { return controller; }
Example #4
Source File: MapWrapper.java From MapManager with MIT License | 2 votes |
/** * Get this {@link MapWrapper}'s {@link MapController} * * @return the {@link MapController} */ MapController getController();