From c12469966e50fe9d269896687e3763cabb039d73 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 16 Dec 2021 16:23:51 +0000 Subject: add resource location to azalea-core --- azalea-core/src/lib.rs | 5 +++-- azalea-core/src/serializable_uuid.rs | 5 +---- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'azalea-core/src') diff --git a/azalea-core/src/lib.rs b/azalea-core/src/lib.rs index 592988a3..dbe08afb 100644 --- a/azalea-core/src/lib.rs +++ b/azalea-core/src/lib.rs @@ -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)] mod tests { diff --git a/azalea-core/src/serializable_uuid.rs b/azalea-core/src/serializable_uuid.rs index 91b5f2d8..473d8254 100644 --- a/azalea-core/src/serializable_uuid.rs +++ b/azalea-core/src/serializable_uuid.rs @@ -5,10 +5,6 @@ pub trait SerializableUuid { 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] { [ (most >> 32) as u32, @@ -34,6 +30,7 @@ impl SerializableUuid for Uuid { } } +#[cfg(tests)] mod tests { use super::*; -- cgit v1.2.3