Class CustomClickEvent

    • Field Detail

    • Constructor Detail

      • CustomClickEvent

        public CustomClickEvent​(ProxiedPlayer player,
                                String id,
                                Map<String,​String> data)
        Creates a new CustomClickEvent instance.
        Parameters:
        player - Player who clicked.
        id - Custom action ID.
        data - Form data, may be null. If a form submission, usually contains a CustomClickEvent.ACTION_KEY key with the ID of the relevant submission action.
    • Method Detail

      • getPlayer

        public ProxiedPlayer getPlayer()
        Player who clicked.
      • getId

        public String getId()
        Custom action ID.
      • getData

        public Map<String,​String> getData()
        Form data, may be null. If a form submission, usually contains a CustomClickEvent.ACTION_KEY key with the ID of the relevant submission action.
      • isCancelled

        public boolean isCancelled()
        Cancelled state.
        Specified by:
        isCancelled in interface Cancellable
        Returns:
        the cancelled state of this event
      • setCancelled

        public void setCancelled​(boolean cancelled)
        Cancelled state.
        Specified by:
        setCancelled in interface Cancellable
        Parameters:
        cancelled - the state to set
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object