pub enum Kind {
Show 106 variants
SendChat(SendChatAction),
Teleport(TeleportAction),
Kick(KickAction),
SetGameMode(SetGameModeAction),
GiveItem(GiveItemAction),
ClearInventory(ClearInventoryAction),
SetHeldItem(SetHeldItemAction),
PlayerSetArmour(PlayerSetArmourAction),
PlayerOpenBlockContainer(PlayerOpenBlockContainerAction),
PlayerDropItem(PlayerDropItemAction),
PlayerSetItemCooldown(PlayerSetItemCooldownAction),
SetHealth(SetHealthAction),
SetFood(SetFoodAction),
SetExperience(SetExperienceAction),
SetVelocity(SetVelocityAction),
AddEffect(AddEffectAction),
RemoveEffect(RemoveEffectAction),
SendTitle(SendTitleAction),
SendPopup(SendPopupAction),
SendTip(SendTipAction),
PlayerSendToast(PlayerSendToastAction),
PlayerSendJukeboxPopup(PlayerSendJukeboxPopupAction),
PlayerShowCoordinates(PlayerShowCoordinatesAction),
PlayerHideCoordinates(PlayerHideCoordinatesAction),
PlayerEnableInstantRespawn(PlayerEnableInstantRespawnAction),
PlayerDisableInstantRespawn(PlayerDisableInstantRespawnAction),
PlayerSetNameTag(PlayerSetNameTagAction),
PlayerSetScoreTag(PlayerSetScoreTagAction),
PlaySound(PlaySoundAction),
PlayerShowParticle(PlayerShowParticleAction),
PlayerSendScoreboard(PlayerSendScoreboardAction),
PlayerRemoveScoreboard(PlayerRemoveScoreboardAction),
PlayerSendMenuForm(PlayerSendMenuFormAction),
PlayerSendModalForm(PlayerSendModalFormAction),
PlayerSendDialogue(PlayerSendDialogueAction),
PlayerCloseDialogue(PlayerCloseDialogueAction),
PlayerCloseForm(PlayerCloseFormAction),
ExecuteCommand(ExecuteCommandAction),
PlayerStartSprinting(PlayerStartSprintingAction),
PlayerStopSprinting(PlayerStopSprintingAction),
PlayerStartSneaking(PlayerStartSneakingAction),
PlayerStopSneaking(PlayerStopSneakingAction),
PlayerStartSwimming(PlayerStartSwimmingAction),
PlayerStopSwimming(PlayerStopSwimmingAction),
PlayerStartCrawling(PlayerStartCrawlingAction),
PlayerStopCrawling(PlayerStopCrawlingAction),
PlayerStartGliding(PlayerStartGlidingAction),
PlayerStopGliding(PlayerStopGlidingAction),
PlayerStartFlying(PlayerStartFlyingAction),
PlayerStopFlying(PlayerStopFlyingAction),
PlayerSetImmobile(PlayerSetImmobileAction),
PlayerSetMobile(PlayerSetMobileAction),
PlayerSetSpeed(PlayerSetSpeedAction),
PlayerSetFlightSpeed(PlayerSetFlightSpeedAction),
PlayerSetVerticalFlightSpeed(PlayerSetVerticalFlightSpeedAction),
PlayerSetAbsorption(PlayerSetAbsorptionAction),
PlayerSetOnFire(PlayerSetOnFireAction),
PlayerExtinguish(PlayerExtinguishAction),
PlayerSetInvisible(PlayerSetInvisibleAction),
PlayerSetVisible(PlayerSetVisibleAction),
PlayerSetScale(PlayerSetScaleAction),
PlayerSetHeldSlot(PlayerSetHeldSlotAction),
PlayerRespawn(PlayerRespawnAction),
PlayerTransfer(PlayerTransferAction),
PlayerKnockBack(PlayerKnockBackAction),
PlayerSwingArm(PlayerSwingArmAction),
PlayerPunchAir(PlayerPunchAirAction),
PlayerSendBossBar(PlayerSendBossBarAction),
PlayerRemoveBossBar(PlayerRemoveBossBarAction),
PlayerShowHudElement(PlayerShowHudElementAction),
PlayerHideHudElement(PlayerHideHudElementAction),
PlayerOpenSign(PlayerOpenSignAction),
PlayerEditSign(PlayerEditSignAction),
PlayerTurnLecternPage(PlayerTurnLecternPageAction),
PlayerHidePlayer(PlayerHidePlayerAction),
PlayerShowPlayer(PlayerShowPlayerAction),
PlayerRemoveAllDebugShapes(PlayerRemoveAllDebugShapesAction),
WorldSetDefaultGameMode(WorldSetDefaultGameModeAction),
WorldSetDifficulty(WorldSetDifficultyAction),
WorldSetTickRange(WorldSetTickRangeAction),
WorldSetBlock(WorldSetBlockAction),
WorldPlaySound(WorldPlaySoundAction),
WorldAddParticle(WorldAddParticleAction),
WorldSetTime(WorldSetTimeAction),
WorldStopTime(WorldStopTimeAction),
WorldStartTime(WorldStartTimeAction),
WorldSetSpawn(WorldSetSpawnAction),
WorldSetBiome(WorldSetBiomeAction),
WorldSetLiquid(WorldSetLiquidAction),
WorldScheduleBlockUpdate(WorldScheduleBlockUpdateAction),
WorldBuildStructure(WorldBuildStructureAction),
WorldQueryEntities(WorldQueryEntitiesAction),
WorldQueryPlayers(WorldQueryPlayersAction),
WorldQueryEntitiesWithin(WorldQueryEntitiesWithinAction),
WorldQueryPlayerSpawn(WorldQueryPlayerSpawnAction),
WorldQueryBlock(WorldQueryBlockAction),
WorldQueryBiome(WorldQueryBiomeAction),
WorldQueryLight(WorldQueryLightAction),
WorldQuerySkyLight(WorldQuerySkyLightAction),
WorldQueryTemperature(WorldQueryTemperatureAction),
WorldQueryHighestBlock(WorldQueryHighestBlockAction),
WorldQueryRainingAt(WorldQueryRainingAtAction),
WorldQuerySnowingAt(WorldQuerySnowingAtAction),
WorldQueryThunderingAt(WorldQueryThunderingAtAction),
WorldQueryLiquid(WorldQueryLiquidAction),
WorldQueryDefaultGameMode(WorldQueryDefaultGameModeAction),
}Variants§
SendChat(SendChatAction)
Player: Basic
Teleport(TeleportAction)
Kick(KickAction)
SetGameMode(SetGameModeAction)
GiveItem(GiveItemAction)
Player: Inventory & Items
ClearInventory(ClearInventoryAction)
SetHeldItem(SetHeldItemAction)
PlayerSetArmour(PlayerSetArmourAction)
PlayerOpenBlockContainer(PlayerOpenBlockContainerAction)
PlayerDropItem(PlayerDropItemAction)
PlayerSetItemCooldown(PlayerSetItemCooldownAction)
SetHealth(SetHealthAction)
Player: State & Attributes
SetFood(SetFoodAction)
SetExperience(SetExperienceAction)
SetVelocity(SetVelocityAction)
AddEffect(AddEffectAction)
Player: Effects
RemoveEffect(RemoveEffectAction)
SendTitle(SendTitleAction)
Player: UI & Communication
SendPopup(SendPopupAction)
SendTip(SendTipAction)
PlayerSendToast(PlayerSendToastAction)
PlayerSendJukeboxPopup(PlayerSendJukeboxPopupAction)
PlayerShowCoordinates(PlayerShowCoordinatesAction)
PlayerHideCoordinates(PlayerHideCoordinatesAction)
PlayerEnableInstantRespawn(PlayerEnableInstantRespawnAction)
PlayerDisableInstantRespawn(PlayerDisableInstantRespawnAction)
PlayerSetNameTag(PlayerSetNameTagAction)
Player: Appearance (overhead)
PlayerSetScoreTag(PlayerSetScoreTagAction)
PlaySound(PlaySoundAction)
Player: Audio & Visuals
PlayerShowParticle(PlayerShowParticleAction)
PlayerSendScoreboard(PlayerSendScoreboardAction)
Player: Scoreboard
PlayerRemoveScoreboard(PlayerRemoveScoreboardAction)
PlayerSendMenuForm(PlayerSendMenuFormAction)
Player: Forms & Dialogue
PlayerSendModalForm(PlayerSendModalFormAction)
PlayerSendDialogue(PlayerSendDialogueAction)
PlayerCloseDialogue(PlayerCloseDialogueAction)
PlayerCloseForm(PlayerCloseFormAction)
ExecuteCommand(ExecuteCommandAction)
Player: Commands
PlayerStartSprinting(PlayerStartSprintingAction)
Player: Movement toggles
PlayerStopSprinting(PlayerStopSprintingAction)
PlayerStartSneaking(PlayerStartSneakingAction)
PlayerStopSneaking(PlayerStopSneakingAction)
PlayerStartSwimming(PlayerStartSwimmingAction)
PlayerStopSwimming(PlayerStopSwimmingAction)
PlayerStartCrawling(PlayerStartCrawlingAction)
PlayerStopCrawling(PlayerStopCrawlingAction)
PlayerStartGliding(PlayerStartGlidingAction)
PlayerStopGliding(PlayerStopGlidingAction)
PlayerStartFlying(PlayerStartFlyingAction)
PlayerStopFlying(PlayerStopFlyingAction)
PlayerSetImmobile(PlayerSetImmobileAction)
Player: Mobility lock
PlayerSetMobile(PlayerSetMobileAction)
PlayerSetSpeed(PlayerSetSpeedAction)
Player: Movement attributes
PlayerSetFlightSpeed(PlayerSetFlightSpeedAction)
PlayerSetVerticalFlightSpeed(PlayerSetVerticalFlightSpeedAction)
PlayerSetAbsorption(PlayerSetAbsorptionAction)
Player: Health/Status
PlayerSetOnFire(PlayerSetOnFireAction)
PlayerExtinguish(PlayerExtinguishAction)
PlayerSetInvisible(PlayerSetInvisibleAction)
PlayerSetVisible(PlayerSetVisibleAction)
PlayerSetScale(PlayerSetScaleAction)
Player: Misc attributes
PlayerSetHeldSlot(PlayerSetHeldSlotAction)
PlayerRespawn(PlayerRespawnAction)
Player: Lifecycle/Control
PlayerTransfer(PlayerTransferAction)
PlayerKnockBack(PlayerKnockBackAction)
PlayerSwingArm(PlayerSwingArmAction)
PlayerPunchAir(PlayerPunchAirAction)
PlayerSendBossBar(PlayerSendBossBarAction)
Player: Boss bar
PlayerRemoveBossBar(PlayerRemoveBossBarAction)
PlayerShowHudElement(PlayerShowHudElementAction)
Player: HUD elements
PlayerHideHudElement(PlayerHideHudElementAction)
PlayerOpenSign(PlayerOpenSignAction)
Player: Signs & Lecterns
PlayerEditSign(PlayerEditSignAction)
PlayerTurnLecternPage(PlayerTurnLecternPageAction)
PlayerHidePlayer(PlayerHidePlayerAction)
Player: Entity visibility
PlayerShowPlayer(PlayerShowPlayerAction)
PlayerRemoveAllDebugShapes(PlayerRemoveAllDebugShapesAction)
Player: Debug shapes
WorldSetDefaultGameMode(WorldSetDefaultGameModeAction)
World: Configuration & Settings
WorldSetDifficulty(WorldSetDifficultyAction)
WorldSetTickRange(WorldSetTickRangeAction)
WorldSetBlock(WorldSetBlockAction)
WorldPlaySound(WorldPlaySoundAction)
WorldAddParticle(WorldAddParticleAction)
WorldSetTime(WorldSetTimeAction)
World: Time
WorldStopTime(WorldStopTimeAction)
WorldStartTime(WorldStartTimeAction)
WorldSetSpawn(WorldSetSpawnAction)
WorldSetBiome(WorldSetBiomeAction)
World: Mutations
WorldSetLiquid(WorldSetLiquidAction)
WorldScheduleBlockUpdate(WorldScheduleBlockUpdateAction)
WorldBuildStructure(WorldBuildStructureAction)
WorldQueryEntities(WorldQueryEntitiesAction)
World: Queries - Entities & Players
WorldQueryPlayers(WorldQueryPlayersAction)
WorldQueryEntitiesWithin(WorldQueryEntitiesWithinAction)
WorldQueryPlayerSpawn(WorldQueryPlayerSpawnAction)
WorldQueryBlock(WorldQueryBlockAction)
World: Queries - Blocks & Terrain
WorldQueryBiome(WorldQueryBiomeAction)
WorldQueryLight(WorldQueryLightAction)
WorldQuerySkyLight(WorldQuerySkyLightAction)
WorldQueryTemperature(WorldQueryTemperatureAction)
WorldQueryHighestBlock(WorldQueryHighestBlockAction)
WorldQueryRainingAt(WorldQueryRainingAtAction)
World: Queries - Weather & Environment
WorldQuerySnowingAt(WorldQuerySnowingAtAction)
WorldQueryThunderingAt(WorldQueryThunderingAtAction)
WorldQueryLiquid(WorldQueryLiquidAction)
World: Queries - Liquid & Settings
WorldQueryDefaultGameMode(WorldQueryDefaultGameModeAction)
Implementations§
Source§impl Kind
impl Kind
Sourcepub fn merge(
field: &mut Option<Kind>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Kind>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request