Struct PoiTypeExtensionRegistry
pub struct PoiTypeExtensionRegistry<'a> { /* private fields */ }Expand description
Engine-owned storage behind the registrar.
Trait Implementations§
§impl PoiTypeExtensions for PoiTypeExtensionRegistry<'_>
impl PoiTypeExtensions for PoiTypeExtensionRegistry<'_>
§fn metadata(&self) -> &dyn BlockMetadata
fn metadata(&self) -> &dyn BlockMetadata
Block metadata for building the predicates, with every block resolved.
§fn extend(&mut self, poi_type: Identifier, states: StatePredicate)
fn extend(&mut self, poi_type: Identifier, states: StatePredicate)
Add the states
states selects to the POI type poi_type (minecraft:home).
A block predicate with no constraints means all of the block’s states.Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PoiTypeExtensionRegistry<'a>
impl<'a> !Send for PoiTypeExtensionRegistry<'a>
impl<'a> !Sync for PoiTypeExtensionRegistry<'a>
impl<'a> !UnwindSafe for PoiTypeExtensionRegistry<'a>
impl<'a> Freeze for PoiTypeExtensionRegistry<'a>
impl<'a> Unpin for PoiTypeExtensionRegistry<'a>
impl<'a> UnsafeUnpin for PoiTypeExtensionRegistry<'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