Class PacketTranslator<T>
java.lang.Object
org.geysermc.geyser.translator.protocol.PacketTranslator<T>
- Direct Known Subclasses:
BedrockActionTranslator
,BedrockAdventureSettingsTranslator
,BedrockAnimateTranslator
,BedrockBlockEntityDataTranslator
,BedrockBlockPickRequestTranslator
,BedrockBookEditTranslator
,BedrockCommandBlockUpdateTranslator
,BedrockCommandRequestTranslator
,BedrockContainerCloseTranslator
,BedrockEmoteListTranslator
,BedrockEmoteTranslator
,BedrockEntityEventTranslator
,BedrockEntityPickRequestTranslator
,BedrockFilterTextTranslator
,BedrockInteractTranslator
,BedrockInventoryTransactionTranslator
,BedrockItemFrameDropItemTranslator
,BedrockItemStackRequestTranslator
,BedrockLecternUpdateTranslator
,BedrockLevelSoundEventTranslator
,BedrockMapInfoRequestTranslator
,BedrockMobEquipmentTranslator
,BedrockMoveEntityAbsoluteTranslator
,BedrockMovePlayerTranslator
,BedrockNetworkStackLatencyTranslator
,BedrockPacketViolationWarningTranslator
,BedrockPlayerInputTranslator
,BedrockPositionTrackingDBClientRequestTranslator
,BedrockRespawnTranslator
,BedrockRiderJumpTranslator
,BedrockServerSettingsRequestTranslator
,BedrockSetLocalPlayerAsInitializedTranslator
,BedrockSetPlayerGameTypeTranslator
,BedrockShowCreditsTranslator
,BedrockTextTranslator
,JavaAddEntityTranslator
,JavaAddExperienceOrbTranslator
,JavaAddMobTranslator
,JavaAddPaintingTranslator
,JavaAddPlayerTranslator
,JavaAnimateTranslator
,JavaAwardStatsTranslator
,JavaBlockBreakAckTranslator
,JavaBlockDestructionTranslator
,JavaBlockEntityDataTranslator
,JavaBlockEventTranslator
,JavaBlockUpdateTranslator
,JavaBossEventTranslator
,JavaChangeDifficultyTranslator
,JavaChatTranslator
,JavaClearTitlesTranslator
,JavaCommandsTranslator
,JavaContainerCloseTranslator
,JavaContainerSetContentTranslator
,JavaContainerSetDataTranslator
,JavaContainerSetSlotTranslator
,JavaCustomPayloadTranslator
,JavaCustomQueryTranslator
,JavaCustomSoundTranslator
,JavaDisconnectTranslator
,JavaEntityEventTranslator
,JavaExplodeTranslator
,JavaForgetLevelChunkTranslator
,JavaGameEventTranslator
,JavaGameProfileTranslator
,JavaHorseScreenOpenTranslator
,JavaInitializeBorderTranslator
,JavaKeepAliveTranslator
,JavaLevelChunkWithLightTranslator
,JavaLevelEventTranslator
,JavaLevelParticlesTranslator
,JavaLoginDisconnectTranslator
,JavaLoginTranslator
,JavaMapItemDataTranslator
,JavaMerchantOffersTranslator
,JavaMoveEntityPosRotTranslator
,JavaMoveEntityPosTranslator
,JavaMoveEntityRotTranslator
,JavaMoveVehicleTranslator
,JavaOpenScreenTranslator
,JavaPingTranslator
,JavaPlayerAbilitiesTranslator
,JavaPlayerInfoTranslator
,JavaPlayerPositionTranslator
,JavaRecipeTranslator
,JavaRemoveEntitiesTranslator
,JavaRemoveMobEffectTranslator
,JavaRespawnTranslator
,JavaRotateHeadTranslator
,JavaSectionBlocksUpdateTranslator
,JavaSelectAdvancementsTabTranslator
,JavaSetActionBarTextTranslator
,JavaSetBorderCenterTranslator
,JavaSetBorderLerpSizeTranslator
,JavaSetBorderSizeTranslator
,JavaSetBorderWarningDelayTranslator
,JavaSetBorderWarningDistanceTranslator
,JavaSetCarriedItemTranslator
,JavaSetChunkCacheCenterTranslator
,JavaSetChunkCacheRadiusTranslator
,JavaSetDefaultSpawnPositionTranslator
,JavaSetDisplayObjectiveTranslator
,JavaSetEntityDataTranslator
,JavaSetEntityLinkTranslator
,JavaSetEntityMotionTranslator
,JavaSetEquipmentTranslator
,JavaSetExperienceTranslator
,JavaSetHealthTranslator
,JavaSetObjectiveTranslator
,JavaSetPassengersTranslator
,JavaSetPlayerTeamTranslator
,JavaSetScoreTranslator
,JavaSetSubtitleTextTranslator
,JavaSetTimeTranslator
,JavaSetTitlesAnimationTranslator
,JavaSetTitleTextTranslator
,JavaSoundTranslator
,JavaStopSoundTranslator
,JavaTakeItemEntityTranslator
,JavaTeleportEntityTranslator
,JavaUpdateAdvancementsTranslator
,JavaUpdateAttributesTranslator
,JavaUpdateMobEffectTranslator
,JavaUpdateRecipesTranslator
,JavaUpdateTagsTranslator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if this packet should be handled in the session's event loop.abstract void
translate(GeyserSession session, T packet)
-
Constructor Details
-
PacketTranslator
public PacketTranslator()
-
-
Method Details
-
translate
-
shouldExecuteInEventLoop
public boolean shouldExecuteInEventLoop()Determines if this packet should be handled in the session's event loop. This should generally be true - only when the packet has to be executed immediately should it be false.
-