pub struct AbstractMinecartBase {
state: SyncMutex<AbstractMinecartState>,
}Expand description
The two vanilla AbstractMinecart fields with no SynchedEntityData
backing (onRails, flipped).
Fields§
§state: SyncMutex<AbstractMinecartState>Implementations§
Source§impl AbstractMinecartBase
impl AbstractMinecartBase
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new AbstractMinecartBase with default values.
Sourcepub fn set_on_rails(&self, value: bool)
pub fn set_on_rails(&self, value: bool)
Sets whether the minecart is on rails.
fn flipped(&self) -> bool
Sourcepub fn set_flipped(&self, flipped: bool)
pub fn set_flipped(&self, flipped: bool)
Sets whether the minecart’s movement-facing rotation is flipped.
Sourcepub fn toggle_flipped(&self)
pub fn toggle_flipped(&self)
Toggles whether the minecart’s movement-facing rotation is flipped.
Trait Implementations§
Source§impl Debug for AbstractMinecartBase
impl Debug for AbstractMinecartBase
Auto Trait Implementations§
impl !Freeze for AbstractMinecartBase
impl !RefUnwindSafe for AbstractMinecartBase
impl Send for AbstractMinecartBase
impl Sync for AbstractMinecartBase
impl Unpin for AbstractMinecartBase
impl UnsafeUnpin for AbstractMinecartBase
impl UnwindSafe for AbstractMinecartBase
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<>>