#[non_exhaustive]pub struct Border {
pub portal_boundary: i32,
pub warning_time: i32,
pub warning_blocks: i32,
/* private fields */
}Expand description
World border state: centre, diameter (possibly moving) and warning settings.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.portal_boundary: i32Portal teleport boundary (portalBoundary).
warning_time: i32Warning time in seconds.
warning_blocks: i32Warning distance in blocks.
Implementations§
Trait Implementations§
impl Copy for Border
impl StructuralPartialEq for Border
Auto Trait Implementations§
impl Forget for Border
impl Freeze for Border
impl Move for Border
impl RefUnwindSafe for Border
impl Send for Border
impl Sync for Border
impl Unpin for Border
impl UnsafeUnpin for Border
impl UnwindSafe for Border
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