Interface CustomServerPlayer
- All Known Implementing Classes:
ServerPlayerMixin
@Internal
public interface CustomServerPlayer
-
Method Summary
Modifier and TypeMethodDescriptionintGet player lifesintnl$getLifesPlayTime(int lifesCount) Get play time with specifiedlifesCountintGet amethyst stick use effect ticksvoidnl$setLifes(int newLifesCount) Set player lifes tonewLifesCountvoidnl$setStickUsedTicks(int newTicks) Set amethyst stick use effect ticks
-
Method Details
-
nl$getLifes
int nl$getLifes()Get player lifesNote: This method is unstable and use of this method is not recommended. Use
ServerPlayer.lifesinject instead.- Returns:
- Player lifes
-
nl$setLifes
Set player lifes tonewLifesCountNote: This method is unstable and use of this method is not recommended. Use
ServerPlayer.setLifes()inject instead.- Parameters:
newLifesCount- New lifes count- Throws:
IllegalArgumentException-newLifesCountout of range[0; 9]
-
nl$getLifesPlayTime
Get play time with specifiedlifesCountNote: 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-lifesCountout of range [0; 9]
-
nl$getStickUsedTicks
int nl$getStickUsedTicks()Get amethyst stick use effect ticksNote: This method is unstable and use of this method is not recommended. Use
ServerPlayer.stickUsedTicksinject instead.- Returns:
- Amethyst stick use effect ticks
-
nl$setStickUsedTicks
void nl$setStickUsedTicks(int newTicks) Set amethyst stick use effect ticksNote: This method is unstable and use of this method is not recommended. Use
ServerPlayer.stickUsedTicksinject instead.- Parameters:
newTicks- New amethyst stick use effect ticks
-