Skip to content

Commit

Permalink
Add implementation-detail methods to PlayerFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed May 11, 2023
1 parent e91e8ab commit 5645e14
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/main/java/net/citizensnpcs/api/trait/trait/PlayerFilter.java
Expand Up @@ -71,6 +71,34 @@ public void clear() {
groupAllowlist = groupHidden = null;
}

/**
* Implementation detail: may change in the future.
*/
public Set<UUID> getAllowlist() {
return allowlist;
}

/**
* Implementation detail: may change in the future.
*/
public Set<String> getGroupAllowlist() {
return groupAllowlist;
}

/**
* Implementation detail: may change in the future.
*/
public Set<String> getGroupHidden() {
return groupHidden;
}

/**
* Implementation detail: may change in the future.
*/
public Set<UUID> getHidden() {
return hidden;
}

/**
* Hides the NPC from the given Player UUID.
*
Expand Down Expand Up @@ -181,10 +209,17 @@ public void run() {
recalculate();
}

/**
* Implementation detail: may change in the future.
*/
public void setAllowlist(Set<UUID> allowlist) {
this.allowlist = allowlist == null ? null : Sets.newHashSet(allowlist);
}

/**
* Implementation detail: may change in the future.
*/

public void setHiddenFrom(Set<UUID> hidden) {
this.hidden = hidden == null ? null : Sets.newHashSet(hidden);
}
Expand Down

0 comments on commit 5645e14

Please sign in to comment.