GamePacketHandler

Struct GamePacketHandler 

pub struct GamePacketHandler<'a> {
    pub ecs: &'a mut World,
    pub player: Entity,
}

Fields§

§ecs: &'a mut World§player: Entity

Implementations§

§

impl GamePacketHandler<'_>

pub fn login(&mut self, p: &ClientboundLogin)

pub fn set_chunk_cache_radius(&mut self, p: &ClientboundSetChunkCacheRadius)

pub fn chunk_batch_start(&mut self, _p: &ClientboundChunkBatchStart)

pub fn chunk_batch_finished(&mut self, p: &ClientboundChunkBatchFinished)

pub fn custom_payload(&mut self, p: &ClientboundCustomPayload)

pub fn change_difficulty(&mut self, p: &ClientboundChangeDifficulty)

pub fn commands(&mut self, _p: &ClientboundCommands)

pub fn player_abilities(&mut self, p: &ClientboundPlayerAbilities)

pub fn set_cursor_item(&mut self, p: &ClientboundSetCursorItem)

pub fn update_tags(&mut self, _p: &ClientboundUpdateTags)

pub fn disconnect(&mut self, p: &ClientboundDisconnect)

pub fn update_recipes(&mut self, _p: &ClientboundUpdateRecipes)

pub fn entity_event(&mut self, _p: &ClientboundEntityEvent)

pub fn player_position(&mut self, p: &ClientboundPlayerPosition)

pub fn player_info_update(&mut self, p: &ClientboundPlayerInfoUpdate)

pub fn player_info_remove(&mut self, p: &ClientboundPlayerInfoRemove)

pub fn set_chunk_cache_center(&mut self, p: &ClientboundSetChunkCacheCenter)

pub fn chunks_biomes(&mut self, _p: &ClientboundChunksBiomes)

pub fn light_update(&mut self, _p: &ClientboundLightUpdate)

pub fn level_chunk_with_light(&mut self, p: &ClientboundLevelChunkWithLight)

pub fn add_entity(&mut self, p: &ClientboundAddEntity)

pub fn set_entity_data(&mut self, p: &ClientboundSetEntityData)

pub fn update_attributes(&mut self, _p: &ClientboundUpdateAttributes)

pub fn set_entity_motion(&mut self, p: &ClientboundSetEntityMotion)

pub fn initialize_border(&mut self, p: &ClientboundInitializeBorder)

pub fn set_time(&mut self, _p: &ClientboundSetTime)

pub fn set_default_spawn_position( &mut self, p: &ClientboundSetDefaultSpawnPosition, )

pub fn set_health(&mut self, p: &ClientboundSetHealth)

pub fn set_experience(&mut self, p: &ClientboundSetExperience)

pub fn teleport_entity(&mut self, p: &ClientboundTeleportEntity)

pub fn update_advancements(&mut self, p: &ClientboundUpdateAdvancements)

pub fn rotate_head(&mut self, _p: &ClientboundRotateHead)

pub fn move_entity_pos(&mut self, p: &ClientboundMoveEntityPos)

pub fn move_entity_pos_rot(&mut self, p: &ClientboundMoveEntityPosRot)

pub fn move_entity_rot(&mut self, p: &ClientboundMoveEntityRot)

pub fn keep_alive(&mut self, p: &ClientboundKeepAlive)

pub fn remove_entities(&mut self, p: &ClientboundRemoveEntities)

pub fn player_chat(&mut self, p: &ClientboundPlayerChat)

pub fn system_chat(&mut self, p: &ClientboundSystemChat)

pub fn disguised_chat(&mut self, p: &ClientboundDisguisedChat)

pub fn sound(&mut self, _p: &ClientboundSound)

pub fn level_event(&mut self, p: &ClientboundLevelEvent)

pub fn block_update(&mut self, p: &ClientboundBlockUpdate)

pub fn animate(&mut self, p: &ClientboundAnimate)

pub fn section_blocks_update(&mut self, p: &ClientboundSectionBlocksUpdate)

pub fn game_event(&mut self, p: &ClientboundGameEvent)

pub fn level_particles(&mut self, p: &ClientboundLevelParticles)

pub fn server_data(&mut self, p: &ClientboundServerData)

pub fn set_equipment(&mut self, p: &ClientboundSetEquipment)

pub fn update_mob_effect(&mut self, p: &ClientboundUpdateMobEffect)

pub fn award_stats(&mut self, _p: &ClientboundAwardStats)

pub fn block_changed_ack(&mut self, p: &ClientboundBlockChangedAck)

pub fn block_destruction(&mut self, _p: &ClientboundBlockDestruction)

pub fn block_entity_data(&mut self, _p: &ClientboundBlockEntityData)

pub fn block_event(&mut self, p: &ClientboundBlockEvent)

pub fn boss_event(&mut self, _p: &ClientboundBossEvent)

pub fn command_suggestions(&mut self, _p: &ClientboundCommandSuggestions)

pub fn container_set_content(&mut self, p: &ClientboundContainerSetContent)

pub fn container_set_data(&mut self, p: &ClientboundContainerSetData)

pub fn container_set_slot(&mut self, p: &ClientboundContainerSetSlot)

pub fn container_close(&mut self, p: &ClientboundContainerClose)

pub fn cooldown(&mut self, _p: &ClientboundCooldown)

pub fn custom_chat_completions(&mut self, _p: &ClientboundCustomChatCompletions)

pub fn delete_chat(&mut self, _p: &ClientboundDeleteChat)

pub fn explode(&mut self, p: &ClientboundExplode)

pub fn forget_level_chunk(&mut self, p: &ClientboundForgetLevelChunk)

pub fn horse_screen_open(&mut self, _p: &ClientboundHorseScreenOpen)

pub fn map_item_data(&mut self, _p: &ClientboundMapItemData)

pub fn merchant_offers(&mut self, _p: &ClientboundMerchantOffers)

pub fn move_vehicle(&mut self, _p: &ClientboundMoveVehicle)

pub fn open_book(&mut self, _p: &ClientboundOpenBook)

pub fn open_screen(&mut self, p: &ClientboundOpenScreen)

pub fn open_sign_editor(&mut self, _p: &ClientboundOpenSignEditor)

pub fn ping(&mut self, p: &ClientboundPing)

pub fn place_ghost_recipe(&mut self, _p: &ClientboundPlaceGhostRecipe)

pub fn player_combat_end(&mut self, _p: &ClientboundPlayerCombatEnd)

pub fn player_combat_enter(&mut self, _p: &ClientboundPlayerCombatEnter)

pub fn player_combat_kill(&mut self, p: &ClientboundPlayerCombatKill)

pub fn player_look_at(&mut self, _p: &ClientboundPlayerLookAt)

pub fn remove_mob_effect(&mut self, _p: &ClientboundRemoveMobEffect)

pub fn resource_pack_push(&mut self, p: &ClientboundResourcePackPush)

pub fn resource_pack_pop(&mut self, _p: &ClientboundResourcePackPop)

pub fn respawn(&mut self, p: &ClientboundRespawn)

pub fn start_configuration(&mut self, _p: &ClientboundStartConfiguration)

pub fn entity_position_sync(&mut self, p: &ClientboundEntityPositionSync)

pub fn select_advancements_tab(&mut self, _p: &ClientboundSelectAdvancementsTab)

pub fn set_action_bar_text(&mut self, _p: &ClientboundSetActionBarText)

pub fn set_border_center(&mut self, _p: &ClientboundSetBorderCenter)

pub fn set_border_lerp_size(&mut self, _p: &ClientboundSetBorderLerpSize)

pub fn set_border_size(&mut self, _p: &ClientboundSetBorderSize)

pub fn set_border_warning_delay( &mut self, _p: &ClientboundSetBorderWarningDelay, )

pub fn set_border_warning_distance( &mut self, _p: &ClientboundSetBorderWarningDistance, )

pub fn set_camera(&mut self, _p: &ClientboundSetCamera)

pub fn set_display_objective(&mut self, _p: &ClientboundSetDisplayObjective)

pub fn set_objective(&mut self, _p: &ClientboundSetObjective)

pub fn set_passengers(&mut self, _p: &ClientboundSetPassengers)

pub fn set_player_team(&mut self, p: &ClientboundSetPlayerTeam)

pub fn set_score(&mut self, _p: &ClientboundSetScore)

pub fn set_simulation_distance(&mut self, _p: &ClientboundSetSimulationDistance)

pub fn set_subtitle_text(&mut self, _p: &ClientboundSetSubtitleText)

pub fn set_title_text(&mut self, _p: &ClientboundSetTitleText)

pub fn set_titles_animation(&mut self, _p: &ClientboundSetTitlesAnimation)

pub fn clear_titles(&mut self, _p: &ClientboundClearTitles)

pub fn sound_entity(&mut self, _p: &ClientboundSoundEntity)

pub fn stop_sound(&mut self, _p: &ClientboundStopSound)

pub fn tab_list(&mut self, _p: &ClientboundTabList)

pub fn tag_query(&mut self, _p: &ClientboundTagQuery)

pub fn take_item_entity(&mut self, _p: &ClientboundTakeItemEntity)

pub fn bundle_delimiter(&mut self, _p: &ClientboundBundleDelimiter)

pub fn damage_event(&mut self, _p: &ClientboundDamageEvent)

pub fn hurt_animation(&mut self, _p: &ClientboundHurtAnimation)

pub fn ticking_state(&mut self, _p: &ClientboundTickingState)

pub fn ticking_step(&mut self, _p: &ClientboundTickingStep)

pub fn reset_score(&mut self, _p: &ClientboundResetScore)

pub fn cookie_request(&mut self, _p: &ClientboundCookieRequest)

pub fn debug_sample(&mut self, _p: &ClientboundDebugSample)

pub fn pong_response(&mut self, _p: &ClientboundPongResponse)

pub fn transfer(&mut self, _p: &ClientboundTransfer)

pub fn move_minecart_along_track( &mut self, _p: &ClientboundMoveMinecartAlongTrack, )

pub fn set_held_slot(&mut self, p: &ClientboundSetHeldSlot)

pub fn set_player_inventory(&mut self, _p: &ClientboundSetPlayerInventory)

pub fn projectile_power(&mut self, _p: &ClientboundProjectilePower)

pub fn custom_report_details(&mut self, _p: &ClientboundCustomReportDetails)

pub fn player_rotation(&mut self, _p: &ClientboundPlayerRotation)

pub fn recipe_book_add(&mut self, _p: &ClientboundRecipeBookAdd)

pub fn recipe_book_remove(&mut self, _p: &ClientboundRecipeBookRemove)

pub fn recipe_book_settings(&mut self, _p: &ClientboundRecipeBookSettings)

pub fn test_instance_block_status( &mut self, _p: &ClientboundTestInstanceBlockStatus, )

pub fn waypoint(&mut self, _p: &ClientboundWaypoint)

pub fn clear_dialog(&mut self, p: &ClientboundClearDialog)

pub fn show_dialog(&mut self, p: &ClientboundShowDialog)

pub fn debug_block_value(&mut self, p: &ClientboundDebugBlockValue)

pub fn debug_chunk_value(&mut self, p: &ClientboundDebugChunkValue)

pub fn debug_entity_value(&mut self, p: &ClientboundDebugEntityValue)

pub fn debug_event(&mut self, p: &ClientboundDebugEvent)

pub fn game_test_highlight_pos(&mut self, p: &ClientboundGameTestHighlightPos)

Auto Trait Implementations§

§

impl<'a> Freeze for GamePacketHandler<'a>

§

impl<'a> !RefUnwindSafe for GamePacketHandler<'a>

§

impl<'a> Send for GamePacketHandler<'a>

§

impl<'a> Sync for GamePacketHandler<'a>

§

impl<'a> Unpin for GamePacketHandler<'a>

§

impl<'a> !UnwindSafe for GamePacketHandler<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CompatExt for T

§

fn compat(self) -> Compat<T>

Applies the [Compat] adapter by value. Read more
§

fn compat_ref(&self) -> Compat<&T>

Applies the [Compat] adapter by shared reference. Read more
§

fn compat_mut(&mut self) -> Compat<&mut T>

Applies the [Compat] adapter by mutable reference. Read more
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSend for T
where T: Any + Send,

§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoResult<T> for T

§

fn into_result(self) -> Result<T, RunSystemError>

Converts this type into the system output type.
§

impl<A> Is for A
where A: Any,

§

fn is<T>() -> bool
where T: Any,

Checks if the current type “is” another type, using a TypeId equality comparison. This is most useful in the context of generic logic. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ConditionalSend for T
where T: Send,

§

impl<T> ErasedDestructor for T
where T: 'static,