pub struct PointOfInterestType {
pub key: Identifier,
pub block_state_ids: &'static [BlockStateId],
pub ticket_count: u32,
pub search_distance: u32,
}Expand description
A type of point of interest (e.g., bed, workstation, bell, nether portal).
Each type maps to specific block states and defines how many entities can claim it via tickets (e.g., a bed has 1 ticket for 1 villager).
Fields§
§key: Identifier§block_state_ids: &'static [BlockStateId]§ticket_count: u32§search_distance: u32Trait Implementations§
Source§impl Debug for PointOfInterestType
impl Debug for PointOfInterestType
Auto Trait Implementations§
impl Freeze for PointOfInterestType
impl RefUnwindSafe for PointOfInterestType
impl Send for PointOfInterestType
impl Sync for PointOfInterestType
impl Unpin for PointOfInterestType
impl UnsafeUnpin for PointOfInterestType
impl UnwindSafe for PointOfInterestType
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