Interface SendablePacket

All Known Subinterfaces:
ComponentHoldingServerPacket, ServerPacket
All Known Implementing Classes:
AcknowledgePlayerDiggingPacket, ActionBarPacket, AdvancementsPacket, AttachEntityPacket, BlockActionPacket, BlockBreakAnimationPacket, BlockChangePacket, BlockEntityDataPacket, BossBarPacket, CachedPacket, CameraPacket, ChangeGameStatePacket, ChatMessagePacket, ChunkDataPacket, ClearTitlesPacket, CloseWindowPacket, CollectItemPacket, CraftRecipeResponse, DeathCombatEventPacket, DeclareCommandsPacket, DeclareRecipesPacket, DestroyEntitiesPacket, DisconnectPacket, DisplayScoreboardPacket, EffectPacket, EncryptionRequestPacket, EndCombatEventPacket, EnterCombatEventPacket, EntityAnimationPacket, EntityEffectPacket, EntityEquipmentPacket, EntityHeadLookPacket, EntityMetaDataPacket, EntityPositionAndRotationPacket, EntityPositionPacket, EntityPropertiesPacket, EntityRotationPacket, EntitySoundEffectPacket, EntityStatusPacket, EntityTeleportPacket, EntityVelocityPacket, ExplosionPacket, FacePlayerPacket, FramedPacket, HeldItemChangePacket, InitializeWorldBorderPacket, JoinGamePacket, KeepAlivePacket, LazyPacket, LoginDisconnectPacket, LoginPluginRequestPacket, LoginSuccessPacket, MapDataPacket, MultiBlockChangePacket, NamedSoundEffectPacket, NbtQueryResponsePacket, OpenBookPacket, OpenHorseWindowPacket, OpenSignEditorPacket, OpenWindowPacket, ParticlePacket, PingPacket, PlayerAbilitiesPacket, PlayerInfoPacket, PlayerListHeaderAndFooterPacket, PlayerPositionAndLookPacket, PluginMessagePacket, PongPacket, RemoveEntityEffectPacket, ResourcePackSendPacket, RespawnPacket, ResponsePacket, ScoreboardObjectivePacket, SculkVibrationSignal, SelectAdvancementTabPacket, ServerDifficultyPacket, SetCompressionPacket, SetCooldownPacket, SetExperiencePacket, SetPassengersPacket, SetSlotPacket, SetTitleSubTitlePacket, SetTitleTextPacket, SetTitleTimePacket, SoundEffectPacket, SpawnEntityPacket, SpawnExperienceOrbPacket, SpawnLivingEntityPacket, SpawnPaintingPacket, SpawnPlayerPacket, SpawnPositionPacket, StatisticsPacket, StopSoundPacket, TabCompletePacket, TagsPacket, TeamsPacket, TimeUpdatePacket, TradeListPacket, UnloadChunkPacket, UnlockRecipesPacket, UpdateHealthPacket, UpdateLightPacket, UpdateScorePacket, UpdateSimulationDistancePacket, UpdateViewDistancePacket, UpdateViewPositionPacket, VehicleMovePacket, WindowItemsPacket, WindowPropertyPacket, WorldBorderCenterPacket, WorldBorderLerpSizePacket, WorldBorderSizePacket, WorldBorderWarningDelayPacket, WorldBorderWarningReachPacket

@Experimental public sealed interface SendablePacket permits CachedPacket, FramedPacket, LazyPacket, ServerPacket
Represents a packet that can be sent to a PlayerConnection.
  • Method Details

    • extractServerPacket

      @Experimental @NotNull static @NotNull ServerPacket extractServerPacket(@NotNull @NotNull SendablePacket packet)