Interface CustomServerPlayer

All Known Implementing Classes:
ServerPlayerMixin

@Internal public interface CustomServerPlayer
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get player lifes
    int
    nl$getLifesPlayTime(int lifesCount)
    Get play time with specified lifesCount
    int
    Get amethyst stick use effect ticks
    void
    nl$setLifes(int newLifesCount)
    Set player lifes to newLifesCount
    void
    nl$setStickUsedTicks(int newTicks)
    Set amethyst stick use effect ticks
  • Method Details

    • nl$getLifes

      int nl$getLifes()
      Get player lifes

      Note: This method is unstable and use of this method is not recommended. Use ServerPlayer.lifes inject instead.

      Returns:
      Player lifes
    • nl$setLifes

      void nl$setLifes(int newLifesCount) throws IllegalArgumentException
      Set player lifes to newLifesCount

      Note: This method is unstable and use of this method is not recommended. Use ServerPlayer.setLifes() inject instead.

      Parameters:
      newLifesCount - New lifes count
      Throws:
      IllegalArgumentException - newLifesCount out of range[0; 9]
    • nl$getLifesPlayTime

      int nl$getLifesPlayTime(int lifesCount) throws NullPointerException
      Get play time with specified lifesCount

      Note: This method is unstable and use of this method is not recommended. Use ServerPlayer.lifesPlayTime() inject instead.

      Parameters:
      lifesCount - Lifes count to get play time with
      Returns:
      Play time with specified lifes count
      Throws:
      NullPointerException - lifesCount out of range [0; 9]
    • nl$getStickUsedTicks

      int nl$getStickUsedTicks()
      Get amethyst stick use effect ticks

      Note: This method is unstable and use of this method is not recommended. Use ServerPlayer.stickUsedTicks inject instead.

      Returns:
      Amethyst stick use effect ticks
    • nl$setStickUsedTicks

      void nl$setStickUsedTicks(int newTicks)
      Set amethyst stick use effect ticks

      Note: This method is unstable and use of this method is not recommended. Use ServerPlayer.stickUsedTicks inject instead.

      Parameters:
      newTicks - New amethyst stick use effect ticks