Class VarbitChanged


  • public class VarbitChanged
    extends 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 Detail

      • VarbitChanged

        public VarbitChanged()
    • Method Detail

      • getIndex

        @Deprecated
        public int getIndex()
        Deprecated.
      • getVarpId

        public int getVarpId()
        The id of the varp that was changed. For a varplayer, this is the varplayer id.
      • getVarbitId

        public int getVarbitId()
        The id of the varbit that was changed. For a varplayer, this is -1.
      • getValue

        public int getValue()
        The new value of the varp or varbit
      • setVarpId

        public void setVarpId​(int varpId)
        The id of the varp that was changed. For a varplayer, this is the varplayer id.
      • setVarbitId

        public void setVarbitId​(int varbitId)
        The id of the varbit that was changed. For a varplayer, this is -1.
      • setValue

        public void setValue​(int value)
        The new value of the varp or varbit
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object