Struct SceneBlockEntity
#[non_exhaustive]pub struct SceneBlockEntity {
pub id: Identifier,
pub fields: ModBlockEntityFields,
}Expand description
A mod block entity’s type and public fields supplied to a screen’s drawing Part. This is not a live entity: internal cache and revision identities never cross the API.
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.id: IdentifierThe immutable type id of the temporary drawing entity.
fields: ModBlockEntityFieldsSaved fields, item slots and menu data, in their existing public form.
Implementations§
§impl SceneBlockEntity
impl SceneBlockEntity
pub fn new(id: Identifier, fields: ModBlockEntityFields) -> SceneBlockEntity
pub fn new(id: Identifier, fields: ModBlockEntityFields) -> SceneBlockEntity
Describe an entity to draw without retaining a world entity or its cache identity.
Trait Implementations§
§impl Clone for SceneBlockEntity
impl Clone for SceneBlockEntity
§fn clone(&self) -> SceneBlockEntity
fn clone(&self) -> SceneBlockEntity
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 more§impl Debug for SceneBlockEntity
impl Debug for SceneBlockEntity
§impl PartialEq for SceneBlockEntity
impl PartialEq for SceneBlockEntity
impl StructuralPartialEq for SceneBlockEntity
Auto Trait Implementations§
impl Freeze for SceneBlockEntity
impl RefUnwindSafe for SceneBlockEntity
impl Send for SceneBlockEntity
impl Sync for SceneBlockEntity
impl Unpin for SceneBlockEntity
impl UnsafeUnpin for SceneBlockEntity
impl UnwindSafe for SceneBlockEntity
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