#[repr(u32)]pub enum JukeboxSong {
Show 19 variants
Thirteen = 0,
Cat = 1,
Blocks = 2,
Chirp = 3,
Far = 4,
Mall = 5,
Mellohi = 6,
Stal = 7,
Strad = 8,
Ward = 9,
Eleven = 10,
Wait = 11,
Pigstep = 12,
Otherside = 13,
Five = 14,
Relic = 15,
Precipice = 16,
Creator = 17,
CreatorMusicBox = 18,
}
Variants§
Thirteen = 0
Cat = 1
Blocks = 2
Chirp = 3
Far = 4
Mall = 5
Mellohi = 6
Stal = 7
Strad = 8
Ward = 9
Eleven = 10
Wait = 11
Pigstep = 12
Otherside = 13
Five = 14
Relic = 15
Precipice = 16
Creator = 17
CreatorMusicBox = 18
Implementations§
Source§impl JukeboxSong
impl JukeboxSong
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl JukeboxSong
impl JukeboxSong
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 AzaleaRead for JukeboxSong
impl AzaleaRead for JukeboxSong
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for JukeboxSong
impl AzaleaWrite for JukeboxSong
Source§impl Clone for JukeboxSong
impl Clone for JukeboxSong
Source§fn clone(&self) -> JukeboxSong
fn clone(&self) -> JukeboxSong
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 JukeboxSong
impl Debug for JukeboxSong
Source§impl<'de> Deserialize<'de> for JukeboxSong
impl<'de> Deserialize<'de> for JukeboxSong
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 JukeboxSong
impl Display for JukeboxSong
Source§impl FromNbtTag for JukeboxSong
impl FromNbtTag for JukeboxSong
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for JukeboxSong
impl FromStr for JukeboxSong
Source§impl Hash for JukeboxSong
impl Hash for JukeboxSong
Source§impl PartialEq for JukeboxSong
impl PartialEq for JukeboxSong
Source§impl Registry for JukeboxSong
impl Registry for JukeboxSong
Source§impl Serialize for JukeboxSong
impl Serialize for JukeboxSong
Source§impl ToNbtTag for JukeboxSong
impl ToNbtTag for JukeboxSong
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for JukeboxSong
impl TryFrom<u32> for JukeboxSong
impl Copy for JukeboxSong
impl Eq for JukeboxSong
impl StructuralPartialEq for JukeboxSong
Auto Trait Implementations§
impl Freeze for JukeboxSong
impl RefUnwindSafe for JukeboxSong
impl Send for JukeboxSong
impl Sync for JukeboxSong
impl Unpin for JukeboxSong
impl UnwindSafe for JukeboxSong
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