Class VarbitChanged


  • public class VarbitChanged
    extends java.lang.Object
    An event when a varbit or varplayer has changed. If the client preemptively changes a varp and the server agrees the next tick, VarbitChanged will only be posted when the client changes the value, not the server. This can cause unintended effects if the VarPlayer has special engine behavior assigned to it.
    • Constructor Summary

      Constructors 
      Constructor Description
      VarbitChanged()  
    • 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 getIndex()
      Index in the varp array that was changed.
      int hashCode()  
      void setIndex​(int index)
      Index in the varp array that was changed.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • VarbitChanged

        public VarbitChanged()
    • Method Detail

      • getIndex

        public int getIndex()
        Index in the varp array that was changed. For varplayer, this is the varplayer id.
      • setIndex

        public void setIndex​(int index)
        Index in the varp array that was changed. For varplayer, this is the varplayer id.
      • 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