mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 23:44:38 +00:00
add resource location to azalea-core
This commit is contained in:
parent
279ca8aeda
commit
c12469966e
4 changed files with 6 additions and 8 deletions
|
@ -1,6 +1,7 @@
|
||||||
//! Random miscellaneous things like UUIDs
|
//! Random miscellaneous things like UUIDs that don't deserve their own crate.
|
||||||
|
|
||||||
mod serializable_uuid;
|
pub mod resource_location;
|
||||||
|
pub mod serializable_uuid;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
|
|
@ -5,10 +5,6 @@ pub trait SerializableUuid {
|
||||||
fn from_int_array(array: [u32; 4]) -> Self;
|
fn from_int_array(array: [u32; 4]) -> Self;
|
||||||
}
|
}
|
||||||
|
|
||||||
// private static int[] leastMostToIntArray(long l, long l2) {
|
|
||||||
// return new int[]{(int)(l >> 32), (int)l, (int)(l2 >> 32), (int)l2};
|
|
||||||
// }
|
|
||||||
|
|
||||||
fn least_most_to_int_array(most: u64, least: u64) -> [u32; 4] {
|
fn least_most_to_int_array(most: u64, least: u64) -> [u32; 4] {
|
||||||
[
|
[
|
||||||
(most >> 32) as u32,
|
(most >> 32) as u32,
|
||||||
|
@ -34,6 +30,7 @@ impl SerializableUuid for Uuid {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(tests)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use std::hash::Hash;
|
use std::hash::Hash;
|
||||||
use tokio::io::BufReader;
|
use tokio::io::BufReader;
|
||||||
|
|
||||||
use crate::mc_buf::{self, Readable, Writable};
|
use crate::mc_buf::{Readable, Writable};
|
||||||
|
|
||||||
use super::LoginPacket;
|
use super::LoginPacket;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ use azalea_client::connect::join_server;
|
||||||
use tokio::runtime::Runtime;
|
use tokio::runtime::Runtime;
|
||||||
|
|
||||||
async fn bot() {
|
async fn bot() {
|
||||||
let address = "localhost:50388";
|
let address = "95.111.249.143:10000";
|
||||||
let _response = join_server(&address.try_into().unwrap()).await.unwrap();
|
let _response = join_server(&address.try_into().unwrap()).await.unwrap();
|
||||||
// println!("{}", response.description.to_ansi(None));
|
// println!("{}", response.description.to_ansi(None));
|
||||||
println!("connected");
|
println!("connected");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue