类 PCP.WrapperPlayServerChat
- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.impl.chat.PCP.AbstractPacket
-
- cn.mcres.karlatemp.mxlib.impl.chat.PCP.WrapperPlayServerChat
-
- 封闭类:
- PCP
public static class PCP.WrapperPlayServerChat extends PCP.AbstractPacket
-
-
字段概要
字段 修饰符和类型 字段 说明 static com.comphenix.protocol.PacketType
TYPE
-
从类继承的字段 cn.mcres.karlatemp.mxlib.impl.chat.PCP.AbstractPacket
handle
-
-
构造器概要
构造器 构造器 说明 WrapperPlayServerChat()
WrapperPlayServerChat(com.comphenix.protocol.events.PacketContainer packet)
-
方法概要
修饰符和类型 方法 说明 com.comphenix.protocol.wrappers.EnumWrappers.ChatType
getChatType()
com.comphenix.protocol.wrappers.WrappedChatComponent
getMessage()
Retrieve the chat message.byte
getPosition()
已过时。Magic values replaced by enumvoid
setChatType(com.comphenix.protocol.wrappers.EnumWrappers.ChatType type)
void
setMessage(com.comphenix.protocol.wrappers.WrappedChatComponent value)
Set the message.void
setPosition(byte value)
已过时。Magic values replaced by enum-
从类继承的方法 cn.mcres.karlatemp.mxlib.impl.chat.PCP.AbstractPacket
broadcastPacket, getHandle, receivePacket, recievePacket, sendPacket
-
-
-
-
方法详细资料
-
getMessage
public com.comphenix.protocol.wrappers.WrappedChatComponent getMessage()
Retrieve the chat message.Limited to 32767 bytes
- 返回:
- The current message
-
setMessage
public void setMessage(com.comphenix.protocol.wrappers.WrappedChatComponent value)
Set the message.- 参数:
value
- - new value.
-
getChatType
public com.comphenix.protocol.wrappers.EnumWrappers.ChatType getChatType()
-
setChatType
public void setChatType(com.comphenix.protocol.wrappers.EnumWrappers.ChatType type)
-
getPosition
@Deprecated public byte getPosition()
已过时。Magic values replaced by enumRetrieve Position.Notes: 0 - Chat (chat box) ,1 - System Message (chat box), 2 - Above action bar
- 返回:
- The current Position
-
setPosition
@Deprecated public void setPosition(byte value)
已过时。Magic values replaced by enumSet Position.- 参数:
value
- - new value.
-
-