Skip to main content

Property

Trait Property 

Source
pub trait Property: FromStr {
    type Value;

    // Required methods
    fn try_from_block_state(state: BlockState) -> Option<Self::Value>;
    fn to_static_str(&self) -> &'static str;
}

Required Associated Types§

Required Methods§

Source

fn try_from_block_state(state: BlockState) -> Option<Self::Value>

Source

fn to_static_str(&self) -> &'static str

Convert the value of the property to a string, like “x” or “true”.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Property for AcaciaLeavesDistance

Source§

impl Property for Attachment

Source§

impl Property for Axis

Source§

impl Property for AxisXZ

Source§

impl Property for AzaleaLeavesDistance

Source§

impl Property for BambooAge

Source§

impl Property for BeetrootsAge

Source§

impl Property for BirchLeavesDistance

Source§

impl Property for Bites

Source§

impl Property for CactusAge

Source§

impl Property for Candles

Source§

impl Property for CarrotsAge

Source§

impl Property for CaveVinesAge

Source§

impl Property for Charges

Source§

impl Property for CherryLeavesDistance

Source§

impl Property for ChestType

Source§

impl Property for ChorusFlowerAge

Source§

impl Property for CocoaAge

Source§

impl Property for ComparatorType

Source§

impl Property for ComposterLevel

Source§

impl Property for CopperGolemPose

Source§

impl Property for CreakingHeartState

Source§

impl Property for DarkOakLeavesDistance

Source§

impl Property for Delay

Source§

impl Property for Dusted

Source§

impl Property for Eggs

Source§

impl Property for Face

Source§

impl Property for Facing

Source§

impl Property for FacingCardinal

Source§

impl Property for FacingCubic

Source§

impl Property for FireAge

Source§

impl Property for FlowerAmount

Source§

impl Property for FloweringAzaleaLeavesDistance

Source§

impl Property for FrostedIceAge

Source§

impl Property for Half

Source§

impl Property for Hatch

Source§

impl Property for Hinge

Source§

impl Property for HoneyLevel

Source§

impl Property for Hydration

Source§

impl Property for JungleLeavesDistance

Source§

impl Property for KelpAge

Source§

impl Property for LavaLevel

Source§

impl Property for Layers

Source§

impl Property for Leaves

Source§

impl Property for LightLevel

Source§

impl Property for MangroveLeavesDistance

Source§

impl Property for MangrovePropaguleAge

Source§

impl Property for MelonStemAge

Source§

impl Property for Moisture

Source§

impl Property for NetherWartAge

Source§

impl Property for Note

Source§

impl Property for OakLeavesDistance

Source§

impl Property for Orientation

Source§

impl Property for PaleOakLeavesDistance

Source§

impl Property for Part

Source§

impl Property for Pickles

Source§

impl Property for PistonType

Source§

impl Property for PitcherCropAge

Source§

impl Property for PotatoesAge

Source§

impl Property for PowderSnowCauldronLevel

Source§

impl Property for Power

Source§

impl Property for PumpkinStemAge

Source§

impl Property for RailShape

Source§

impl Property for Rotation

Source§

impl Property for ScaffoldingDistance

Source§

impl Property for SculkSensorPhase

Source§

impl Property for SegmentAmount

Source§

impl Property for Shape

Source§

impl Property for SideChain

Source§

impl Property for Sound

Source§

impl Property for SpruceLeavesDistance

Source§

impl Property for Stage

Source§

impl Property for StairShape

Source§

impl Property for StructureMode

Source§

impl Property for SugarCaneAge

Source§

impl Property for SweetBerryBushAge

Source§

impl Property for TestMode

Source§

impl Property for Thickness

Source§

impl Property for Tilt

Source§

impl Property for TopBottom

Source§

impl Property for TorchflowerCropAge

Source§

impl Property for TrialSpawnerState

Source§

impl Property for TwistingVinesAge

Source§

impl Property for Type

Source§

impl Property for VaultState

Source§

impl Property for VerticalDirection

Source§

impl Property for WallEast

Source§

impl Property for WallNorth

Source§

impl Property for WallSouth

Source§

impl Property for WallWest

Source§

impl Property for WaterCauldronLevel

Source§

impl Property for WaterLevel

Source§

impl Property for WeepingVinesAge

Source§

impl Property for WheatAge

Source§

impl Property for WireEast

Source§

impl Property for WireNorth

Source§

impl Property for WireSouth

Source§

impl Property for WireWest

Source§

impl Property for Attached

Source§

impl Property for Berries

Source§

impl Property for Bloom

Source§

impl Property for Bottom

Source§

impl Property for CanSummon

Source§

impl Property for Conditional

Source§

impl Property for Cracked

Source§

impl Property for Crafting

Source§

impl Property for Disarmed

Source§

impl Property for Down

Source§

impl Property for Drag

Source§

impl Property for East

Source§

impl Property for Enabled

Source§

impl Property for Extended

Source§

impl Property for Eye

Source§

impl Property for Hanging

Source§

impl Property for HasBook

Source§

impl Property for HasBottle0

Source§

impl Property for HasBottle1

Source§

impl Property for HasBottle2

Source§

impl Property for HasRecord

Source§

impl Property for InWall

Source§

impl Property for Inverted

Source§

impl Property for Lit

Source§

impl Property for Locked

Source§

impl Property for Natural

Source§

impl Property for North

Source§

impl Property for Occupied

Source§

impl Property for Ominous

Source§

impl Property for Open

Source§

impl Property for Persistent

Source§

impl Property for Powered

Source§

impl Property for Short

Source§

impl Property for Shrieking

Source§

impl Property for SignalFire

Source§

impl Property for Slot0Occupied

Source§

impl Property for Slot1Occupied

Source§

impl Property for Slot2Occupied

Source§

impl Property for Slot3Occupied

Source§

impl Property for Slot4Occupied

Source§

impl Property for Slot5Occupied

Source§

impl Property for Snowy

Source§

impl Property for South

Source§

impl Property for Tip

Source§

impl Property for Triggered

Source§

impl Property for Unstable

Source§

impl Property for Up

Source§

impl Property for Waterlogged

Source§

impl Property for West