(
&mut self,
packet: &packet::play::ChatCommand,
)
| 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)] |
no test coverage detected