PocketMine-MP 5.35.1 git-e32e836dad793a3a3c8ddd8927c00e112b1e576a
Loading...
Searching...
No Matches
pocketmine\entity\NeverSavedWithChunkEntity Interface Reference
+ Inheritance diagram for pocketmine\entity\NeverSavedWithChunkEntity:
+ Collaboration diagram for pocketmine\entity\NeverSavedWithChunkEntity:

Detailed Description

Decorator for entities that will never be saved with a chunk. Entities implementing this interface are not required to register a save ID.

This differs from Entity::canSaveWithChunk() because it can't be changed after the entity is created. We can't use canSaveWithChunk() to decide whether an entity needs a save ID, but we can use an interface like this. An attribute would also work, but instanceof NonSaveable is easier.

Definition at line 34 of file NeverSavedWithChunkEntity.php.


The documentation for this interface was generated from the following file: