MCPcopy Create free account
hub / github.com/Vulae/pkmc / parse_then_execute_command

Method parse_then_execute_command

examples/server/src/player/command.rs:58–67  ·  view source on GitHub ↗
(
        &mut self,
        packet: &packet::play::ChatCommand,
    )

Source from the content-addressed store, hash-verified

56 }
57
58 pub fn parse_then_execute_command(
59 &mut self,
60 packet: &packet::play::ChatCommand,
61 ) -> Result<(), PlayerError> {
62 let transform = self.coordinate_transform();
63 self.try_parse_then_execute_command::<CommandGoto>(packet, &transform)?;
64 self.try_parse_then_execute_command::<CommandData>(packet, &transform)?;
65 self.try_parse_then_execute_command::<CommandDestroy>(packet, &transform)?;
66 Ok(())
67 }
68}
69
70#[derive(Debug)]

Callers 1

updateMethod · 0.80

Calls 1

coordinate_transformMethod · 0.80

Tested by

no test coverage detected