Class MenuEntryAdded


  • public class MenuEntryAdded
    extends java.lang.Object
    An event when a new entry is added to a right-click menu.
    • Constructor Summary

      Constructors 
      Constructor Description
      MenuEntryAdded​(java.lang.String option, java.lang.String target, int type, int identifier, int actionParam0, int actionParam1)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      int getActionParam0()
      An additional parameter for the action.
      int getActionParam1()
      A second additional parameter for the action.
      int getIdentifier()
      An identifier value for the target of the action
      java.lang.String getOption()
      The option text added to the menu.
      java.lang.String getTarget()
      The target of the action.
      int getType()
      The action type that will be triggered.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MenuEntryAdded

        public MenuEntryAdded​(java.lang.String option,
                              java.lang.String target,
                              int type,
                              int identifier,
                              int actionParam0,
                              int actionParam1)
    • Method Detail

      • getOption

        public java.lang.String getOption()
        The option text added to the menu. (ie. "Walk here", "Use")
      • getTarget

        public java.lang.String getTarget()
        The target of the action. (ie. Item or Actor name)

        If the option does not apply to any target, this field will be set to empty string.

      • getType

        public int getType()
        The action type that will be triggered.
      • getIdentifier

        public int getIdentifier()
        An identifier value for the target of the action
      • getActionParam0

        public int getActionParam0()
        An additional parameter for the action.
      • getActionParam1

        public int getActionParam1()
        A second additional parameter for the action.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object