Struct BlockEntityTypeBuilder
pub struct BlockEntityTypeBuilder<'a> { /* private fields */ }Expand description
Builds one native block entity type during mod registration.
Implementations§
§impl BlockEntityTypeBuilder<'_>
impl BlockEntityTypeBuilder<'_>
pub fn blocks(self, blocks: &[&str]) -> BlockEntityTypeBuilder<'_>
pub fn blocks(self, blocks: &[&str]) -> BlockEntityTypeBuilder<'_>
The blocks which may contain this type.
pub fn build(self) -> BlockEntityTypeKey
pub fn build(self) -> BlockEntityTypeKey
Register the type and return its typed key.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for BlockEntityTypeBuilder<'a>
impl<'a> !Send for BlockEntityTypeBuilder<'a>
impl<'a> !Sync for BlockEntityTypeBuilder<'a>
impl<'a> !UnwindSafe for BlockEntityTypeBuilder<'a>
impl<'a> Freeze for BlockEntityTypeBuilder<'a>
impl<'a> Unpin for BlockEntityTypeBuilder<'a>
impl<'a> UnsafeUnpin for BlockEntityTypeBuilder<'a>
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