Struct DimensionKey
pub struct DimensionKey(/* private fields */);Expand description
A dimension (minecraft:the_nether), as the game’s table numbers it: a LevelRef’s identity.
A key stays the same dimension until the game exits; key.id(host) gives the name.
Implementations§
§impl DimensionKey
impl DimensionKey
§impl DimensionKey
impl DimensionKey
pub const OVERWORLD: DimensionKey
pub const OVERWORLD: DimensionKey
minecraft:overworld.
pub const NETHER: DimensionKey
pub const NETHER: DimensionKey
minecraft:the_nether.
pub const END: DimensionKey
pub const END: DimensionKey
minecraft:the_end.
Trait Implementations§
§impl Clone for DimensionKey
impl Clone for DimensionKey
§fn clone(&self) -> DimensionKey
fn clone(&self) -> DimensionKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DimensionKey
§impl Debug for DimensionKey
impl Debug for DimensionKey
impl Eq for DimensionKey
§impl Hash for DimensionKey
impl Hash for DimensionKey
§impl PartialEq for DimensionKey
impl PartialEq for DimensionKey
impl StructuralPartialEq for DimensionKey
Auto Trait Implementations§
impl Freeze for DimensionKey
impl RefUnwindSafe for DimensionKey
impl Send for DimensionKey
impl Sync for DimensionKey
impl Unpin for DimensionKey
impl UnsafeUnpin for DimensionKey
impl UnwindSafe for DimensionKey
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