pub struct AbstractFurnaceBlockEntity {
base: Arc<BlockEntityBase>,
container: Arc<SyncMutex<FurnaceContainer>>,
container_ref: ContainerRef,
}Expand description
Shared implementation owned by one of the three concrete furnace entities.
Fields§
§base: Arc<BlockEntityBase>§container: Arc<SyncMutex<FurnaceContainer>>§container_ref: ContainerRefImplementations§
Source§impl AbstractFurnaceBlockEntity
impl AbstractFurnaceBlockEntity
fn new( block_entity_type: BlockEntityTypeRef, kind: FurnaceKind, level: Weak<World>, pos: BlockPos, state: BlockStateId, ) -> Self
pub fn container_ref(&self) -> ContainerRef
fn server_tick(&self, world: &Arc<World>)
fn load_additional(&self, nbt: &BorrowedNbtCompound<'_>)
fn save_additional(&self, nbt: &mut NbtCompound)
fn pre_remove_side_effects(&self, world: &Arc<World>, pos: BlockPos)
Auto Trait Implementations§
impl !RefUnwindSafe for AbstractFurnaceBlockEntity
impl !UnwindSafe for AbstractFurnaceBlockEntity
impl Freeze for AbstractFurnaceBlockEntity
impl Send for AbstractFurnaceBlockEntity
impl Sync for AbstractFurnaceBlockEntity
impl Unpin for AbstractFurnaceBlockEntity
impl UnsafeUnpin for AbstractFurnaceBlockEntity
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<>>