Trait PoiTypeExtensions
pub trait PoiTypeExtensions {
// Required methods
fn metadata(&self) -> &dyn BlockMetadata;
fn extend(&mut self, poi_type: Identifier, states: StatePredicate);
}Expand description
Registrar of the block states a mod adds to vanilla POI types (extend_poi_types).
Required Methods§
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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".