Enum azalea_registry::Fluid
source · #[repr(u32)]pub enum Fluid {
Empty = 0,
FlowingWater = 1,
Water = 2,
FlowingLava = 3,
Lava = 4,
}
Variants§
Implementations§
source§impl Fluid
impl Fluid
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32 ) -> Result<Self, BufReadError>
Trait Implementations§
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 McBufReadable for Fluid
impl McBufReadable for Fluid
source§impl McBufWritable for Fluid
impl McBufWritable for Fluid
source§impl PartialEq for Fluid
impl PartialEq 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>
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