diff --git a/main/azalea_core/game_type/enum.GameMode.html b/main/azalea_core/game_type/enum.GameMode.html index 7b21b4ba1..0a62c7a7b 100644 --- a/main/azalea_core/game_type/enum.GameMode.html +++ b/main/azalea_core/game_type/enum.GameMode.html @@ -5,8 +5,8 @@ Spectator, }
Expand description

A Minecraft gamemode, like survival or creative.

Variants§

§

Survival

§

Creative

§

Adventure

§

Spectator

Implementations§

Source§

impl GameMode

Source

pub fn to_id(&self) -> u8

Source

pub fn to_optional_id<T: Into<Option<GameMode>>>(game_type: T) -> i8

Get the id of the game type, but return -1 if the game type is invalid.

-
Source

pub fn from_id(id: u8) -> Option<GameMode>

Source

pub fn from_optional_id(id: i8) -> Option<OptionalGameType>

Source

pub fn short_name(&self) -> TranslatableComponent

The short translatable display name for the gamemode, like “Survival”.

-
Source

pub fn long_name(&self) -> TranslatableComponent

The long translatable display name for the gamemode, like “Survival +

Source

pub fn from_id(id: u8) -> Option<GameMode>

Source

pub fn from_optional_id(id: i8) -> Option<OptionalGameType>

Source

pub fn short_name(&self) -> TranslatableComponent

The short translatable display name for the gamemode, like “Survival”.

+
Source

pub fn long_name(&self) -> TranslatableComponent

The long translatable display name for the gamemode, like “Survival Mode”.

Source

pub fn from_name(name: &str) -> GameMode

Source

pub fn name(&self) -> &'static str

The internal name for the game mode, like “survival”.

Source§

impl GameMode

Source

pub fn is_block_placing_restricted(&self) -> bool

Whether the player can’t interact with blocks while in this game mode.

diff --git a/main/azalea_physics/collision/fn.move_colliding.html b/main/azalea_physics/collision/fn.move_colliding.html index a979af8b2..ede686932 100644 --- a/main/azalea_physics/collision/fn.move_colliding.html +++ b/main/azalea_physics/collision/fn.move_colliding.html @@ -2,8 +2,8 @@ _mover_type: MoverType, movement: &Vec3, world: &Instance, - position: &mut Mut<'_, Position>, - physics: &mut Physics, + position: &mut Mut<'_, Position>, + physics: &mut Physics, ) -> Result<(), MoveEntityError>
Expand description

Move an entity by a given delta, checking for collisions.

In Mojmap, this is Entity.move.

\ No newline at end of file diff --git a/main/azalea_physics/fluids/fn.update_in_water_state_and_do_fluid_pushing.html b/main/azalea_physics/fluids/fn.update_in_water_state_and_do_fluid_pushing.html index 222efe302..826b6cdc8 100644 --- a/main/azalea_physics/fluids/fn.update_in_water_state_and_do_fluid_pushing.html +++ b/main/azalea_physics/fluids/fn.update_in_water_state_and_do_fluid_pushing.html @@ -1,4 +1,4 @@ update_in_water_state_and_do_fluid_pushing in azalea_physics::fluids - Rust
azalea_physics::fluids

Function update_in_water_state_and_do_fluid_pushing

Source
pub fn update_in_water_state_and_do_fluid_pushing(
-    query: Query<'_, '_, (&mut Physics, &Position, &InstanceName), (With<LocalEntity>, With<InLoadedChunk>)>,
+    query: Query<'_, '_, (&mut Physics, &Position, &InstanceName), (With<LocalEntity>, With<InLoadedChunk>)>,
     instance_container: Res<'_, InstanceContainer>,
 )
\ No newline at end of file diff --git a/main/azalea_physics/fn.ai_step.html b/main/azalea_physics/fn.ai_step.html index 7257a8723..969d40a67 100644 --- a/main/azalea_physics/fn.ai_step.html +++ b/main/azalea_physics/fn.ai_step.html @@ -1,5 +1,5 @@ ai_step in azalea_physics - Rust
azalea_physics

Function ai_step

Source
pub fn ai_step(
-    query: Query<'_, '_, (&mut Physics, Option<&Jumping>, &Position, &LookDirection, &Sprinting, &InstanceName), (With<LocalEntity>, With<InLoadedChunk>)>,
+    query: Query<'_, '_, (&mut Physics, Option<&Jumping>, &Position, &LookDirection, &Sprinting, &InstanceName), (With<LocalEntity>, With<InLoadedChunk>)>,
     instance_container: Res<'_, InstanceContainer>,
 )
Expand description

Applies air resistance and handles jumping.

Happens before travel::travel.

diff --git a/main/azalea_physics/fn.apply_effects_from_blocks.html b/main/azalea_physics/fn.apply_effects_from_blocks.html index 77b91d6c5..754f5bd4b 100644 --- a/main/azalea_physics/fn.apply_effects_from_blocks.html +++ b/main/azalea_physics/fn.apply_effects_from_blocks.html @@ -1,4 +1,4 @@ apply_effects_from_blocks in azalea_physics - Rust
azalea_physics

Function apply_effects_from_blocks

Source
pub fn apply_effects_from_blocks(
-    query: Query<'_, '_, (&mut Physics, &Position, &InstanceName), (With<LocalEntity>, With<InLoadedChunk>)>,
+    query: Query<'_, '_, (&mut Physics, &Position, &InstanceName), (With<LocalEntity>, With<InLoadedChunk>)>,
     instance_container: Res<'_, InstanceContainer>,
 )
\ No newline at end of file diff --git a/main/azalea_physics/fn.jump_from_ground.html b/main/azalea_physics/fn.jump_from_ground.html index 9b5f5abfc..07d7c8512 100644 --- a/main/azalea_physics/fn.jump_from_ground.html +++ b/main/azalea_physics/fn.jump_from_ground.html @@ -1,8 +1,8 @@ jump_from_ground in azalea_physics - Rust
azalea_physics

Function jump_from_ground

Source
pub fn jump_from_ground(
-    physics: &mut Physics,
-    position: &Position,
-    look_direction: &LookDirection,
-    sprinting: &Sprinting,
+    physics: &mut Physics,
+    position: &Position,
+    look_direction: &LookDirection,
+    sprinting: &Sprinting,
     instance_name: &InstanceName,
     instance_container: &InstanceContainer,
 )
\ No newline at end of file diff --git a/main/azalea_physics/fn.update_old_position.html b/main/azalea_physics/fn.update_old_position.html index cc09e88df..a0c8aaa59 100644 --- a/main/azalea_physics/fn.update_old_position.html +++ b/main/azalea_physics/fn.update_old_position.html @@ -1 +1 @@ -update_old_position in azalea_physics - Rust
azalea_physics

Function update_old_position

Source
pub fn update_old_position(query: Query<'_, '_, (&mut Physics, &Position)>)
\ No newline at end of file +update_old_position in azalea_physics - Rust
azalea_physics

Function update_old_position

Source
pub fn update_old_position(query: Query<'_, '_, (&mut Physics, &Position)>)
\ No newline at end of file diff --git a/main/azalea_physics/travel/fn.travel.html b/main/azalea_physics/travel/fn.travel.html index 894e13e93..0a12d017f 100644 --- a/main/azalea_physics/travel/fn.travel.html +++ b/main/azalea_physics/travel/fn.travel.html @@ -1,5 +1,5 @@ travel in azalea_physics::travel - Rust
azalea_physics::travel

Function travel

Source
pub fn travel(
-    query: Query<'_, '_, (&mut Physics, &mut LookDirection, &mut Position, Option<&Sprinting>, Option<&Pose>, &Attributes, &InstanceName, &OnClimbable, &Jumping), (With<LocalEntity>, With<InLoadedChunk>)>,
+    query: Query<'_, '_, (&mut Physics, &mut LookDirection, &mut Position, Option<&Sprinting>, Option<&Pose>, &Attributes, &InstanceName, &OnClimbable, &Jumping), (With<LocalEntity>, With<InLoadedChunk>)>,
     instance_container: Res<'_, InstanceContainer>,
 )
Expand description

Move the entity with the given acceleration while handling friction, gravity, collisions, and some other stuff.

diff --git a/main/index.html b/main/index.html index f5089110f..c62b326c0 100644 --- a/main/index.html +++ b/main/index.html @@ -1,2 +1,2 @@ -Index of crates
- \ No newline at end of file +Index of crates
+ \ No newline at end of file