pub struct BlockTransformer {
pub key: Identifier,
pub transforms: Vec<BlockTransformData>,
pub nbt: fn() -> NbtList,
}Expand description
Item block transforms, e.g. shovel flattening dirt into a path.
PartialEq/Eq come from crate::impl_registry_entry! (identity by key).
Fields§
§key: Identifier§transforms: Vec<BlockTransformData>§nbt: fn() -> NbtListTrait Implementations§
Source§impl Clone for BlockTransformer
impl Clone for BlockTransformer
Source§impl Debug for BlockTransformer
impl Debug for BlockTransformer
impl Eq for BlockTransformer
Source§impl PartialEq for BlockTransformer
impl PartialEq for BlockTransformer
Source§impl RegistryEntry for BlockTransformer
impl RegistryEntry for BlockTransformer
Source§impl ToNbtTag for &BlockTransformer
Registry-sync NBT for the minecraft:block_transformer dynamic registry.
Only encoding is needed: entries are build-time data, never decoded from
player-supplied NBT or network input.
impl ToNbtTag for &BlockTransformer
Registry-sync NBT for the minecraft:block_transformer dynamic registry.
Only encoding is needed: entries are build-time data, never decoded from
player-supplied NBT or network input.
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Auto Trait Implementations§
impl !RefUnwindSafe for BlockTransformer
impl !UnwindSafe for BlockTransformer
impl Freeze for BlockTransformer
impl Send for BlockTransformer
impl Sync for BlockTransformer
impl Unpin for BlockTransformer
impl UnsafeUnpin for BlockTransformer
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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<>>