aboutsummaryrefslogtreecommitdiff
path: root/codegen
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-10-01 15:19:13 -0500
committermat <git@matdoes.dev>2023-10-01 15:19:13 -0500
commitbefa33a87950b6d0f3364cb4fe603f6d84bf4b8f (patch)
treeb46f2b76d4f7c66aef05759d33de68d88904c45b /codegen
parent33e823d6fab990efaa735c05e4b0c42636003b76 (diff)
downloadazalea-drasl-befa33a87950b6d0f3364cb4fe603f6d84bf4b8f.tar.xz
organize azalea_core and re-export it from azalea
Diffstat (limited to 'codegen')
-rw-r--r--codegen/lib/code/entity.py2
-rwxr-xr-xcodegen/lib/code/utils.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/codegen/lib/code/entity.py b/codegen/lib/code/entity.py
index 45210b5e..7be6b01d 100644
--- a/codegen/lib/code/entity.py
+++ b/codegen/lib/code/entity.py
@@ -105,7 +105,7 @@ use super::{
SnifferState, VillagerData
};
use azalea_chat::FormattedText;
-use azalea_core::{particle::Particle, BlockPos, Direction, Vec3};
+use azalea_core::{particle::Particle, position::{BlockPos, Vec3}, direction::Direction};
use azalea_inventory::ItemSlot;
use bevy_ecs::{bundle::Bundle, component::Component};
use derive_more::{Deref, DerefMut};
diff --git a/codegen/lib/code/utils.py b/codegen/lib/code/utils.py
index 6dd910dc..0050ce7b 100755
--- a/codegen/lib/code/utils.py
+++ b/codegen/lib/code/utils.py
@@ -48,18 +48,18 @@ def burger_type_to_rust_type(burger_type, field_name: Optional[str] = None, inst
uses.add('azalea_chat::FormattedText')
elif burger_type == 'identifier':
field_type_rs = 'ResourceLocation'
- uses.add('azalea_core::ResourceLocation')
+ uses.add('azalea_core::resource_location::ResourceLocation')
elif burger_type == 'uuid':
field_type_rs = 'Uuid'
uses.add('uuid::Uuid')
elif burger_type == 'position':
field_type_rs = 'BlockPos'
- uses.add('azalea_core::BlockPos')
+ uses.add('azalea_core::position::BlockPos')
elif burger_type == 'nbtcompound':
field_type_rs = 'azalea_nbt::Nbt'
elif burger_type == 'itemstack':
field_type_rs = 'Slot'
- uses.add('azalea_core::Slot')
+ uses.add('azalea_core::slot::Slot')
elif burger_type == 'metadata':
field_type_rs = 'EntityMetadata'
uses.add('azalea_entity::EntityMetadata')