public interface ImmutablePersistingData extends ImmutableDataManipulator<ImmutablePersistingData,PersistingData>
ImmutableDataManipulator
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 |
---|---|
ImmutableValue<Boolean> |
persists()
Gets the
ImmutableValue for the "persist" state of an
Entity . |
asMutable, copy, with, with
getContentVersion, toContainer
ImmutableValue<Boolean> persists()
ImmutableValue
for the "persist" state of an
Entity
.