Interface FixedTransactionalPacketBinding<P extends RequestPacket<R>,R extends Packet>
-
- Type Parameters:
P
- The request packet typeR
- The response packet type
- All Superinterfaces:
PacketBinding<P>
,TransactionalPacketBinding<P,R>
public interface FixedTransactionalPacketBinding<P extends RequestPacket<R>,R extends Packet> extends TransactionalPacketBinding<P,R>
A transactional packet binding which is bound to a fixed response type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<R>
responsePacketType()
Gets the type of the response packet.-
Methods inherited from interface org.spongepowered.api.network.channel.packet.TransactionalPacketBinding
addResponseHandler, addResponseHandler, addResponseHandler, addResponseHandler, addResponseHandler, addResponseHandler, opcode, packetType, setRequestHandler, setRequestHandler, setRequestHandler
-
-
-
-
Method Detail
-
responsePacketType
java.lang.Class<R> responsePacketType()
Gets the type of the response packet.- Returns:
- The response packet type
-
-