![]() |
fCraft
0.638
Custom Minecraft Server
|
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. More...
Static Public Member Functions | |
| static IEnumerable< Player > | Ranked (this IEnumerable< Player > source, Rank rank) |
| Filters a collection of players, leaving only those of the given rank. | |
| static IEnumerable< Player > | NotRanked (this IEnumerable< Player > source, Rank rank) |
| Filters a collection of players, leaving only those NOT of the given rank. | |
| static IEnumerable< Player > | RankedAbove (this IEnumerable< Player > source, Rank minRank) |
| Filters a collection of players, leaving only those above the given rank. | |
| static IEnumerable< Player > | RankedAtLeast (this IEnumerable< Player > source, Rank minRank) |
| Filters a collection of players, leaving only those of or above the given rank. | |
| static IEnumerable< Player > | RankedBelow (this IEnumerable< Player > source, Rank maxRank) |
| Filters a collection of players, leaving only those below the given rank. | |
| static IEnumerable< Player > | RankedAtMost (this IEnumerable< Player > source, Rank maxRank) |
| Filters a collection of players, leaving only those of or below the given rank. | |
| static IEnumerable< Player > | Can ([NotNull] this IEnumerable< Player > source, Permission permission) |
| Filters a collection of players, leaving only those who have the given permission. | |
| static IEnumerable< Player > | Can ([NotNull] this IEnumerable< Player > source, Permission permission,[NotNull] Rank affectedRank) |
| Filters a collection of players, leaving only those who have the given permission, and with permission limits allowing operation on the given rank. | |
| static IEnumerable< Player > | Cant ([NotNull] this IEnumerable< Player > source, Permission permission) |
| Filters a collection of players, leaving only those who do NOT have the given permission. | |
| static IEnumerable< Player > | Cant ([NotNull] this IEnumerable< Player > source, Permission permission,[NotNull] Rank affectedRank) |
| 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. | |
| static IEnumerable< Player > | CanSee ([NotNull] this IEnumerable< Player > source,[NotNull] Player targetPlayer) |
| Filters a collection of players, leaving only those who can see the target. Does not include the target itself. | |
| static IEnumerable< Player > | CantSee ([NotNull] this IEnumerable< Player > source,[NotNull] Player targetPlayer) |
| Filters a collection of players, leaving only those who can NOT see the target. Does not include the target itself. | |
| static IEnumerable< Player > | CanBeSeen ([NotNull] this IEnumerable< Player > source,[NotNull] Player observer) |
| Filters a collection of players, leaving only those who can be seen by the given player. | |
| static IEnumerable< Player > | CantBeSeen ([NotNull] this IEnumerable< Player > source,[NotNull] Player observer) |
| Filters a collection of players, leaving only those who can NOT be seen by the given player. | |
| static IEnumerable< Player > | Ignoring ([NotNull] this IEnumerable< Player > source,[NotNull] Player player) |
| Filters a collection of players, leaving only those who are ignoring the given player. | |
| static IEnumerable< Player > | NotIgnoring ([NotNull] this IEnumerable< Player > source,[NotNull] Player player) |
| Filters a collection of players, leaving only those who are NOT ignoring the given player. | |
| static IEnumerable< Player > | Ignoring ([NotNull] this IEnumerable< Player > source,[NotNull] PlayerInfo playerInfo) |
| Filters a collection of players, leaving only those who are ignoring the given player. | |
| static IEnumerable< Player > | NotIgnoring ([NotNull] this IEnumerable< Player > source,[NotNull] PlayerInfo playerInfo) |
| Filters a collection of players, leaving only those who are NOT ignoring the given player. | |
| static IEnumerable< Player > | IgnoredBy ([NotNull] this IEnumerable< Player > source,[NotNull] Player ignorer) |
| Filters a collection of players, leaving only those who are ignored by the given player. | |
| static IEnumerable< Player > | NotIgnoredBy ([NotNull] this IEnumerable< Player > source,[NotNull] Player ignorer) |
| Filters a collection of players, leaving only those who are NOT ignored by the given player. | |
| static IEnumerable< Player > | InWorld ([NotNull] this IEnumerable< Player > source,[NotNull] World world) |
| Filters a collection of players, leaving only those who are currently located on the given world. | |
| static IEnumerable< Player > | NotInWorld ([NotNull] this IEnumerable< Player > source,[NotNull] World world) |
| Filters a collection of players, leaving only those who are currently NOT located on the given world. | |
| static IEnumerable< Player > | Union ([NotNull] this IEnumerable< Player > source,[NotNull] Player includedPlayer) |
| 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. | |
| static IEnumerable< Player > | Except ([NotNull] this IEnumerable< Player > source,[CanBeNull] Player excludedPlayer) |
| Removes player from the given set. Precisely speaking, produces the set difference between the given collection of players and a given player. | |
| static IEnumerable< Player > | FromIP ([NotNull] this IEnumerable< Player > source,[NotNull] IPAddress ip) |
| Filters a collection of players, leaving only those connected from a given IP. | |
| static IEnumerable< Player > | NotFromIP ([NotNull] this IEnumerable< Player > source,[NotNull] IPAddress ip) |
| Filters a collection of players, leaving only those NOT connected from a given IP. | |
| static int | Message ([NotNull] this IEnumerable< Player > source,[NotNull] string message,[NotNull] params object[] formatArgs) |
| Formats and broadcasts a message. Same semantics as Player.Message(). | |
| static int | Message ([NotNull] this IEnumerable< Player > source,[CanBeNull] Player except,[NotNull] string message,[NotNull] params object[] formatArgs) |
| Formats and broadcasts a message. | |
| static int | MessagePrefixed ([NotNull] this IEnumerable< Player > source,[NotNull] string prefix,[NotNull] string message,[NotNull] params object[] formatArgs) |
| Formats and broadcasts a message, prefixing wrapped lines. | |
| static int | MessageWoMAlert ([NotNull] this IEnumerable< Player > source,[NotNull] string message,[NotNull] params object[] formatArgs) |
| Formats and broadcasts a message, showing on top-left for those who use WoM. | |
| static int | Send ([NotNull] this IEnumerable< Player > source, Packet packet) |
| Broadcasts a packet with normal priority. | |
| static int | Send ([NotNull] this IEnumerable< Player > source,[CanBeNull] Player except, Packet packet) |
| Broadcasts a packet with normal priority. | |
| static int | SendLowPriority ([NotNull] this IEnumerable< Player > source, Packet packet) |
| Broadcasts a packet with low priority. | |
| static int | SendLowPriority ([NotNull] this IEnumerable< Player > source,[CanBeNull] Player except, Packet packet) |
| Broadcasts a packet with low priority. | |
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.
|
static |
Filters a collection of players, leaving only those who have the given permission.
| source | Original collection of players. Will not get modified. |
| permission | Permission that players are required to have. |
|
static |
Filters a collection of players, leaving only those who have the given permission, and with permission limits allowing operation on the given rank.
| source | Original collection of players. Will not get modified. |
| permission | Permission that players are required to have. |
| affectedRank | Permission limit will be checked against this rank. |
|
static |
Filters a collection of players, leaving only those who can be seen by the given player.
| source | Original collection of players. Will not get modified. |
| observer | Player whose vision is being tested. |
|
static |
Filters a collection of players, leaving only those who can see the target. Does not include the target itself.
| source | Original collection of players. Will not get modified. |
| targetPlayer | Player whose visibility is being tested. |
|
static |
Filters a collection of players, leaving only those who do NOT have the given permission.
| source | Original collection of players. Will not get modified. |
| permission | Permission that players are required to NOT have. |
|
static |
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.
| source | Original collection of players. Will not get modified. |
| permission | Permission that players are required to NOT have. |
| affectedRank | Permission limit will be checked against this rank. |
|
static |
Filters a collection of players, leaving only those who can NOT be seen by the given player.
| source | Original collection of players. Will not get modified. |
| observer | Player whose vision is being tested. |
|
static |
Filters a collection of players, leaving only those who can NOT see the target. Does not include the target itself.
| source | Original collection of players. Will not get modified. |
| targetPlayer | Player whose visibility is being tested. |
|
static |
Removes player from the given set. Precisely speaking, produces the set difference between the given collection of players and a given player.
| source | Original set of players. Will not get modified. |
| excludedPlayer | Player to remove from the set. |
|
static |
Filters a collection of players, leaving only those connected from a given IP.
| source | Original collection of players. Will not get modified. |
| ip | IP that we are including. |
|
static |
Filters a collection of players, leaving only those who are ignored by the given player.
| source | Original collection of players. Will not get modified. |
| ignorer | Player whose disposition is being checked. |
|
static |
Filters a collection of players, leaving only those who are ignoring the given player.
| source | Original collection of players. Will not get modified. |
| player | Player whose ignore standing is being checked. |
|
static |
Filters a collection of players, leaving only those who are ignoring the given player.
| source | Original collection of players. Will not get modified. |
| playerInfo | Player whose ignore standing is being checked. |
|
static |
Filters a collection of players, leaving only those who are currently located on the given world.
| source | Original collection of players. Will not get modified. |
| world | World that players are desired to be on. |
|
static |
Formats and broadcasts a message. Same semantics as Player.Message().
| source | List of players who will receive the message. |
| message | A composite format string for the message. Same semantics as String.Format(). |
| formatArgs | An object array that contains zero or more objects to format. |
| ArgumentNullException | source, message, or formatArgs is null. |
| FormatException | Message format is invalid. |
|
static |
Formats and broadcasts a message.
| source | List of players who will receive the message. |
| except | Player to exclude from the recepient list. May be null (no one will be excluded). |
| message | A composite format string for the message. Same semantics as String.Format(). |
| formatArgs | An object array that contains zero or more objects to format. |
| ArgumentNullException | source, message, or formatArgs is null. |
| FormatException | Message format is invalid. |
|
static |
Formats and broadcasts a message, prefixing wrapped lines.
| source | List of players who will receive the message. |
| prefix | Prefix to prepend to prepend to each line after the 1st, if any line-wrapping occurs. Does NOT get prepended to first line. |
| message | A composite format string for the message. Same semantics as String.Format(). |
| formatArgs | An object array that contains zero or more objects to format. |
| ArgumentNullException | source, prefix, message, or formatArgs is null. |
| FormatException | Message format is invalid. |
|
static |
Formats and broadcasts a message, showing on top-left for those who use WoM.
| source | List of players who will receive the message. |
| message | A composite format string for the message. Same semantics as String.Format(). |
| formatArgs | An object array that contains zero or more objects to format. |
| ArgumentNullException | source, message, or formatArgs is null. |
| FormatException | Message format is invalid. |
|
static |
Filters a collection of players, leaving only those NOT connected from a given IP.
| source | Original collection of players. Will not get modified. |
| ip | IP that we are excluding. |
|
static |
Filters a collection of players, leaving only those who are NOT ignored by the given player.
| source | Original collection of players. Will not get modified. |
| ignorer | Player whose disposition is being checked. |
|
static |
Filters a collection of players, leaving only those who are NOT ignoring the given player.
| source | Original collection of players. Will not get modified. |
| player | Player whose ignore standing is being checked. |
|
static |
Filters a collection of players, leaving only those who are NOT ignoring the given player.
| source | Original collection of players. Will not get modified. |
| playerInfo | Player whose ignore standing is being checked. |
|
static |
Filters a collection of players, leaving only those who are currently NOT located on the given world.
| source | Original collection of players. Will not get modified. |
| world | World that players are desired to NOT be on. |
|
static |
Filters a collection of players, leaving only those NOT of the given rank.
| source | Original collection of players. Will not get modified. |
| rank | Undesired rank. |
|
static |
Filters a collection of players, leaving only those of the given rank.
| source | Original collection of players. Will not get modified. |
| rank | Desired rank. |
|
static |
Filters a collection of players, leaving only those above the given rank.
| source | Original collection of players. Will not get modified. |
| minRank | All ranks above this one will be kept. This and lower ranks will be filtered out. |
|
static |
Filters a collection of players, leaving only those of or above the given rank.
| source | Original collection of players. Will not get modified. |
| minRank | Minimum desired rank. |
|
static |
Filters a collection of players, leaving only those of or below the given rank.
| source | Original collection of players. Will not get modified. |
| maxRank | Maximum desired rank. |
|
static |
Filters a collection of players, leaving only those below the given rank.
| source | Original collection of players. Will not get modified. |
| maxRank | All ranks below this one will be kept. This and higher ranks will be filtered out. |
|
static |
Broadcasts a packet with normal priority.
| source | List of players who will receive the packet. |
| packet | Packet to send. |
|
static |
Broadcasts a packet with low priority.
| source | List of players who will receive the packet. |
| packet | Packet to send. |
|
static |
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.
| source | Original set of players. Will not get modified. |
| includedPlayer | Player to add to the set. |