#[repr(u32)]pub enum Fluid {
Empty = 0,
FlowingWater = 1,
Water = 2,
FlowingLava = 3,
Lava = 4,
}Variants§
Implementations§
Source§impl Fluid
impl Fluid
pub fn azalea_read_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Trait Implementations§
Source§impl AzaleaRead for Fluid
impl AzaleaRead for Fluid
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
Source§impl AzaleaWrite for Fluid
impl AzaleaWrite for Fluid
Source§impl<'de> Deserialize<'de> for Fluid
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Fluid
Available on crate feature
serde only.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 FromNbtTag for Fluid
impl FromNbtTag for Fluid
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl Ord for Fluid
impl Ord for Fluid
Source§impl PartialOrd for Fluid
impl PartialOrd for Fluid
Source§impl ToNbtTag for Fluid
impl ToNbtTag for Fluid
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl<'a> TryFrom<&'a Identifier> for Fluid
impl<'a> TryFrom<&'a Identifier> for Fluid
impl Copy for Fluid
impl Eq for Fluid
impl StructuralPartialEq for Fluid
Auto Trait Implementations§
impl Freeze for Fluid
impl RefUnwindSafe for Fluid
impl Send for Fluid
impl Sync for Fluid
impl Unpin for Fluid
impl UnwindSafe for Fluid
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.