pub trait DataComponentPredicateCodec:
DowncastType
+ Clone
+ Debug
+ PartialEq
+ HashComponent
+ Send
+ Sync
+ 'static {
// Required methods
fn from_nbt_value(tag: &NbtTag) -> Option<Self>;
fn to_nbt_value(&self) -> NbtTag;
}Expand description
Typed payload behavior for a registered partial component predicate.
Required Methods§
fn from_nbt_value(tag: &NbtTag) -> Option<Self>
fn to_nbt_value(&self) -> NbtTag
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".