| Modifier and Type | Method and Description |
|---|---|
Packet |
MinecraftProtocol.createClientboundPacket(int id,
io.netty.buffer.ByteBuf buf,
PacketCodecHelper codecHelper) |
Packet |
MinecraftProtocol.createServerboundPacket(int id,
io.netty.buffer.ByteBuf buf,
PacketCodecHelper codecHelper) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Packet> |
MinecraftProtocol.getClientboundClass(int id) |
Class<? extends Packet> |
MinecraftProtocol.getServerboundClass(int id) |
| Modifier and Type | Method and Description |
|---|---|
int |
MinecraftProtocol.getClientboundId(Packet packet) |
int |
MinecraftProtocol.getServerboundId(Packet packet) |
void |
ServerListener.packetReceived(Session session,
Packet packet) |
void |
ClientListener.packetReceived(Session session,
Packet packet) |
void |
ServerListener.packetSent(Session session,
Packet packet) |
void |
ClientListener.packetSent(Session session,
Packet packet) |
| Modifier and Type | Method and Description |
|---|---|
int |
MinecraftProtocol.getClientboundId(Class<? extends Packet> packetClass) |
int |
MinecraftProtocol.getServerboundId(Class<? extends Packet> packetClass) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PacketFactory<T extends Packet,H extends PacketCodecHelper>
Factory for constructing
Packets. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
MinecraftPacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ClientIntentionPacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ClientboundAnimatePacket |
class |
ClientboundDamageEventPacket |
class |
ClientboundEntityEventPacket |
class |
ClientboundHurtAnimationPacket |
class |
ClientboundMoveEntityPosPacket |
class |
ClientboundMoveEntityPosRotPacket |
class |
ClientboundMoveEntityRotPacket |
class |
ClientboundMoveVehiclePacket |
class |
ClientboundRemoveEntitiesPacket |
class |
ClientboundRemoveMobEffectPacket |
class |
ClientboundRotateHeadPacket |
class |
ClientboundSetEntityDataPacket |
class |
ClientboundSetEntityLinkPacket |
class |
ClientboundSetEntityMotionPacket |
class |
ClientboundSetEquipmentPacket |
class |
ClientboundSetPassengersPacket |
class |
ClientboundTakeItemEntityPacket |
class |
ClientboundTeleportEntityPacket |
class |
ClientboundUpdateAttributesPacket |
class |
ClientboundUpdateMobEffectPacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ClientboundBlockChangedAckPacket |
class |
ClientboundPlayerAbilitiesPacket |
class |
ClientboundPlayerCombatEndPacket |
class |
ClientboundPlayerCombatEnterPacket |
class |
ClientboundPlayerCombatKillPacket |
class |
ClientboundPlayerLookAtPacket |
class |
ClientboundPlayerPositionPacket |
class |
ClientboundSetCarriedItemPacket |
class |
ClientboundSetExperiencePacket |
class |
ClientboundSetHealthPacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ClientboundAddEntityPacket |
class |
ClientboundAddExperienceOrbPacket |
class |
ClientboundAddPlayerPacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ClientboundContainerClosePacket |
class |
ClientboundContainerSetContentPacket |
class |
ClientboundContainerSetDataPacket |
class |
ClientboundContainerSetSlotPacket |
class |
ClientboundHorseScreenOpenPacket |
class |
ClientboundMerchantOffersPacket |
class |
ClientboundOpenBookPacket |
class |
ClientboundOpenScreenPacket |
class |
ClientboundPlaceGhostRecipePacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ClientboundBlockDestructionPacket |
class |
ClientboundBlockEntityDataPacket |
class |
ClientboundBlockEventPacket |
class |
ClientboundBlockUpdatePacket |
class |
ClientboundChunksBiomesPacket |
class |
ClientboundExplodePacket |
class |
ClientboundForgetLevelChunkPacket |
class |
ClientboundGameEventPacket |
class |
ClientboundLevelChunkWithLightPacket |
class |
ClientboundLevelEventPacket |
class |
ClientboundLevelParticlesPacket |
class |
ClientboundLightUpdatePacket |
class |
ClientboundMapItemDataPacket |
class |
ClientboundOpenSignEditorPacket |
class |
ClientboundSectionBlocksUpdatePacket |
class |
ClientboundSetChunkCacheCenterPacket |
class |
ClientboundSetChunkCacheRadiusPacket |
class |
ClientboundSetDefaultSpawnPositionPacket |
class |
ClientboundSetSimulationDistancePacket |
class |
ClientboundSetTimePacket |
class |
ClientboundSoundPacket |
class |
ClientboundTagQueryPacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ClientboundInitializeBorderPacket |
class |
ClientboundSetBorderCenterPacket |
class |
ClientboundSetBorderLerpSizePacket |
class |
ClientboundSetBorderSizePacket |
class |
ClientboundSetBorderWarningDelayPacket |
class |
ClientboundSetBorderWarningDistancePacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ClientboundSetDisplayObjectivePacket |
class |
ClientboundSetObjectivePacket |
class |
ClientboundSetPlayerTeamPacket |
class |
ClientboundSetScorePacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ClientboundClearTitlesPacket |
class |
ClientboundSetActionBarTextPacket |
class |
ClientboundSetSubtitleTextPacket |
class |
ClientboundSetTitlesAnimationPacket |
class |
ClientboundSetTitleTextPacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ServerboundChangeDifficultyPacket |
class |
ServerboundChatAckPacket |
class |
ServerboundChatCommandPacket |
class |
ServerboundChatPacket |
class |
ServerboundChatSessionUpdatePacket |
class |
ServerboundClientCommandPacket |
class |
ServerboundClientInformationPacket |
class |
ServerboundCommandSuggestionPacket |
class |
ServerboundCustomPayloadPacket |
class |
ServerboundKeepAlivePacket |
class |
ServerboundLockDifficultyPacket |
class |
ServerboundPongPacket |
class |
ServerboundResourcePackPacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ServerboundContainerButtonClickPacket |
class |
ServerboundContainerClickPacket |
class |
ServerboundContainerClosePacket |
class |
ServerboundEditBookPacket |
class |
ServerboundPickItemPacket |
class |
ServerboundPlaceRecipePacket |
class |
ServerboundRecipeBookChangeSettingsPacket |
class |
ServerboundRecipeBookSeenRecipePacket |
class |
ServerboundRenameItemPacket |
class |
ServerboundSeenAdvancementsPacket |
class |
ServerboundSelectTradePacket |
class |
ServerboundSetBeaconPacket |
class |
ServerboundSetCommandBlockPacket |
class |
ServerboundSetCommandMinecartPacket |
class |
ServerboundSetCreativeModeSlotPacket |
class |
ServerboundSetJigsawBlockPacket |
class |
ServerboundSetStructureBlockPacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ServerboundAcceptTeleportationPacket |
class |
ServerboundBlockEntityTagQuery |
class |
ServerboundEntityTagQuery |
class |
ServerboundJigsawGeneratePacket |
class |
ServerboundMoveVehiclePacket |
class |
ServerboundPaddleBoatPacket |
class |
ServerboundPlayerInputPacket |
class |
ServerboundSignUpdatePacket |
class |
ServerboundTeleportToEntityPacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ServerboundInteractPacket |
class |
ServerboundMovePlayerPosPacket |
class |
ServerboundMovePlayerPosRotPacket |
class |
ServerboundMovePlayerRotPacket |
class |
ServerboundMovePlayerStatusOnlyPacket |
class |
ServerboundPlayerAbilitiesPacket |
class |
ServerboundPlayerActionPacket |
class |
ServerboundPlayerCommandPacket |
class |
ServerboundSetCarriedItemPacket |
class |
ServerboundSwingPacket |
class |
ServerboundUseItemOnPacket |
class |
ServerboundUseItemPacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ClientboundCustomQueryPacket |
class |
ClientboundGameProfilePacket |
class |
ClientboundHelloPacket |
class |
ClientboundLoginCompressionPacket |
class |
ClientboundLoginDisconnectPacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ServerboundCustomQueryPacket |
class |
ServerboundHelloPacket |
class |
ServerboundKeyPacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ClientboundPongResponsePacket |
class |
ClientboundStatusResponsePacket |
| Modifier and Type | Class and Description |
|---|---|
class |
ServerboundPingRequestPacket |
class |
ServerboundStatusRequestPacket |
| Modifier and Type | Method and Description |
|---|---|
void |
Session.callPacketReceived(Packet packet)
Notifies all listeners that a packet was just received.
|
void |
Session.callPacketSent(Packet packet)
Notifies all listeners that a packet was just sent.
|
void |
Session.send(Packet packet)
Sends a packet.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PacketDefinition<T extends Packet,H extends PacketCodecHelper>
Represents a definition of a packet with various
information about it, such as it's id, class and
factory for construction.
|
interface |
PacketSerializer<T extends Packet,H extends PacketCodecHelper> |
| Modifier and Type | Method and Description |
|---|---|
<T extends Packet> |
PacketSendingEvent.getPacket()
Gets the packet involved in this event as the required type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SessionAdapter.packetReceived(Session session,
Packet packet) |
void |
SessionListener.packetReceived(Session session,
Packet packet)
Called when a session receives a packet.
|
void |
SessionAdapter.packetSent(Session session,
Packet packet) |
void |
SessionListener.packetSent(Session session,
Packet packet)
Called when a session sends a packet.
|
void |
PacketSendingEvent.setPacket(Packet packet)
Sets the packet that should be sent as a result of this event.
|
| Constructor and Description |
|---|
PacketSendingEvent(Session session,
Packet packet)
Creates a new PacketSendingEvent instance.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BufferedPacket |
| Modifier and Type | Method and Description |
|---|---|
<T extends Packet,H extends PacketCodecHelper> |
PacketProtocol.register(int id,
Class<T> packet,
PacketSerializer<T,H> serializer)
Registers a packet to this protocol as both serverbound and clientbound.
|
<T extends Packet,H extends PacketCodecHelper> |
PacketProtocol.registerClientbound(int id,
Class<T> packet,
PacketSerializer<T,H> serializer)
Registers a clientbound packet to this protocol.
|
<T extends Packet,H extends PacketCodecHelper> |
PacketProtocol.registerServerbound(int id,
Class<T> packet,
PacketSerializer<T,H> serializer)
Registers a serverbound packet to this protocol.
|
| Modifier and Type | Method and Description |
|---|---|
<H extends PacketCodecHelper> |
PacketProtocol.createClientboundPacket(int id,
io.netty.buffer.ByteBuf buf,
H codecHelper)
Creates a new instance of a clientbound packet with the given id and read the clientbound input.
|
<H extends PacketCodecHelper> |
PacketProtocol.createServerboundPacket(int id,
io.netty.buffer.ByteBuf buf,
H codecHelper)
Creates a new instance of a serverbound packet with the given id and read the serverbound input.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Packet> |
PacketProtocol.getClientboundClass(int id)
Gets the packet class for a packet id.
|
Class<? extends Packet> |
BufferedPacket.getPacketClass() |
Class<? extends Packet> |
PacketProtocol.getServerboundClass(int id)
Gets the packet class for a packet id.
|
| Modifier and Type | Method and Description |
|---|---|
int |
PacketProtocol.getClientboundId(Packet packet)
Gets the registered id of a clientbound
Packet instance. |
int |
PacketProtocol.getServerboundId(Packet packet)
Gets the registered id of a serverbound
Packet instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
PacketProtocol.getClientboundId(Class<? extends Packet> packetClass)
Gets the registered id of a clientbound packet class.
|
int |
PacketProtocol.getServerboundId(Class<? extends Packet> packetClass)
Gets the registered id of a serverbound packet class.
|
void |
PacketProtocol.register(PacketDefinition<? extends Packet,?> definition)
Registers a packet to this protocol as both serverbound and clientbound.
|
void |
PacketProtocol.registerClientbound(PacketDefinition<? extends Packet,?> definition)
Registers a clientbound packet to this protocol.
|
void |
PacketProtocol.registerServerbound(PacketDefinition<? extends Packet,?> definition)
Registers a serverbound packet to this protocol.
|
| Constructor and Description |
|---|
BufferedPacket(Class<? extends Packet> packetClass,
byte[] buf) |
| Modifier and Type | Method and Description |
|---|---|
void |
TcpSession.callPacketReceived(Packet packet) |
void |
TcpSession.callPacketSent(Packet packet) |
void |
TcpPacketCodec.encode(io.netty.channel.ChannelHandlerContext ctx,
Packet packet,
io.netty.buffer.ByteBuf buf) |
void |
TcpSession.send(Packet packet) |
Copyright © 2023. All rights reserved.