Freeze Tick Lock API

This commit is contained in:
Owen1212055
2021-12-26 20:27:43 -05:00
parent e764b2b7f4
commit 0a2552a791
3 changed files with 137 additions and 97 deletions

View File

@@ -324,6 +324,17 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
return this.getHandle().isFullyFrozen();
}
// Paper start - Freeze Tick Lock API
@Override
public boolean isFreezeTickingLocked() {
return this.entity.freezeLocked;
}
@Override
public void lockFreezeTicks(boolean locked) {
this.entity.freezeLocked = locked;
}
// Paper end - Freeze Tick Lock API
@Override
public void remove() {
this.entity.pluginRemoved = true;