pub enum LoadedId<'a> {
AsWritten,
Renamed {
to: &'a str,
valid_through: i32,
},
Unresolved,
}Expand description
Where a written block id ends up once the game has datafixed a file that
declares data_version — the question an allowlist, a palette screen or a
render surface has to ask before it judges a NAME.
Variants§
AsWritten
The pin holds this id as written. Also the answer for a non-minecraft:
namespace, which is a datapack’s own block and none of this registry’s
business.
Renamed
The pin does not have the id, and a derived rename reaches it from this
file’s DataVersion: the game loads to.
Unresolved
The pin does not have the id and no rename in the vendored table reaches
it from this DataVersion. Not a claim that the game loads nothing —
a claim that this repo cannot say what it loads, which is why every
caller treats it as the id as written and refuses rather than passes.
Trait Implementations§
impl<'a> Eq for LoadedId<'a>
impl<'a> StructuralPartialEq for LoadedId<'a>
Auto Trait Implementations§
impl<'a> Freeze for LoadedId<'a>
impl<'a> RefUnwindSafe for LoadedId<'a>
impl<'a> Send for LoadedId<'a>
impl<'a> Sync for LoadedId<'a>
impl<'a> Unpin for LoadedId<'a>
impl<'a> UnsafeUnpin for LoadedId<'a>
impl<'a> UnwindSafe for LoadedId<'a>
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