Struct PortalShape
#[non_exhaustive]pub struct PortalShape {
pub x_axis: bool,
pub bottom_left: [i32; 3],
pub width: i32,
pub height: i32,
}Expand description
The empty frame a fire is about to fill with a nether portal, for
portal_spawn (BlockEvent.PortalSpawnEvent.getPortalSize).
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.x_axis: boolThe portal runs along X (else along Z).
bottom_left: [i32; 3]Its bottom-left inside block.
width: i32The portal frame’s inner width in blocks.
height: i32The portal frame’s inner height in blocks.
Trait Implementations§
§impl Clone for PortalShape
impl Clone for PortalShape
§fn clone(&self) -> PortalShape
fn clone(&self) -> PortalShape
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 PortalShape
§impl Debug for PortalShape
impl Debug for PortalShape
impl Eq for PortalShape
§impl From<PortalShape> for PortalShape
impl From<PortalShape> for PortalShape
§fn from(v: PortalShape) -> PortalShape
fn from(v: PortalShape) -> PortalShape
Converts to this type from the input type.
§impl PartialEq for PortalShape
impl PartialEq for PortalShape
impl StructuralPartialEq for PortalShape
Auto Trait Implementations§
impl Freeze for PortalShape
impl RefUnwindSafe for PortalShape
impl Send for PortalShape
impl Sync for PortalShape
impl Unpin for PortalShape
impl UnsafeUnpin for PortalShape
impl UnwindSafe for PortalShape
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