SteamWar/BauSystem2.0
Archiviert
12
0

Added docs
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
D4rkr34lm 2024-03-02 22:11:46 +01:00
Ursprung 75edfc8375
Commit 335e2cc437

Datei anzeigen

@ -108,6 +108,12 @@ public class TraceManager implements Listener {
return new ArrayList<>(traces); return new ArrayList<>(traces);
} }
/** Toggles trace show on for player
*
* @param player
* @param viewFlags
* @param bundleFilter
*/
public void show(Player player, ViewFlag[] viewFlags, BundleFilter bundleFilter) { public void show(Player player, ViewFlag[] viewFlags, BundleFilter bundleFilter) {
viewFlagMap.put(player, viewFlags); viewFlagMap.put(player, viewFlags);
bundleFilterMap.put(player, bundleFilter); bundleFilterMap.put(player, bundleFilter);
@ -116,6 +122,10 @@ public class TraceManager implements Listener {
trace.render(player, viewFlags, bundleFilter); trace.render(player, viewFlags, bundleFilter);
} }
/** Toggles trace show of for player
*
* @param player
*/
public void hide(Player player){ public void hide(Player player){
for(Trace trace: traces) for(Trace trace: traces)
trace.hide(player); trace.hide(player);