pub enum WorldChangeRequest {
Computed(TeleportTransition),
WorldSpawn {
target_world: Arc<World>,
pending_token: PendingWorldChangeToken,
},
Portal {
portal: PortalKind,
source_world: Arc<World>,
portal_pos: BlockPos,
pending_token: PendingWorldChangeToken,
},
}Expand description
A queued request to move an entity between loaded worlds.
Vanilla calls these world changes “dimension changes”. Steel keeps the runtime API named after loaded worlds to avoid confusing worlds with vanilla dimension types.
Variants§
Computed(TeleportTransition)
Pre-computed transition (players after chunk pre-warming).
WorldSpawn
Token-owned player selection of a loaded world’s spawn.
Fields
§
pending_token: PendingWorldChangeTokenRuntime token proving this request still owns the player’s relocation.
Portal
Portal position — server computes portal-specific destination after chunk pre-warming.
Fields
§
portal: PortalKindThe portal behavior that produced this request.
§
pending_token: PendingWorldChangeTokenRuntime token proving this request still owns the entity’s pending transition.
Auto Trait Implementations§
impl !RefUnwindSafe for WorldChangeRequest
impl !UnwindSafe for WorldChangeRequest
impl Freeze for WorldChangeRequest
impl Send for WorldChangeRequest
impl Sync for WorldChangeRequest
impl Unpin for WorldChangeRequest
impl UnsafeUnpin for WorldChangeRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>