Package net.minecraft.network
Interface Packet<T extends PacketListener>
- All Known Implementing Classes:
AdvancementTabC2SPacket
,AdvancementUpdateS2CPacket
,BlockBreakingProgressS2CPacket
,BlockEntityUpdateS2CPacket
,BlockEventS2CPacket
,BlockUpdateS2CPacket
,BoatPaddleStateC2SPacket
,BookUpdateC2SPacket
,BossBarS2CPacket
,ButtonClickC2SPacket
,ChatMessageC2SPacket
,ChunkDataS2CPacket
,ChunkDeltaUpdateS2CPacket
,ChunkLoadDistanceS2CPacket
,ChunkRenderDistanceCenterS2CPacket
,ClickSlotC2SPacket
,ClientCommandC2SPacket
,ClientSettingsC2SPacket
,ClientStatusC2SPacket
,CloseHandledScreenC2SPacket
,CloseScreenS2CPacket
,CombatEventS2CPacket
,CommandSuggestionsS2CPacket
,CommandTreeS2CPacket
,ConfirmScreenActionC2SPacket
,ConfirmScreenActionS2CPacket
,CooldownUpdateS2CPacket
,CraftFailedResponseS2CPacket
,CraftRequestC2SPacket
,CreativeInventoryActionC2SPacket
,CustomPayloadC2SPacket
,CustomPayloadS2CPacket
,DifficultyS2CPacket
,DisconnectS2CPacket
,EntitiesDestroyS2CPacket
,EntityAnimationS2CPacket
,EntityAttachS2CPacket
,EntityAttributesS2CPacket
,EntityEquipmentUpdateS2CPacket
,EntityPassengersSetS2CPacket
,EntityPositionS2CPacket
,EntityS2CPacket
,EntityS2CPacket.MoveRelative
,EntityS2CPacket.Rotate
,EntityS2CPacket.RotateAndMoveRelative
,EntitySetHeadYawS2CPacket
,EntitySpawnS2CPacket
,EntityStatusEffectS2CPacket
,EntityStatusS2CPacket
,EntityTrackerUpdateS2CPacket
,EntityVelocityUpdateS2CPacket
,ExperienceBarUpdateS2CPacket
,ExperienceOrbSpawnS2CPacket
,ExplosionS2CPacket
,GameJoinS2CPacket
,GameMessageS2CPacket
,GameStateChangeS2CPacket
,HandshakeC2SPacket
,HandSwingC2SPacket
,HealthUpdateS2CPacket
,HeldItemChangeS2CPacket
,InventoryS2CPacket
,ItemPickupAnimationS2CPacket
,JigsawGeneratingC2SPacket
,KeepAliveC2SPacket
,KeepAliveS2CPacket
,LightUpdateS2CPacket
,LoginCompressionS2CPacket
,LoginDisconnectS2CPacket
,LoginHelloC2SPacket
,LoginHelloS2CPacket
,LoginKeyC2SPacket
,LoginQueryRequestS2CPacket
,LoginQueryResponseC2SPacket
,LoginSuccessS2CPacket
,LookAtS2CPacket
,MapUpdateS2CPacket
,MobSpawnS2CPacket
,OpenHorseScreenS2CPacket
,OpenScreenS2CPacket
,OpenWrittenBookS2CPacket
,PaintingSpawnS2CPacket
,ParticleS2CPacket
,PickFromInventoryC2SPacket
,PlayerAbilitiesS2CPacket
,PlayerActionC2SPacket
,PlayerActionResponseS2CPacket
,PlayerInputC2SPacket
,PlayerInteractBlockC2SPacket
,PlayerInteractEntityC2SPacket
,PlayerInteractItemC2SPacket
,PlayerListHeaderS2CPacket
,PlayerListS2CPacket
,PlayerMoveC2SPacket
,PlayerMoveC2SPacket.Both
,PlayerMoveC2SPacket.LookOnly
,PlayerMoveC2SPacket.PositionOnly
,PlayerPositionLookS2CPacket
,PlayerRespawnS2CPacket
,PlayerSpawnPositionS2CPacket
,PlayerSpawnS2CPacket
,PlaySoundFromEntityS2CPacket
,PlaySoundIdS2CPacket
,PlaySoundS2CPacket
,QueryBlockNbtC2SPacket
,QueryEntityNbtC2SPacket
,QueryPingC2SPacket
,QueryPongS2CPacket
,QueryRequestC2SPacket
,QueryResponseS2CPacket
,RecipeBookDataC2SPacket
,RecipeCategoryOptionsC2SPacket
,RemoveEntityStatusEffectS2CPacket
,RenameItemC2SPacket
,RequestCommandCompletionsC2SPacket
,ResourcePackSendS2CPacket
,ResourcePackStatusC2SPacket
,ScoreboardDisplayS2CPacket
,ScoreboardObjectiveUpdateS2CPacket
,ScoreboardPlayerUpdateS2CPacket
,ScreenHandlerPropertyUpdateS2CPacket
,ScreenHandlerSlotUpdateS2CPacket
,SelectAdvancementTabS2CPacket
,SelectMerchantTradeC2SPacket
,SetCameraEntityS2CPacket
,SetTradeOffersS2CPacket
,SignEditorOpenS2CPacket
,SpectatorTeleportC2SPacket
,StatisticsS2CPacket
,StopSoundS2CPacket
,SynchronizeRecipesS2CPacket
,SynchronizeTagsS2CPacket
,TagQueryResponseS2CPacket
,TeamS2CPacket
,TeleportConfirmC2SPacket
,TitleS2CPacket
,UnloadChunkS2CPacket
,UnlockRecipesS2CPacket
,UpdateBeaconC2SPacket
,UpdateCommandBlockC2SPacket
,UpdateCommandBlockMinecartC2SPacket
,UpdateDifficultyC2SPacket
,UpdateDifficultyLockC2SPacket
,UpdateJigsawC2SPacket
,UpdatePlayerAbilitiesC2SPacket
,UpdateSelectedSlotC2SPacket
,UpdateSignC2SPacket
,UpdateStructureBlockC2SPacket
,VehicleMoveC2SPacket
,VehicleMoveS2CPacket
,WorldBorderS2CPacket
,WorldEventS2CPacket
,WorldTimeUpdateS2CPacket
public interface Packet<T extends PacketListener>
-
Method Summary
Modifier and Type Method Description void
apply(T listener)
default boolean
isWritingErrorSkippable()
Returns whether a throwable in writing of this packet allows the connection to simply skip the packet's sending than disconnecting.void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
-
Method Details
-
read
- Throws:
IOException
-
write
- Throws:
IOException
-
apply
-
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.
-