public interface ProtocolPipeline extends SimpleProtocol
SimpleProtocol.DummyPacketTypes
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.Collection<Protocol> protocols)
Adds a collection of protocols to the current pipeline.
|
void |
add(Protocol protocol)
Adds a protocol to the current pipeline.
|
void |
cleanPipes()
Cleans the pipe and adds the base protocol.
|
boolean |
contains(java.lang.Class<? extends Protocol> protocolClass)
Returns whether the protocol is in this pipeline.
|
<P extends Protocol> |
getProtocol(java.lang.Class<P> pipeClass)
Returns the protocol from the given class if present in the pipeline.
|
boolean |
hasNonBaseProtocols()
Returns whether this pipe has protocols that are not base protocols, as given by
Protocol.isBaseProtocol() . |
java.util.List<Protocol> |
pipes()
Returns the list of protocols this pipeline contains.
|
cancelClientbound, cancelClientbound, cancelClientbound, cancelServerbound, cancelServerbound, cancelServerbound, get, getEntityRewriter, getItemRewriter, getMappingData, getPacketTypesProvider, hasMappingDataToLoad, hasRegisteredClientbound, hasRegisteredClientbound, hasRegisteredServerbound, hasRegisteredServerbound, init, initialize, isBaseProtocol, loadMappingData, put, register, registerClientbound, registerClientbound, registerClientbound, registerClientbound, registerClientbound, registerClientbound, registerClientbound, registerClientbound, registerClientbound, registerClientbound, registerClientbound, registerClientbound, registerServerbound, registerServerbound, registerServerbound, registerServerbound, registerServerbound, registerServerbound, registerServerbound, registerServerbound, registerServerbound, registerServerbound, registerServerbound, registerServerbound, transform
void add(Protocol protocol)
Protocol.init(UserConnection)
method.protocol
- protocol to add to the endvoid add(java.util.Collection<Protocol> protocols)
Protocol.init(UserConnection)
method.
Callers of this method should make sure the collection is correctly sorted.
protocols
- correctly sorted protocols to add to the endboolean contains(java.lang.Class<? extends Protocol> protocolClass)
protocolClass
- protocol class<P extends Protocol> P getProtocol(java.lang.Class<P> pipeClass)
P
- protocolpipeClass
- protocol classcontains(Class)
,
for a faster implementation
java.util.List<Protocol> pipes()
boolean hasNonBaseProtocols()
Protocol.isBaseProtocol()
.void cleanPipes()