public interface PersistingData extends DataManipulator<PersistingData,ImmutablePersistingData>
DataManipulator
that marks the "persisting" state for an
Entity
. A persisting entity will not naturally despawn, even if it
would otherwise be able to.
In Vanilla, certain entities despawn when no player is close to them, as
long as their "persisting" state is not true
.
Modifier and Type | Method and Description |
---|---|
Value<Boolean> |
persists()
|
asImmutable, copy, fill, fill, from, set, set, set, set, transform
getContentVersion, toContainer
Value<Boolean> persists()
Keys.PERSISTS