Class MenuEntry


  • public class MenuEntry
    extends java.lang.Object
    A menu entry in a right-click menu.
    • Constructor Summary

      Constructors 
      Constructor Description
      MenuEntry()  
    • 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 getIdentifier()
      An identifier value for the target of the action.
      java.lang.String getOption()
      The option text added to the menu.
      int getParam0()
      An additional parameter for the action.
      int getParam1()
      A second additional parameter for the action.
      java.lang.String getTarget()
      The target of the action.
      int getType()
      The action the entry will trigger.
      int hashCode()  
      boolean isForceLeftClick()
      If this field is true and you have single mouse button on and this entry is the top entry the right click menu will not be opened when you left click This is used for shift click
      void setForceLeftClick​(boolean forceLeftClick)
      If this field is true and you have single mouse button on and this entry is the top entry the right click menu will not be opened when you left click This is used for shift click
      void setIdentifier​(int identifier)
      An identifier value for the target of the action.
      void setOption​(java.lang.String option)
      The option text added to the menu.
      void setParam0​(int param0)
      An additional parameter for the action.
      void setParam1​(int param1)
      A second additional parameter for the action.
      void setTarget​(java.lang.String target)
      The target of the action.
      void setType​(int type)
      The action the entry will trigger.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • MenuEntry

        public MenuEntry()
    • 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.

      • getIdentifier

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

        public int getType()
        The action the entry will trigger.
      • getParam0

        public int getParam0()
        An additional parameter for the action.
      • getParam1

        public int getParam1()
        A second additional parameter for the action.
      • isForceLeftClick

        public boolean isForceLeftClick()
        If this field is true and you have single mouse button on and this entry is the top entry the right click menu will not be opened when you left click This is used for shift click
      • setOption

        public void setOption​(java.lang.String option)
        The option text added to the menu. (ie. "Walk here", "Use")
      • setTarget

        public void setTarget​(java.lang.String target)
        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.

      • setIdentifier

        public void setIdentifier​(int identifier)
        An identifier value for the target of the action.
      • setType

        public void setType​(int type)
        The action the entry will trigger.
      • setParam0

        public void setParam0​(int param0)
        An additional parameter for the action.
      • setParam1

        public void setParam1​(int param1)
        A second additional parameter for the action.
      • setForceLeftClick

        public void setForceLeftClick​(boolean forceLeftClick)
        If this field is true and you have single mouse button on and this entry is the top entry the right click menu will not be opened when you left click This is used for shift click
      • 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