#[repr(u32)]pub enum ItemSubPredicateKind {
Show 14 variants
Damage = 0,
Enchantments = 1,
StoredEnchantments = 2,
PotionContents = 3,
CustomData = 4,
Container = 5,
BundleContents = 6,
FireworkExplosion = 7,
Fireworks = 8,
WritableBookContent = 9,
WrittenBookContent = 10,
AttributeModifiers = 11,
Trim = 12,
JukeboxPlayable = 13,
}
Variants§
Damage = 0
Enchantments = 1
StoredEnchantments = 2
PotionContents = 3
CustomData = 4
Container = 5
BundleContents = 6
FireworkExplosion = 7
Fireworks = 8
WritableBookContent = 9
WrittenBookContent = 10
AttributeModifiers = 11
Trim = 12
JukeboxPlayable = 13
Implementations§
Source§impl ItemSubPredicateKind
impl ItemSubPredicateKind
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl ItemSubPredicateKind
impl ItemSubPredicateKind
Sourcepub unsafe fn from_u32_unchecked(id: u32) -> Self
pub unsafe fn from_u32_unchecked(id: u32) -> Self
pub fn is_valid_id(id: u32) -> bool
Trait Implementations§
Source§impl Clone for ItemSubPredicateKind
impl Clone for ItemSubPredicateKind
Source§fn clone(&self) -> ItemSubPredicateKind
fn clone(&self) -> ItemSubPredicateKind
Returns a copy 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 Debug for ItemSubPredicateKind
impl Debug for ItemSubPredicateKind
Source§impl<'de> Deserialize<'de> for ItemSubPredicateKind
impl<'de> Deserialize<'de> for ItemSubPredicateKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ItemSubPredicateKind
impl Display for ItemSubPredicateKind
Source§impl FromNbtTag for ItemSubPredicateKind
impl FromNbtTag for ItemSubPredicateKind
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for ItemSubPredicateKind
impl FromStr for ItemSubPredicateKind
Source§impl Hash for ItemSubPredicateKind
impl Hash for ItemSubPredicateKind
Source§impl McBufReadable for ItemSubPredicateKind
impl McBufReadable for ItemSubPredicateKind
Source§impl McBufWritable for ItemSubPredicateKind
impl McBufWritable for ItemSubPredicateKind
Source§impl PartialEq for ItemSubPredicateKind
impl PartialEq for ItemSubPredicateKind
Source§impl Registry for ItemSubPredicateKind
impl Registry for ItemSubPredicateKind
Source§impl Serialize for ItemSubPredicateKind
impl Serialize for ItemSubPredicateKind
Source§impl ToNbtTag for ItemSubPredicateKind
impl ToNbtTag for ItemSubPredicateKind
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for ItemSubPredicateKind
impl TryFrom<u32> for ItemSubPredicateKind
impl Copy for ItemSubPredicateKind
impl Eq for ItemSubPredicateKind
impl StructuralPartialEq for ItemSubPredicateKind
Auto Trait Implementations§
impl Freeze for ItemSubPredicateKind
impl RefUnwindSafe for ItemSubPredicateKind
impl Send for ItemSubPredicateKind
impl Sync for ItemSubPredicateKind
impl Unpin for ItemSubPredicateKind
impl UnwindSafe for ItemSubPredicateKind
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)