[This is preliminary documentation and is subject to change.]
Contains a set of utilities that simplify working with sets of players.
All the utilities are implemented as extension methods,
and it is recommended that you invoke them as extension methods.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.0 (0.6.3.0)
Syntax
| C# |
public static class PlayerEnumerable
Members
| All Members | Methods |
| Member | Description | |
|---|---|---|
| Can(IEnumerable<(Of <<'(Player>)>>), Permission) | Filters a collection of players, leaving only those who have the given permission. | |
| Can(IEnumerable<(Of <<'(Player>)>>), Permission, Rank) | Filters a collection of players, leaving only those who have the given permission,
and with permission limits allowing operation on the given rank. | |
| CanBeSeen(IEnumerable<(Of <<'(Player>)>>), Player) | Filters a collection of players, leaving only those who can be seen by the given player. | |
| CanSee(IEnumerable<(Of <<'(Player>)>>), Player) | Filters a collection of players, leaving only those who can see the target.
Does not include the target itself. | |
| Cant(IEnumerable<(Of <<'(Player>)>>), Permission) | Filters a collection of players, leaving only those who do NOT have the given permission. | |
| Cant(IEnumerable<(Of <<'(Player>)>>), Permission, Rank) | Filters a collection of players, leaving only those who do NOT have the given permission,
or with permission limits NOT allowing operation on the given rank. | |
| CantBeSeen(IEnumerable<(Of <<'(Player>)>>), Player) | Filters a collection of players, leaving only those who can NOT be seen by the given player. | |
| CantSee(IEnumerable<(Of <<'(Player>)>>), Player) | Filters a collection of players, leaving only those who can NOT see the target.
Does not include the target itself. | |
| Except(IEnumerable<(Of <<'(Player>)>>), Player) | Removes player from the given set.
Precisely speaking, produces the set difference between the given collection of players and a given player. | |
| FromIP(IEnumerable<(Of <<'(Player>)>>), IPAddress) | Filters a collection of players, leaving only those connected from a given IP. | |
| IgnoredBy(IEnumerable<(Of <<'(Player>)>>), Player) | Filters a collection of players, leaving only those who are ignored by the given player. | |
| Ignoring(IEnumerable<(Of <<'(Player>)>>), Player) | Filters a collection of players, leaving only those who are ignoring the given player. | |
| Ignoring(IEnumerable<(Of <<'(Player>)>>), PlayerInfo) | Filters a collection of players, leaving only those who are ignoring the given player. | |
| InWorld(IEnumerable<(Of <<'(Player>)>>), World) | Filters a collection of players, leaving only those who are currently located on the given world. | |
| Message(IEnumerable<(Of <<'(Player>)>>), String) | Broadcasts a message. | |
| Message(IEnumerable<(Of <<'(Player>)>>), Player, String) | Broadcasts a message. | |
| Message(IEnumerable<(Of <<'(Player>)>>), String, array<Object>[]()[][]) | Formats and broadcasts a message. | |
| Message(IEnumerable<(Of <<'(Player>)>>), Player, String, array<Object>[]()[][]) | Formats and broadcasts a message. | |
| MessageAlt(IEnumerable<(Of <<'(Player>)>>), String, array<Object>[]()[][]) | Formats and broadcasts a message, showing on top-left for those who use WoM. | |
| MessagePrefixed(IEnumerable<(Of <<'(Player>)>>), String, String) | Broadcasts a message, prefixing wrapped lines. | |
| MessagePrefixed(IEnumerable<(Of <<'(Player>)>>), String, String, array<Object>[]()[][]) | Formats and broadcasts a message, prefixing wrapped lines. | |
| NotFromIP(IEnumerable<(Of <<'(Player>)>>), IPAddress) | Filters a collection of players, leaving only those NOT connected from a given IP. | |
| NotIgnoredBy(IEnumerable<(Of <<'(Player>)>>), Player) | Filters a collection of players, leaving only those who are NOT ignored by the given player. | |
| NotIgnoring(IEnumerable<(Of <<'(Player>)>>), Player) | Filters a collection of players, leaving only those who are NOT ignoring the given player. | |
| NotIgnoring(IEnumerable<(Of <<'(Player>)>>), PlayerInfo) | Filters a collection of players, leaving only those who are NOT ignoring the given player. | |
| NotInWorld(IEnumerable<(Of <<'(Player>)>>), World) | Filters a collection of players, leaving only those who are currently NOT located on the given world. | |
| NotRanked(IEnumerable<(Of <<'(Player>)>>), Rank) | Filters a collection of players, leaving only those NOT of the given rank. | |
| Ranked(IEnumerable<(Of <<'(Player>)>>), Rank) | Filters a collection of players, leaving only those of the given rank. | |
| RankedAbove(IEnumerable<(Of <<'(Player>)>>), Rank) | Filters a collection of players, leaving only those above the given rank. | |
| RankedAtLeast(IEnumerable<(Of <<'(Player>)>>), Rank) | Filters a collection of players, leaving only those of or above the given rank. | |
| RankedAtMost(IEnumerable<(Of <<'(Player>)>>), Rank) | Filters a collection of players, leaving only those of or below the given rank. | |
| RankedBelow(IEnumerable<(Of <<'(Player>)>>), Rank) | Filters a collection of players, leaving only those below the given rank. | |
| Send(IEnumerable<(Of <<'(Player>)>>), Packet) | Broadcasts a packet with normal priority. | |
| Send(IEnumerable<(Of <<'(Player>)>>), Player, Packet) | Broadcasts a packet with normal priority. | |
| SendLowPriority(IEnumerable<(Of <<'(Player>)>>), Packet) | Broadcasts a packet with low priority. | |
| SendLowPriority(IEnumerable<(Of <<'(Player>)>>), Player, Packet) | Broadcasts a packet with low priority. | |
| Union(IEnumerable<(Of <<'(Player>)>>), Player) | Adds players to the given set.
]If the given sequence of players already contains player, no duplicate is added.
Precisely speaking, produces the set union of a given collection of players and a given player. |