Interface Packet<T extends PacketListener>

All Known Implementing Classes:
AcknowledgeChunksC2SPacket, AcknowledgeReconfigurationC2SPacket, AdvancementTabC2SPacket, AdvancementUpdateS2CPacket, BlockBreakingProgressS2CPacket, BlockEntityUpdateS2CPacket, BlockEventS2CPacket, BlockUpdateS2CPacket, BoatPaddleStateC2SPacket, BookUpdateC2SPacket, BossBarS2CPacket, BundleDelimiterS2CPacket, BundlePacket, BundleS2CPacket, BundleSplitterPacket, ButtonClickC2SPacket, ChangeUnlockedRecipesS2CPacket, ChatCommandSignedC2SPacket, ChatMessageC2SPacket, ChatMessageS2CPacket, ChatSuggestionsS2CPacket, ChunkBiomeDataS2CPacket, ChunkDataS2CPacket, ChunkDeltaUpdateS2CPacket, ChunkLoadDistanceS2CPacket, ChunkRenderDistanceCenterS2CPacket, ChunkSentS2CPacket, class_9814, class_9815, ClearTitleS2CPacket, ClickSlotC2SPacket, ClientCommandC2SPacket, ClientOptionsC2SPacket, ClientStatusC2SPacket, CloseHandledScreenC2SPacket, CloseScreenS2CPacket, CommandExecutionC2SPacket, CommandSuggestionsS2CPacket, CommandTreeS2CPacket, CommonPingS2CPacket, CommonPongC2SPacket, CookieRequestS2CPacket, CookieResponseC2SPacket, CooldownUpdateS2CPacket, CraftFailedResponseS2CPacket, CraftRequestC2SPacket, CreativeInventoryActionC2SPacket, CustomPayloadC2SPacket, CustomPayloadS2CPacket, DamageTiltS2CPacket, DeathMessageS2CPacket, DebugSampleS2CPacket, DebugSampleSubscriptionC2SPacket, DifficultyS2CPacket, DisconnectS2CPacket, DynamicRegistriesS2CPacket, EndCombatS2CPacket, EnterCombatS2CPacket, EnterConfigurationC2SPacket, EnterReconfigurationS2CPacket, EntitiesDestroyS2CPacket, EntityAnimationS2CPacket, EntityAttachS2CPacket, EntityAttributesS2CPacket, EntityDamageS2CPacket, EntityEquipmentUpdateS2CPacket, EntityPassengersSetS2CPacket, EntityPositionS2CPacket, EntityS2CPacket, EntityS2CPacket.MoveRelative, EntityS2CPacket.Rotate, EntityS2CPacket.RotateAndMoveRelative, EntitySetHeadYawS2CPacket, EntitySpawnS2CPacket, EntityStatusEffectS2CPacket, EntityStatusS2CPacket, EntityTrackerUpdateS2CPacket, EntityVelocityUpdateS2CPacket, ExperienceBarUpdateS2CPacket, ExperienceOrbSpawnS2CPacket, ExplosionS2CPacket, FeaturesS2CPacket, GameJoinS2CPacket, GameMessageS2CPacket, GameStateChangeS2CPacket, HandshakeC2SPacket, HandSwingC2SPacket, HealthUpdateS2CPacket, InventoryS2CPacket, ItemPickupAnimationS2CPacket, JigsawGeneratingC2SPacket, KeepAliveC2SPacket, KeepAliveS2CPacket, LightUpdateS2CPacket, LoginCompressionS2CPacket, LoginDisconnectS2CPacket, LoginHelloC2SPacket, LoginHelloS2CPacket, LoginKeyC2SPacket, LoginQueryRequestS2CPacket, LoginQueryResponseC2SPacket, LoginSuccessS2CPacket, LookAtS2CPacket, MapUpdateS2CPacket, MessageAcknowledgmentC2SPacket, NbtQueryResponseS2CPacket, OpenHorseScreenS2CPacket, OpenScreenS2CPacket, OpenWrittenBookS2CPacket, OverlayMessageS2CPacket, ParticleS2CPacket, PickFromInventoryC2SPacket, PingResultS2CPacket, PlayerAbilitiesS2CPacket, PlayerActionC2SPacket, PlayerActionResponseS2CPacket, PlayerInputC2SPacket, PlayerInteractBlockC2SPacket, PlayerInteractEntityC2SPacket, PlayerInteractItemC2SPacket, PlayerListHeaderS2CPacket, PlayerListS2CPacket, PlayerMoveC2SPacket, PlayerMoveC2SPacket.Full, PlayerMoveC2SPacket.LookAndOnGround, PlayerMoveC2SPacket.OnGroundOnly, PlayerMoveC2SPacket.PositionAndOnGround, PlayerPositionLookS2CPacket, PlayerRemoveS2CPacket, PlayerRespawnS2CPacket, PlayerSessionC2SPacket, PlayerSpawnPositionS2CPacket, PlaySoundFromEntityS2CPacket, PlaySoundS2CPacket, ProfilelessChatMessageS2CPacket, ProjectilePowerS2CPacket, QueryBlockNbtC2SPacket, QueryEntityNbtC2SPacket, QueryPingC2SPacket, QueryRequestC2SPacket, QueryResponseS2CPacket, ReadyC2SPacket, ReadyS2CPacket, RecipeBookDataC2SPacket, RecipeCategoryOptionsC2SPacket, RemoveEntityStatusEffectS2CPacket, RemoveMessageS2CPacket, RenameItemC2SPacket, RequestCommandCompletionsC2SPacket, ResetChatS2CPacket, ResourcePackRemoveS2CPacket, ResourcePackSendS2CPacket, ResourcePackStatusC2SPacket, ScoreboardDisplayS2CPacket, ScoreboardObjectiveUpdateS2CPacket, ScoreboardScoreResetS2CPacket, ScoreboardScoreUpdateS2CPacket, ScreenHandlerPropertyUpdateS2CPacket, ScreenHandlerSlotUpdateS2CPacket, SelectAdvancementTabS2CPacket, SelectKnownPacksC2SPacket, SelectKnownPacksS2CPacket, SelectMerchantTradeC2SPacket, ServerMetadataS2CPacket, ServerTransferS2CPacket, SetCameraEntityS2CPacket, SetTradeOffersS2CPacket, SignEditorOpenS2CPacket, SimulationDistanceS2CPacket, SlotChangedStateC2SPacket, SpectatorTeleportC2SPacket, StartChunkSendS2CPacket, StatisticsS2CPacket, StopSoundS2CPacket, StoreCookieS2CPacket, SubtitleS2CPacket, SynchronizeRecipesS2CPacket, SynchronizeTagsS2CPacket, TeamS2CPacket, TeleportConfirmC2SPacket, TickStepS2CPacket, TitleFadeS2CPacket, TitleS2CPacket, UnloadChunkS2CPacket, UpdateBeaconC2SPacket, UpdateCommandBlockC2SPacket, UpdateCommandBlockMinecartC2SPacket, UpdateDifficultyC2SPacket, UpdateDifficultyLockC2SPacket, UpdateJigsawC2SPacket, UpdatePlayerAbilitiesC2SPacket, UpdateSelectedSlotC2SPacket, UpdateSelectedSlotS2CPacket, UpdateSignC2SPacket, UpdateStructureBlockC2SPacket, UpdateTickRateS2CPacket, VehicleMoveC2SPacket, VehicleMoveS2CPacket, WorldBorderCenterChangedS2CPacket, WorldBorderInitializeS2CPacket, WorldBorderInterpolateSizeS2CPacket, WorldBorderSizeChangedS2CPacket, WorldBorderWarningBlocksChangedS2CPacket, WorldBorderWarningTimeChangedS2CPacket, WorldEventS2CPacket, WorldTimeUpdateS2CPacket

public interface Packet<T extends PacketListener>
Mappings:
Namespace Name
named net/minecraft/network/packet/Packet
intermediary net/minecraft/class_2596
official zf
  • Method Details

    • getPacketId

      PacketType<? extends Packet<T>> getPacketId()
      Mappings:
      Namespace Name Mixin selector
      named getPacketId Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      official a Lzf;a()Lzh;
    • apply

      void apply(T listener)
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/Packet;apply(Lnet/minecraft/network/listener/PacketListener;)V
      intermediary method_11054 Lnet/minecraft/class_2596;method_11054(Lnet/minecraft/class_2547;)V
      official a Lzf;a(Lwe;)V
    • isWritingErrorSkippable

      default boolean isWritingErrorSkippable()
      Returns whether a throwable in writing of this packet allows the connection to simply skip the packet's sending than disconnecting.
      Returns:
      whether a throwable in writing of this packet allows the connection to simply skip the packet's sending than disconnecting
      Mappings:
      Namespace Name Mixin selector
      named isWritingErrorSkippable Lnet/minecraft/network/packet/Packet;isWritingErrorSkippable()Z
      intermediary method_11051 Lnet/minecraft/class_2596;method_11051()Z
      official c Lzf;c()Z
    • transitionsNetworkState

      default boolean transitionsNetworkState()
      Returns true if the packet signals transitioning between NetworkStates.

      Such packets cannot be bundled.

      Returns:
      true if the packet signals transitioning between NetworkStates
      Mappings:
      Namespace Name Mixin selector
      named transitionsNetworkState Lnet/minecraft/network/packet/Packet;transitionsNetworkState()Z
      intermediary method_55943 Lnet/minecraft/class_2596;method_55943()Z
      official d Lzf;d()Z
    • createCodec

      static <B extends ByteBuf, T extends Packet<?>> PacketCodec<B,T> createCodec(ValueFirstEncoder<B,T> encoder, PacketDecoder<B,T> decoder)
      Mappings:
      Namespace Name Mixin selector
      named createCodec Lnet/minecraft/network/packet/Packet;createCodec(Lnet/minecraft/network/codec/ValueFirstEncoder;Lnet/minecraft/network/codec/PacketDecoder;)Lnet/minecraft/network/codec/PacketCodec;
      intermediary method_56443 Lnet/minecraft/class_2596;method_56443(Lnet/minecraft/class_9143;Lnet/minecraft/class_9141;)Lnet/minecraft/class_9139;
      official a Lzf;a(Lyz;Lyx;)Lyw;