public static class ListeningWhitelist.Builder
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
| ListeningWhitelist | build()Construct a new whitelist from the values in this builder. | 
| ListeningWhitelist.Builder | gamePhase(GamePhase gamePhase)Set the gamephase to use when constructing new whitelists. | 
| ListeningWhitelist.Builder | gamePhaseBoth()Set the gamephase to  GamePhase.BOTH. | 
| ListeningWhitelist.Builder | high()Set the priority of the whitelist to high. | 
| ListeningWhitelist.Builder | highest()Set the priority of the whitelist to highest. | 
| ListeningWhitelist.Builder | low()Set the priority of the whitelist to low. | 
| ListeningWhitelist.Builder | lowest()Set the priority of the whitelist to lowest. | 
| ListeningWhitelist.Builder | mergeOptions(java.util.Collection<ListenerOptions> serverOptions)Options to merge into the current set of options. | 
| ListeningWhitelist.Builder | mergeOptions(ListenerOptions... serverOptions)Options to merge into the current set of options. | 
| ListeningWhitelist.Builder | monitor()Set the priority of the whitelist to monitor. | 
| ListeningWhitelist.Builder | normal()Set the priority of the whitelist to normal. | 
| ListeningWhitelist.Builder | options(java.util.Collection<ListenerOptions> options)Set the options to copy when constructing new whitelists. | 
| ListeningWhitelist.Builder | options(ListenerOptions[] serverOptions)Set the options to copy when constructing new whitelists. | 
| ListeningWhitelist.Builder | options(java.util.Set<ListenerOptions> options)Set the options to copy when constructing new whitelists. | 
| ListeningWhitelist.Builder | priority(ListenerPriority priority)Set the priority to use when constructing new whitelists. | 
| ListeningWhitelist.Builder | types(java.util.Collection<PacketType> types)Set the whitelist of packet types to copy when constructing new whitelists. | 
| ListeningWhitelist.Builder | types(PacketType... types)Set the whitelist of packet types to copy when constructing new whitelists. | 
| ListeningWhitelist.Builder | whitelist(java.util.Collection<java.lang.Integer> whitelist)Deprecated.  | 
public ListeningWhitelist.Builder priority(ListenerPriority priority)
priority - - the priority.public ListeningWhitelist.Builder monitor()
public ListeningWhitelist.Builder normal()
public ListeningWhitelist.Builder lowest()
public ListeningWhitelist.Builder low()
public ListeningWhitelist.Builder highest()
public ListeningWhitelist.Builder high()
@Deprecated public ListeningWhitelist.Builder whitelist(java.util.Collection<java.lang.Integer> whitelist)
 Deprecated: Use types(Collection) instead.
whitelist - - the whitelist of packets.public ListeningWhitelist.Builder types(PacketType... types)
types - - the whitelist of packets.public ListeningWhitelist.Builder types(java.util.Collection<PacketType> types)
types - - the whitelist of packets.public ListeningWhitelist.Builder gamePhase(GamePhase gamePhase)
gamePhase - - the gamephase.public ListeningWhitelist.Builder gamePhaseBoth()
GamePhase.BOTH.public ListeningWhitelist.Builder options(java.util.Set<ListenerOptions> options)
options - - the options.public ListeningWhitelist.Builder options(java.util.Collection<ListenerOptions> options)
options - - the options.public ListeningWhitelist.Builder options(ListenerOptions[] serverOptions)
options - - the options array.public ListeningWhitelist.Builder mergeOptions(ListenerOptions... serverOptions)
options - - the options array.public ListeningWhitelist.Builder mergeOptions(java.util.Collection<ListenerOptions> serverOptions)
options - - the options array.public ListeningWhitelist build()