Class ServerPlayerMixin

java.lang.Object
com.bleudev.nine_lifes.mixin.ServerPlayerMixin
All Implemented Interfaces:
CustomServerPlayer

public abstract class ServerPlayerMixin extends Object implements CustomServerPlayer
  • Field Details

    • lifes

      protected int lifes
    • lifesPlayTime

      protected int[] lifesPlayTime
    • stickUsedTicks

      protected int stickUsedTicks
  • Constructor Details

    • ServerPlayerMixin

      public ServerPlayerMixin()
  • Method Details

    • nl$getLifes

      public int nl$getLifes()
      Description copied from interface: CustomServerPlayer
      Get player lifes

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

      Specified by:
      nl$getLifes in interface CustomServerPlayer
      Returns:
      Player lifes
    • nl$setLifes

      public void nl$setLifes(int newLifesCount) throws IllegalArgumentException
      Description copied from interface: CustomServerPlayer
      Set player lifes to newLifesCount

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

      Specified by:
      nl$setLifes in interface CustomServerPlayer
      Parameters:
      newLifesCount - New lifes count
      Throws:
      IllegalArgumentException - newLifesCount out of range[0; 9]
    • nl$getLifesPlayTime

      public int nl$getLifesPlayTime(int lifesCount) throws NullPointerException
      Description copied from interface: CustomServerPlayer
      Get play time with specified lifesCount

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

      Specified by:
      nl$getLifesPlayTime in interface CustomServerPlayer
      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

      public int nl$getStickUsedTicks()
      Description copied from interface: CustomServerPlayer
      Get amethyst stick use effect ticks

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

      Specified by:
      nl$getStickUsedTicks in interface CustomServerPlayer
      Returns:
      Amethyst stick use effect ticks
    • nl$setStickUsedTicks

      public void nl$setStickUsedTicks(int newTicks)
      Description copied from interface: CustomServerPlayer
      Set amethyst stick use effect ticks

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

      Specified by:
      nl$setStickUsedTicks in interface CustomServerPlayer
      Parameters:
      newTicks - New amethyst stick use effect ticks