Struct GlobalPos
pub struct GlobalPos { /* private fields */ }Expand description
A block in a dimension, vanilla’s GlobalPos: the dimension’s key
(minecraft:the_nether) and the block. The dimension is data, so it need
not be open; host.level(&pos.dimension().to_string()) gives its level when it is.
Implementations§
§impl GlobalPos
impl GlobalPos
pub fn new(dimension: Identifier, pos: BlockPos) -> GlobalPos
pub fn new(dimension: Identifier, pos: BlockPos) -> GlobalPos
A block in the dimension with key dimension.
pub fn dimension(&self) -> &Identifier
pub fn dimension(&self) -> &Identifier
The dimension’s key (minecraft:overworld).
Trait Implementations§
impl Eq for GlobalPos
impl StructuralPartialEq for GlobalPos
Auto Trait Implementations§
impl Freeze for GlobalPos
impl RefUnwindSafe for GlobalPos
impl Send for GlobalPos
impl Sync for GlobalPos
impl Unpin for GlobalPos
impl UnsafeUnpin for GlobalPos
impl UnwindSafe for GlobalPos
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