#[repr(u32)]pub enum PaintingVariant {
Show 30 variants
Kebab = 0,
Aztec = 1,
Alban = 2,
Aztec2 = 3,
Bomb = 4,
Plant = 5,
Wasteland = 6,
Pool = 7,
Courbet = 8,
Sea = 9,
Sunset = 10,
Creebet = 11,
Wanderer = 12,
Graham = 13,
Match = 14,
Bust = 15,
Stage = 16,
Void = 17,
SkullAndRoses = 18,
Wither = 19,
Fighters = 20,
Pointer = 21,
Pigscene = 22,
BurningSkull = 23,
Skeleton = 24,
Earth = 25,
Wind = 26,
Water = 27,
Fire = 28,
DonkeyKong = 29,
}
Variants§
Kebab = 0
Aztec = 1
Alban = 2
Aztec2 = 3
Bomb = 4
Plant = 5
Wasteland = 6
Pool = 7
Courbet = 8
Sea = 9
Sunset = 10
Creebet = 11
Wanderer = 12
Graham = 13
Match = 14
Bust = 15
Stage = 16
Void = 17
SkullAndRoses = 18
Wither = 19
Fighters = 20
Pointer = 21
Pigscene = 22
BurningSkull = 23
Skeleton = 24
Earth = 25
Wind = 26
Water = 27
Fire = 28
DonkeyKong = 29
Implementations§
Source§impl PaintingVariant
impl PaintingVariant
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl PaintingVariant
impl PaintingVariant
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 PaintingVariant
impl Clone for PaintingVariant
Source§fn clone(&self) -> PaintingVariant
fn clone(&self) -> PaintingVariant
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 PaintingVariant
impl Debug for PaintingVariant
Source§impl<'de> Deserialize<'de> for PaintingVariant
impl<'de> Deserialize<'de> for PaintingVariant
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 PaintingVariant
impl Display for PaintingVariant
Source§impl FromNbtTag for PaintingVariant
impl FromNbtTag for PaintingVariant
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for PaintingVariant
impl FromStr for PaintingVariant
Source§impl Hash for PaintingVariant
impl Hash for PaintingVariant
Source§impl McBufReadable for PaintingVariant
impl McBufReadable for PaintingVariant
Source§impl McBufWritable for PaintingVariant
impl McBufWritable for PaintingVariant
Source§impl PartialEq for PaintingVariant
impl PartialEq for PaintingVariant
Source§impl Registry for PaintingVariant
impl Registry for PaintingVariant
Source§impl Serialize for PaintingVariant
impl Serialize for PaintingVariant
Source§impl ToNbtTag for PaintingVariant
impl ToNbtTag for PaintingVariant
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for PaintingVariant
impl TryFrom<u32> for PaintingVariant
impl Copy for PaintingVariant
impl Eq for PaintingVariant
impl StructuralPartialEq for PaintingVariant
Auto Trait Implementations§
impl Freeze for PaintingVariant
impl RefUnwindSafe for PaintingVariant
impl Send for PaintingVariant
impl Sync for PaintingVariant
impl Unpin for PaintingVariant
impl UnwindSafe for PaintingVariant
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
)