diff options
| author | mat <github@matdoes.dev> | 2021-12-16 16:23:51 +0000 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-16 16:23:51 +0000 |
| commit | c12469966e50fe9d269896687e3763cabb039d73 (patch) | |
| tree | 9d537df4d475d296ef64d882a08be32efec6ef63 /azalea-core/src | |
| parent | 279ca8aeda2f8b8ba98ff969fc2801fc5df79167 (diff) | |
| download | azalea-drasl-c12469966e50fe9d269896687e3763cabb039d73.tar.xz | |
add resource location to azalea-core
Diffstat (limited to 'azalea-core/src')
| -rw-r--r-- | azalea-core/src/lib.rs | 5 | ||||
| -rw-r--r-- | azalea-core/src/serializable_uuid.rs | 5 |
2 files changed, 4 insertions, 6 deletions
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::*; |
