Module gomint.api

Class PlayerChatEvent

    • Constructor Detail

      • PlayerChatEvent

        public PlayerChatEvent​(EntityPlayer player,
                               String sender,
                               String text,
                               List<EntityPlayer> recipients)
        Create a new chat event
        Parameters:
        player - which chatted
        text - which has been sent
    • Method Detail

      • getText

        public String getText()
        Get the text which has been sent
        Returns:
        text of this chat event
      • setText

        public void setText​(String text)
        Set the text of this chat event
        Parameters:
        text - to display as a result of this chat event
      • getRecipients

        public List<EntityPlayer> getRecipients()
        Get a list of players which will see this chat
        Returns:
        list of players which will see this
      • getSender

        public String getSender()
        Name of the sender which will be passed to the client for display
        Returns:
        sender of the message
      • setSender

        public void setSender​(String sender)
        Set the name of the sender
        Parameters:
        sender - which will be used to display in the client