Interface ServerEmoteEvents.EmoteVerifier

Enclosing class:
ServerEmoteEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ServerEmoteEvents.EmoteVerifier
  • Method Summary

    Modifier and Type
    Method
    Description
    com.zigythebird.playeranimcore.event.EventResult
    verify(com.zigythebird.playeranimcore.animation.Animation emote, UUID userID)
    Verify an emote possible results:
  • Method Details

    • verify

      com.zigythebird.playeranimcore.event.EventResult verify(com.zigythebird.playeranimcore.animation.Animation emote, UUID userID)
      Verify an emote possible results:

      EventResult.FAIL: verification failed, won't allow user to play the emote

      EventResult.PASS}: this callback allows the emote to be played. NOTE: other callbacks can refuse it

      EventResult.SUCCESS: Emote will be allowed BUT no other callbacks will be invoked. DO NOT DO THIS I don't even know, why do I allow this

      Parameters:
      emote -
      userID -
      Returns: