pub struct BlockTransformData {
pub block_state_provider: BlockStateProviderKind,
pub sound: SoundEventHolder,
pub particle: TransformParticle,
pub disallowed_faces: Vec<Direction>,
pub loot: Option<Identifier>,
pub drop_strategy: DropStrategy,
pub update_from_neighbors: bool,
pub transform_type: TransformType,
pub consume_on_use: bool,
pub item_damage_per_use: i32,
}Fields§
§block_state_provider: BlockStateProviderKind§sound: SoundEventHolder§particle: TransformParticle§disallowed_faces: Vec<Direction>§loot: Option<Identifier>§drop_strategy: DropStrategy§update_from_neighbors: bool§transform_type: TransformType§consume_on_use: bool§item_damage_per_use: i32Trait Implementations§
Source§impl Clone for BlockTransformData
impl Clone for BlockTransformData
Auto Trait Implementations§
impl !RefUnwindSafe for BlockTransformData
impl !UnwindSafe for BlockTransformData
impl Freeze for BlockTransformData
impl Send for BlockTransformData
impl Sync for BlockTransformData
impl Unpin for BlockTransformData
impl UnsafeUnpin for BlockTransformData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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<>>