#[repr(u32)]pub enum ChunkStatus {
Empty = 0,
StructureStarts = 1,
StructureReferences = 2,
Biomes = 3,
Noise = 4,
Surface = 5,
Carvers = 6,
Features = 7,
InitializeLight = 8,
Light = 9,
Spawn = 10,
Full = 11,
}
Variants§
Empty = 0
StructureStarts = 1
StructureReferences = 2
Biomes = 3
Noise = 4
Surface = 5
Carvers = 6
Features = 7
InitializeLight = 8
Light = 9
Spawn = 10
Full = 11
Implementations§
Source§impl ChunkStatus
impl ChunkStatus
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Source§impl ChunkStatus
impl ChunkStatus
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 ChunkStatus
impl Clone for ChunkStatus
Source§fn clone(&self) -> ChunkStatus
fn clone(&self) -> ChunkStatus
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 ChunkStatus
impl Debug for ChunkStatus
Source§impl<'de> Deserialize<'de> for ChunkStatus
impl<'de> Deserialize<'de> for ChunkStatus
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 ChunkStatus
impl Display for ChunkStatus
Source§impl FromNbtTag for ChunkStatus
impl FromNbtTag for ChunkStatus
fn from_nbt_tag(tag: NbtTag<'_, '_>) -> Option<Self>
fn from_optional_nbt_tag( tag: Option<NbtTag<'_, '_>>, ) -> Result<Option<Self>, DeserializeError>
Source§impl FromStr for ChunkStatus
impl FromStr for ChunkStatus
Source§impl Hash for ChunkStatus
impl Hash for ChunkStatus
Source§impl McBufReadable for ChunkStatus
impl McBufReadable for ChunkStatus
Source§impl McBufWritable for ChunkStatus
impl McBufWritable for ChunkStatus
Source§impl PartialEq for ChunkStatus
impl PartialEq for ChunkStatus
Source§impl Registry for ChunkStatus
impl Registry for ChunkStatus
Source§impl Serialize for ChunkStatus
impl Serialize for ChunkStatus
Source§impl ToNbtTag for ChunkStatus
impl ToNbtTag for ChunkStatus
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Source§impl TryFrom<u32> for ChunkStatus
impl TryFrom<u32> for ChunkStatus
impl Copy for ChunkStatus
impl Eq for ChunkStatus
impl StructuralPartialEq for ChunkStatus
Auto Trait Implementations§
impl Freeze for ChunkStatus
impl RefUnwindSafe for ChunkStatus
impl Send for ChunkStatus
impl Sync for ChunkStatus
impl Unpin for ChunkStatus
impl UnwindSafe for ChunkStatus
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
)