mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 14:13:56 +01:00
Freeze Tick Lock API
This commit is contained in:
parent
5468da1b03
commit
f5e3062c41
1 changed files with 20 additions and 0 deletions
|
@ -327,6 +327,26 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
||||||
boolean hasNoPhysics();
|
boolean hasNoPhysics();
|
||||||
// Paper end - missing entity api
|
// Paper end - missing entity api
|
||||||
|
|
||||||
|
// Paper start - Freeze Tick Lock API
|
||||||
|
/**
|
||||||
|
* Gets if the entity currently has its freeze ticks locked
|
||||||
|
* to a set amount.
|
||||||
|
* <p>
|
||||||
|
* This is only set by plugins
|
||||||
|
*
|
||||||
|
* @return locked or not
|
||||||
|
*/
|
||||||
|
boolean isFreezeTickingLocked();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets if the entity currently has its freeze ticks locked,
|
||||||
|
* preventing default vanilla freeze tick modification.
|
||||||
|
*
|
||||||
|
* @param locked prevent vanilla modification or not
|
||||||
|
*/
|
||||||
|
void lockFreezeTicks(boolean locked);
|
||||||
|
// Paper end - Freeze Tick Lock API
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mark the entity's removal.
|
* Mark the entity's removal.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue