类 PCP.WrapperPlayServerChat

    • 字段详细资料

      • TYPE

        public static final com.comphenix.protocol.PacketType TYPE
    • 构造器详细资料

      • WrapperPlayServerChat

        public WrapperPlayServerChat()
      • WrapperPlayServerChat

        public WrapperPlayServerChat​(com.comphenix.protocol.events.PacketContainer packet)
    • 方法详细资料

      • 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 enum
        Retrieve 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 enum
        Set Position.
        参数:
        value - - new value.