Package com.comphenix.protocol.events
Class ListeningWhitelist.Builder
java.lang.Object
com.comphenix.protocol.events.ListeningWhitelist.Builder
- Enclosing class:
ListeningWhitelist
Represents a builder of whitelists.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Construct a new whitelist from the values in this builder.Deprecated.Deprecated.high()Set the priority of the whitelist to high.highest()Set the priority of the whitelist to highest.low()Set the priority of the whitelist to low.lowest()Set the priority of the whitelist to lowest.mergeOptions(ListenerOptions... serverOptions) Options to merge into the current set of options.mergeOptions(Collection<ListenerOptions> serverOptions) Options to merge into the current set of options.monitor()Set the priority of the whitelist to monitor.normal()Set the priority of the whitelist to normal.options(ListenerOptions[] serverOptions) Set the options to copy when constructing new whitelists.options(Collection<ListenerOptions> options) Set the options to copy when constructing new whitelists.options(Set<ListenerOptions> options) Set the options to copy when constructing new whitelists.priority(ListenerPriority priority) Set the priority to use when constructing new whitelists.types(PacketType... types) Set the whitelist of packet types to copy when constructing new whitelists.types(Collection<PacketType> types) Set the whitelist of packet types to copy when constructing new whitelists.
-
Method Details
-
priority
Set the priority to use when constructing new whitelists.- Parameters:
priority- - the priority.- Returns:
- This builder, for chaining.
-
monitor
Set the priority of the whitelist to monitor.- Returns:
- This builder, for chaining.
-
normal
Set the priority of the whitelist to normal.- Returns:
- This builder, for chaining.
-
lowest
Set the priority of the whitelist to lowest.- Returns:
- This builder, for chaining.
-
low
Set the priority of the whitelist to low.- Returns:
- This builder, for chaining.
-
highest
Set the priority of the whitelist to highest.- Returns:
- This builder, for chaining.
-
high
Set the priority of the whitelist to high.- Returns:
- This builder, for chaining.
-
types
Set the whitelist of packet types to copy when constructing new whitelists.- Parameters:
types- - the whitelist of packets.- Returns:
- This builder, for chaining.
-
types
Set the whitelist of packet types to copy when constructing new whitelists.- Parameters:
types- - the whitelist of packets.- Returns:
- This builder, for chaining.
-
gamePhase
Deprecated.Set the gamephase to use when constructing new whitelists.- Parameters:
gamePhase- - the gamephase.- Returns:
- This builder, for chaining.
-
gamePhaseBoth
Deprecated.Set the gamephase toGamePhase.BOTH.- Returns:
- This builder, for chaining.
-
options
Set the options to copy when constructing new whitelists.- Parameters:
options- - the options.- Returns:
- This builder, for chaining.
-
options
Set the options to copy when constructing new whitelists.- Parameters:
options- - the options.- Returns:
- This builder, for chaining.
-
options
Set the options to copy when constructing new whitelists.- Parameters:
serverOptions- - the options array.- Returns:
- This builder, for chaining.
-
mergeOptions
Options to merge into the current set of options.- Parameters:
serverOptions- - the options array.- Returns:
- This builder, for chaining.
-
mergeOptions
Options to merge into the current set of options.- Parameters:
serverOptions- - the options array.- Returns:
- This builder, for chaining.
-
build
Construct a new whitelist from the values in this builder.- Returns:
- The new whitelist.
-