Enum valence_generated::block::PropValue
source · pub enum PropValue {
Show 127 variants
_0,
_1,
_10,
_11,
_12,
_13,
_14,
_15,
_16,
_17,
_18,
_19,
_2,
_20,
_21,
_22,
_23,
_24,
_25,
_3,
_4,
_5,
_6,
_7,
_8,
_9,
Active,
AscendingEast,
AscendingNorth,
AscendingSouth,
AscendingWest,
Banjo,
Base,
Basedrum,
Bass,
Bell,
Bit,
Bottom,
Ceiling,
Chime,
Compare,
Cooldown,
Corner,
CowBell,
Creeper,
CustomHead,
Data,
Didgeridoo,
Double,
DoubleWall,
Down,
DownEast,
DownNorth,
DownSouth,
DownWest,
Dragon,
East,
EastUp,
EastWest,
False,
Floor,
Flute,
Foot,
Frustum,
Full,
Guitar,
Harp,
Hat,
Head,
Inactive,
InnerLeft,
InnerRight,
IronXylophone,
Large,
Left,
Load,
Low,
Lower,
Middle,
None,
Normal,
North,
NorthEast,
NorthSouth,
NorthUp,
NorthWest,
OuterLeft,
OuterRight,
Partial,
Piglin,
Pling,
Right,
Save,
Side,
Single,
SingleWall,
Skeleton,
Small,
Snare,
South,
SouthEast,
SouthUp,
SouthWest,
Sticky,
Straight,
Subtract,
Tall,
Tip,
TipMerge,
Top,
True,
Unstable,
Up,
UpEast,
UpNorth,
UpSouth,
UpWest,
Upper,
Wall,
West,
WestUp,
WitherSkeleton,
X,
Xylophone,
Y,
Z,
Zombie,
}
Expand description
Contains all possible values that a block property might have.
For example, upper
, true
, and 2
are all property values.
Variants§
_0
_1
_10
_11
_12
_13
_14
_15
_16
_17
_18
_19
_2
_20
_21
_22
_23
_24
_25
_3
_4
_5
_6
_7
_8
_9
Active
AscendingEast
AscendingNorth
AscendingSouth
AscendingWest
Banjo
Base
Basedrum
Bass
Bell
Bit
Bottom
Ceiling
Chime
Compare
Cooldown
Corner
CowBell
Creeper
CustomHead
Data
Didgeridoo
Double
DoubleWall
Down
DownEast
DownNorth
DownSouth
DownWest
Dragon
East
EastUp
EastWest
False
Floor
Flute
Foot
Frustum
Full
Guitar
Harp
Hat
Head
Inactive
InnerLeft
InnerRight
IronXylophone
Large
Left
Load
Low
Lower
Middle
None
Normal
North
NorthEast
NorthSouth
NorthUp
NorthWest
OuterLeft
OuterRight
Partial
Piglin
Pling
Right
Save
Side
Single
SingleWall
Skeleton
Small
Snare
South
SouthEast
SouthUp
SouthWest
Sticky
Straight
Subtract
Tall
Tip
TipMerge
Top
True
Unstable
Up
UpEast
UpNorth
UpSouth
UpWest
Upper
Wall
West
WestUp
WitherSkeleton
X
Xylophone
Y
Z
Zombie
Implementations§
source§impl PropValue
impl PropValue
sourcepub fn from_str(name: &str) -> Option<Self>
pub fn from_str(name: &str) -> Option<Self>
Construct a property value from its snake_case name.
Returns None
if the given name is not valid.
sourcepub const fn from_u16(n: u16) -> Option<Self>
pub const fn from_u16(n: u16) -> Option<Self>
Converts a u16
into a numeric property value.
Returns None
if the given number does not have a
corresponding property value.
sourcepub const fn to_u16(self) -> Option<u16>
pub const fn to_u16(self) -> Option<u16>
Converts this property value into a u16
if it is numeric.
Returns None
otherwise.
Trait Implementations§
source§impl Ord for PropValue
impl Ord for PropValue
source§impl PartialOrd for PropValue
impl PartialOrd for PropValue
impl Copy for PropValue
impl Eq for PropValue
impl StructuralPartialEq for PropValue
Auto Trait Implementations§
impl Freeze for PropValue
impl RefUnwindSafe for PropValue
impl Send for PropValue
impl Sync for PropValue
impl Unpin for PropValue
impl UnwindSafe for PropValue
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
)