#[repr(u32)]pub enum BannerPattern {
Show 41 variants
Base = 0,
SquareBottomLeft = 1,
SquareBottomRight = 2,
SquareTopLeft = 3,
SquareTopRight = 4,
StripeBottom = 5,
StripeTop = 6,
StripeLeft = 7,
StripeRight = 8,
StripeCenter = 9,
StripeMiddle = 10,
StripeDownright = 11,
StripeDownleft = 12,
SmallStripes = 13,
Cross = 14,
StraightCross = 15,
TriangleBottom = 16,
TriangleTop = 17,
TrianglesBottom = 18,
TrianglesTop = 19,
DiagonalLeft = 20,
DiagonalUpRight = 21,
DiagonalUpLeft = 22,
DiagonalRight = 23,
Circle = 24,
Rhombus = 25,
HalfVertical = 26,
HalfHorizontal = 27,
HalfVerticalRight = 28,
HalfHorizontalBottom = 29,
Border = 30,
CurlyBorder = 31,
Gradient = 32,
GradientUp = 33,
Bricks = 34,
Globe = 35,
Creeper = 36,
Skull = 37,
Flower = 38,
Mojang = 39,
Piglin = 40,
}
Variants§
Base = 0
SquareBottomLeft = 1
SquareBottomRight = 2
SquareTopLeft = 3
SquareTopRight = 4
StripeBottom = 5
StripeTop = 6
StripeLeft = 7
StripeRight = 8
StripeCenter = 9
StripeMiddle = 10
StripeDownright = 11
StripeDownleft = 12
SmallStripes = 13
Cross = 14
StraightCross = 15
TriangleBottom = 16
TriangleTop = 17
TrianglesBottom = 18
TrianglesTop = 19
DiagonalLeft = 20
DiagonalUpRight = 21
DiagonalUpLeft = 22
DiagonalRight = 23
Circle = 24
Rhombus = 25
HalfVertical = 26
HalfHorizontal = 27
HalfVerticalRight = 28
HalfHorizontalBottom = 29
Border = 30
CurlyBorder = 31
Gradient = 32
GradientUp = 33
Bricks = 34
Globe = 35
Creeper = 36
Skull = 37
Flower = 38
Mojang = 39
Piglin = 40
Implementations§
Source§impl BannerPattern
impl BannerPattern
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl BannerPattern
impl BannerPattern
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 BannerPattern
impl Clone for BannerPattern
Source§fn clone(&self) -> BannerPattern
fn clone(&self) -> BannerPattern
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 BannerPattern
impl Debug for BannerPattern
Source§impl<'de> Deserialize<'de> for BannerPattern
impl<'de> Deserialize<'de> for BannerPattern
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 BannerPattern
impl Display for BannerPattern
Source§impl FromNbtTag for BannerPattern
impl FromNbtTag for BannerPattern
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for BannerPattern
impl FromStr for BannerPattern
Source§impl Hash for BannerPattern
impl Hash for BannerPattern
Source§impl McBufReadable for BannerPattern
impl McBufReadable for BannerPattern
Source§impl McBufWritable for BannerPattern
impl McBufWritable for BannerPattern
Source§impl PartialEq for BannerPattern
impl PartialEq for BannerPattern
Source§impl Registry for BannerPattern
impl Registry for BannerPattern
Source§impl Serialize for BannerPattern
impl Serialize for BannerPattern
Source§impl ToNbtTag for BannerPattern
impl ToNbtTag for BannerPattern
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for BannerPattern
impl TryFrom<u32> for BannerPattern
impl Copy for BannerPattern
impl Eq for BannerPattern
impl StructuralPartialEq for BannerPattern
Auto Trait Implementations§
impl Freeze for BannerPattern
impl RefUnwindSafe for BannerPattern
impl Send for BannerPattern
impl Sync for BannerPattern
impl Unpin for BannerPattern
impl UnwindSafe for BannerPattern
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
)