类 PCP.AbstractPacket
- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.impl.chat.PCP.AbstractPacket
-
- 直接已知子类:
PCP.WrapperPlayServerChat
- 封闭类:
- PCP
public abstract static class PCP.AbstractPacket extends Object
-
-
字段概要
字段 修饰符和类型 字段 说明 protected com.comphenix.protocol.events.PacketContainerhandle
-
构造器概要
构造器 限定符 构造器 说明 protectedAbstractPacket(com.comphenix.protocol.events.PacketContainer handle, com.comphenix.protocol.PacketType type)Constructs a new strongly typed wrapper for the given packet.
-
方法概要
修饰符和类型 方法 说明 voidbroadcastPacket()Send the current packet to all online players.com.comphenix.protocol.events.PacketContainergetHandle()Retrieve a handle to the raw packet data.voidreceivePacket(Player sender)Simulate receiving the current packet from the given sender.voidrecievePacket(Player sender)已过时。Misspelled. recieve to receivevoidsendPacket(Player receiver)Send the current packet to the given receiver.
-
-
-
方法详细资料
-
getHandle
public com.comphenix.protocol.events.PacketContainer getHandle()
Retrieve a handle to the raw packet data.- 返回:
- Raw packet data.
-
sendPacket
public void sendPacket(Player receiver)
Send the current packet to the given receiver.- 参数:
receiver- - the receiver.- 抛出:
RuntimeException- If the packet cannot be sent.
-
broadcastPacket
public void broadcastPacket()
Send the current packet to all online players.
-
recievePacket
@Deprecated public void recievePacket(Player sender)
已过时。Misspelled. recieve to receiveSimulate receiving the current packet from the given sender.- 参数:
sender- - the sender.- 抛出:
RuntimeException- If the packet cannot be received.- 另请参阅:
receivePacket(Player)
-
receivePacket
public void receivePacket(Player sender)
Simulate receiving the current packet from the given sender.- 参数:
sender- - the sender.- 抛出:
RuntimeException- if the packet cannot be received.
-
-