minecraft_command_types/command/
locate.rs

1use minecraft_command_types_derive::HasMacro;
2use std::fmt::{Display, Formatter};
3
4#[derive(Debug, Clone, Eq, PartialEq, Hash, HasMacro)]
5pub enum LocateType {
6    Structure,
7    Biome,
8    POI,
9}
10
11impl Display for LocateType {
12    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
13        match self {
14            LocateType::Structure => f.write_str("structure"),
15            LocateType::Biome => f.write_str("biome"),
16            LocateType::POI => f.write_str("poi"),
17        }
18    }
19}