pub struct BlockEntity {
pub db_component: DBEntityStruct,
pub pos_component: PositionEntityStruct,
pub scale_component: ScalingEntityStruct,
pub rot_component: RotationEntityStruct,
pub skew_component: SkewComponent,
pub grid_component: GridRotationStruct,
pub grid_conn_component: SerializedGridConnectionsEntityStruct,
pub placement_component: SerializedBlockPlacementInfoStruct,
pub material_component: SerializedCubeMaterialStruct,
pub uscale_component: SerializedUniformBlockScaleEntityStruct,
pub colour_component: SerializedColourParameterEntityStruct,
pub group_component: BlockGroupEntityComponent,
}Expand description
Block entity descriptor.
Fields§
§db_component: DBEntityStructDatabase component
pos_component: PositionEntityStructPosition component
scale_component: ScalingEntityStructScale component
rot_component: RotationEntityStructRotation component
skew_component: SkewComponentSkew matrix component
grid_component: GridRotationStructGrid component
grid_conn_component: SerializedGridConnectionsEntityStructNo-op serializer (this has no data!)
placement_component: SerializedBlockPlacementInfoStructNo-op serializer (this has no data!)
material_component: SerializedCubeMaterialStructCube material component
uscale_component: SerializedUniformBlockScaleEntityStructUniform scale component
colour_component: SerializedColourParameterEntityStructColour component
group_component: BlockGroupEntityComponentGroup component
Trait Implementations§
Source§impl AsRef<BlockEntity> for BlockEntity
impl AsRef<BlockEntity> for BlockEntity
Source§impl AsRef<BlockEntity> for DampedAngularSpringEntity
impl AsRef<BlockEntity> for DampedAngularSpringEntity
Source§fn as_ref(&self) -> &BlockEntity
fn as_ref(&self) -> &BlockEntity
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<BlockEntity> for DampedSpringEntity
impl AsRef<BlockEntity> for DampedSpringEntity
Source§fn as_ref(&self) -> &BlockEntity
fn as_ref(&self) -> &BlockEntity
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<BlockEntity> for EngineBlockEntity
impl AsRef<BlockEntity> for EngineBlockEntity
Source§fn as_ref(&self) -> &BlockEntity
fn as_ref(&self) -> &BlockEntity
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<BlockEntity> for JointBlockEntity
impl AsRef<BlockEntity> for JointBlockEntity
Source§fn as_ref(&self) -> &BlockEntity
fn as_ref(&self) -> &BlockEntity
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<BlockEntity> for PassengerSeatEntity
impl AsRef<BlockEntity> for PassengerSeatEntity
Source§fn as_ref(&self) -> &BlockEntity
fn as_ref(&self) -> &BlockEntity
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<BlockEntity> for PilotSeatEntity
impl AsRef<BlockEntity> for PilotSeatEntity
Source§fn as_ref(&self) -> &BlockEntity
fn as_ref(&self) -> &BlockEntity
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<BlockEntity> for TyreEntity
impl AsRef<BlockEntity> for TyreEntity
Source§fn as_ref(&self) -> &BlockEntity
fn as_ref(&self) -> &BlockEntity
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<BlockEntity> for WheelRigEntity
impl AsRef<BlockEntity> for WheelRigEntity
Source§fn as_ref(&self) -> &BlockEntity
fn as_ref(&self) -> &BlockEntity
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<BlockEntity> for WheelRigSteerableEntity
impl AsRef<BlockEntity> for WheelRigSteerableEntity
Source§fn as_ref(&self) -> &BlockEntity
fn as_ref(&self) -> &BlockEntity
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for BlockEntity
impl Clone for BlockEntity
Source§fn clone(&self) -> BlockEntity
fn clone(&self) -> BlockEntity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Parsable for BlockEntity
impl Parsable for BlockEntity
Source§impl SerializedEntityDescriptor for BlockEntity
impl SerializedEntityDescriptor for BlockEntity
Source§fn serialized_components() -> u8
fn serialized_components() -> u8
Count of entity components that this descriptor contains
Source§fn components<'a>(&'a self) -> Vec<&'a dyn SerializedEntityComponent>
fn components<'a>(&'a self) -> Vec<&'a dyn SerializedEntityComponent>
Components that this entity is comprised of
Source§fn components_mut<'a>(
&'a mut self,
) -> Vec<&'a mut dyn SerializedEntityComponent>
fn components_mut<'a>( &'a mut self, ) -> Vec<&'a mut dyn SerializedEntityComponent>
Components that this entity is comprised of, for modification
impl Block for BlockEntity
impl Copy for BlockEntity
Auto Trait Implementations§
impl Freeze for BlockEntity
impl RefUnwindSafe for BlockEntity
impl Send for BlockEntity
impl Sync for BlockEntity
impl Unpin for BlockEntity
impl UnwindSafe for BlockEntity
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