Packet Classes:
net.minecraft.network.protocol.handshake.ClientIntentionPacket
Packet Classes:
net.minecraft.network.protocol.game.ClientboundAddEntityPacketnet.minecraft.network.protocol.game.ClientboundAddExperienceOrbPacketnet.minecraft.network.protocol.game.ClientboundAddMobPacketnet.minecraft.network.protocol.game.ClientboundAddPaintingPacketnet.minecraft.network.protocol.game.ClientboundAddPlayerPacketnet.minecraft.network.protocol.game.ClientboundAnimatePacketnet.minecraft.network.protocol.game.ClientboundAwardStatsPacketnet.minecraft.network.protocol.game.ClientboundBlockBreakAckPacketnet.minecraft.network.protocol.game.ClientboundBlockDestructionPacketnet.minecraft.network.protocol.game.ClientboundBlockEntityDataPacketnet.minecraft.network.protocol.game.ClientboundBlockEventPacketnet.minecraft.network.protocol.game.ClientboundBlockUpdatePacketnet.minecraft.network.protocol.game.ClientboundBossEventPacketnet.minecraft.network.protocol.game.ClientboundChangeDifficultyPacketnet.minecraft.network.protocol.game.ClientboundChatPacketnet.minecraft.network.protocol.game.ClientboundCommandSuggestionsPacketnet.minecraft.network.protocol.game.ClientboundCommandsPacketnet.minecraft.network.protocol.game.ClientboundContainerAckPacketnet.minecraft.network.protocol.game.ClientboundContainerClosePacketnet.minecraft.network.protocol.game.ClientboundContainerSetContentPacketnet.minecraft.network.protocol.game.ClientboundContainerSetDataPacketnet.minecraft.network.protocol.game.ClientboundContainerSetSlotPacketnet.minecraft.network.protocol.game.ClientboundCooldownPacketnet.minecraft.network.protocol.game.ClientboundCustomPayloadPacketnet.minecraft.network.protocol.game.ClientboundCustomSoundPacketnet.minecraft.network.protocol.game.ClientboundDisconnectPacketnet.minecraft.network.protocol.game.ClientboundEntityEventPacketnet.minecraft.network.protocol.game.ClientboundExplodePacketnet.minecraft.network.protocol.game.ClientboundForgetLevelChunkPacketnet.minecraft.network.protocol.game.ClientboundGameEventPacketnet.minecraft.network.protocol.game.ClientboundHorseScreenOpenPacketnet.minecraft.network.protocol.game.ClientboundKeepAlivePacketnet.minecraft.network.protocol.game.ClientboundLevelChunkPacketnet.minecraft.network.protocol.game.ClientboundLevelEventPacketnet.minecraft.network.protocol.game.ClientboundLevelParticlesPacketnet.minecraft.network.protocol.game.ClientboundLightUpdatePacketnet.minecraft.network.protocol.game.ClientboundLoginPacketnet.minecraft.network.protocol.game.ClientboundMapItemDataPacketnet.minecraft.network.protocol.game.ClientboundMerchantOffersPacketnet.minecraft.network.protocol.game.ClientboundMoveEntityPacket$Posnet.minecraft.network.protocol.game.ClientboundMoveEntityPacket$PosRotnet.minecraft.network.protocol.game.ClientboundMoveEntityPacket$Rotnet.minecraft.network.protocol.game.ClientboundMoveEntityPacketnet.minecraft.network.protocol.game.ClientboundMoveVehiclePacketnet.minecraft.network.protocol.game.ClientboundOpenBookPacketnet.minecraft.network.protocol.game.ClientboundOpenScreenPacketnet.minecraft.network.protocol.game.ClientboundOpenSignEditorPacketnet.minecraft.network.protocol.game.ClientboundPlaceGhostRecipePacketnet.minecraft.network.protocol.game.ClientboundPlayerAbilitiesPacketnet.minecraft.network.protocol.game.ClientboundPlayerCombatPacketnet.minecraft.network.protocol.game.ClientboundPlayerInfoPacketnet.minecraft.network.protocol.game.ClientboundPlayerLookAtPacketnet.minecraft.network.protocol.game.ClientboundPlayerPositionPacketnet.minecraft.network.protocol.game.ClientboundRecipePacketnet.minecraft.network.protocol.game.ClientboundRemoveEntitiesPacketnet.minecraft.network.protocol.game.ClientboundRemoveMobEffectPacketnet.minecraft.network.protocol.game.ClientboundResourcePackPacketnet.minecraft.network.protocol.game.ClientboundRespawnPacketnet.minecraft.network.protocol.game.ClientboundRotateHeadPacketnet.minecraft.network.protocol.game.ClientboundSectionBlocksUpdatePacketnet.minecraft.network.protocol.game.ClientboundSelectAdvancementsTabPacketnet.minecraft.network.protocol.game.ClientboundSetBorderPacketnet.minecraft.network.protocol.game.ClientboundSetCameraPacketnet.minecraft.network.protocol.game.ClientboundSetCarriedItemPacketnet.minecraft.network.protocol.game.ClientboundSetChunkCacheCenterPacketnet.minecraft.network.protocol.game.ClientboundSetChunkCacheRadiusPacketnet.minecraft.network.protocol.game.ClientboundSetDefaultSpawnPositionPacketnet.minecraft.network.protocol.game.ClientboundSetDisplayObjectivePacketnet.minecraft.network.protocol.game.ClientboundSetEntityDataPacketnet.minecraft.network.protocol.game.ClientboundSetEntityLinkPacketnet.minecraft.network.protocol.game.ClientboundSetEntityMotionPacketnet.minecraft.network.protocol.game.ClientboundSetEquipmentPacketnet.minecraft.network.protocol.game.ClientboundSetExperiencePacketnet.minecraft.network.protocol.game.ClientboundSetHealthPacketnet.minecraft.network.protocol.game.ClientboundSetObjectivePacketnet.minecraft.network.protocol.game.ClientboundSetPassengersPacketnet.minecraft.network.protocol.game.ClientboundSetPlayerTeamPacketnet.minecraft.network.protocol.game.ClientboundSetScorePacketnet.minecraft.network.protocol.game.ClientboundSetTimePacketnet.minecraft.network.protocol.game.ClientboundSetTitlesPacketnet.minecraft.network.protocol.game.ClientboundSoundEntityPacketnet.minecraft.network.protocol.game.ClientboundSoundPacketnet.minecraft.network.protocol.game.ClientboundStopSoundPacketnet.minecraft.network.protocol.game.ClientboundTabListPacketnet.minecraft.network.protocol.game.ClientboundTagQueryPacketnet.minecraft.network.protocol.game.ClientboundTakeItemEntityPacketnet.minecraft.network.protocol.game.ClientboundTeleportEntityPacketnet.minecraft.network.protocol.game.ClientboundUpdateAdvancementsPacketnet.minecraft.network.protocol.game.ClientboundUpdateAttributesPacketnet.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacketnet.minecraft.network.protocol.game.ClientboundUpdateRecipesPacketnet.minecraft.network.protocol.game.ClientboundUpdateTagsPacketnet.minecraft.network.protocol.game.ServerboundAcceptTeleportationPacketnet.minecraft.network.protocol.game.ServerboundBlockEntityTagQuerynet.minecraft.network.protocol.game.ServerboundChangeDifficultyPacketnet.minecraft.network.protocol.game.ServerboundChatPacketnet.minecraft.network.protocol.game.ServerboundClientCommandPacketnet.minecraft.network.protocol.game.ServerboundClientInformationPacketnet.minecraft.network.protocol.game.ServerboundCommandSuggestionPacketnet.minecraft.network.protocol.game.ServerboundContainerAckPacketnet.minecraft.network.protocol.game.ServerboundContainerButtonClickPacketnet.minecraft.network.protocol.game.ServerboundContainerClickPacketnet.minecraft.network.protocol.game.ServerboundContainerClosePacketnet.minecraft.network.protocol.game.ServerboundCustomPayloadPacketnet.minecraft.network.protocol.game.ServerboundEditBookPacketnet.minecraft.network.protocol.game.ServerboundEntityTagQuerynet.minecraft.network.protocol.game.ServerboundInteractPacketnet.minecraft.network.protocol.game.ServerboundJigsawGeneratePacketnet.minecraft.network.protocol.game.ServerboundKeepAlivePacketnet.minecraft.network.protocol.game.ServerboundLockDifficultyPacketnet.minecraft.network.protocol.game.ServerboundMovePlayerPacket$Posnet.minecraft.network.protocol.game.ServerboundMovePlayerPacket$PosRotnet.minecraft.network.protocol.game.ServerboundMovePlayerPacket$Rotnet.minecraft.network.protocol.game.ServerboundMovePlayerPacketnet.minecraft.network.protocol.game.ServerboundMoveVehiclePacketnet.minecraft.network.protocol.game.ServerboundPaddleBoatPacketnet.minecraft.network.protocol.game.ServerboundPickItemPacketnet.minecraft.network.protocol.game.ServerboundPlaceRecipePacketnet.minecraft.network.protocol.game.ServerboundPlayerAbilitiesPacketnet.minecraft.network.protocol.game.ServerboundPlayerActionPacketnet.minecraft.network.protocol.game.ServerboundPlayerCommandPacketnet.minecraft.network.protocol.game.ServerboundPlayerInputPacketnet.minecraft.network.protocol.game.ServerboundRecipeBookChangeSettingsPacketnet.minecraft.network.protocol.game.ServerboundRecipeBookSeenRecipePacketnet.minecraft.network.protocol.game.ServerboundRenameItemPacketnet.minecraft.network.protocol.game.ServerboundResourcePackPacketnet.minecraft.network.protocol.game.ServerboundSeenAdvancementsPacketnet.minecraft.network.protocol.game.ServerboundSelectTradePacketnet.minecraft.network.protocol.game.ServerboundSetBeaconPacketnet.minecraft.network.protocol.game.ServerboundSetCarriedItemPacketnet.minecraft.network.protocol.game.ServerboundSetCommandBlockPacketnet.minecraft.network.protocol.game.ServerboundSetCommandMinecartPacketnet.minecraft.network.protocol.game.ServerboundSetCreativeModeSlotPacketnet.minecraft.network.protocol.game.ServerboundSetJigsawBlockPacketnet.minecraft.network.protocol.game.ServerboundSetStructureBlockPacketnet.minecraft.network.protocol.game.ServerboundSignUpdatePacketnet.minecraft.network.protocol.game.ServerboundSwingPacketnet.minecraft.network.protocol.game.ServerboundTeleportToEntityPacketnet.minecraft.network.protocol.game.ServerboundUseItemOnPacketnet.minecraft.network.protocol.game.ServerboundUseItemPacket
Packet Classes:
net.minecraft.network.protocol.status.ServerboundStatusRequestPacketnet.minecraft.network.protocol.status.ServerboundPingRequestPacketnet.minecraft.network.protocol.status.ClientboundStatusResponsePacketnet.minecraft.network.protocol.status.ClientboundPongResponsePacket
Packet Classes:
net.minecraft.network.protocol.login.ClientboundLoginDisconnectPacketnet.minecraft.network.protocol.login.ClientboundHelloPacketnet.minecraft.network.protocol.login.ClientboundGameProfilePacketnet.minecraft.network.protocol.login.ClientboundLoginCompressionPacketnet.minecraft.network.protocol.login.ClientboundCustomQueryPacketnet.minecraft.network.protocol.login.ServerboundHelloPacketnet.minecraft.network.protocol.login.ServerboundKeyPacketnet.minecraft.network.protocol.login.ServerboundCustomQueryPacket
| Field Name | Field Type |
|---|---|
| time | J |
- time:
[readLong()J]
Example read:
public void read(ByteBuf byteBuf) {
this.time = byteBuf.readLong();
}- time:
[writeLong(J)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeLong(this.time);
}| Field Name | Field Type |
|---|---|
| time | J |
- time:
[readLong()J]
Example read:
public void read(ByteBuf byteBuf) {
this.time = byteBuf.readLong();
}- time:
[writeLong(J)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeLong(this.time);
}| Field Name | Field Type |
|---|---|
| status | Lnet/minecraft/network/protocol/status/ServerStatus; |
- status:
[readUtf(I)Ljava/lang/String;]
Example read:
public void read(ByteBuf byteBuf) {
this.status = byteBuf.readUtf();
}- status:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeUtf(this.status);
}| Field Name | Field Type |
|---|---|
| gameProfile | Lcom/mojang/authlib/GameProfile; |
- gameProfile:
[readUtf(I)Ljava/lang/String;]
Example read:
public void read(ByteBuf byteBuf) {
this.gameProfile = byteBuf.readUtf();
}- gameProfile:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeUtf(this.gameProfile);
}| Field Name | Field Type |
|---|---|
| keybytes | [B |
| nonce | [B |
- keybytes:
[readByteArray()[B] - nonce:
[readByteArray()[B]
Example read:
public void read(ByteBuf byteBuf) {
this.keybytes = byteBuf.readByteArray();
this.nonce = byteBuf.readByteArray();
}- keybytes:
[writeByteArray([B)Lnet/minecraft/network/FriendlyByteBuf;] - nonce:
[writeByteArray([B)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByteArray(this.keybytes);
byteBuf.writeByteArray(this.nonce);
}| Field Name | Field Type |
|---|---|
| hand | Lnet/minecraft/world/InteractionHand; |
- hand:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;]
Example read:
public void read(ByteBuf byteBuf) {
this.hand = byteBuf.readEnum();
}- hand:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeEnum(this.hand);
}| Field Name | Field Type |
|---|---|
| transactionId | I |
| data | Lnet/minecraft/network/FriendlyByteBuf; |
- transactionId:
[readVarInt()I] - data:
[readBoolean()Z, readBytes(I)Lio/netty/buffer/ByteBuf;]
Example read:
public void read(ByteBuf byteBuf) {
this.transactionId = byteBuf.readVarInt();
this.data = byteBuf.readBoolean();
}- transactionId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - data:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - data:
[writeBytes(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.transactionId);
byteBuf.writeBoolean(this.data);
byteBuf.writeBytes(this.data);
}| Field Name | Field Type |
|---|---|
| reason | Lnet/minecraft/network/chat/Component; |
- reason:
[readUtf(I)Ljava/lang/String;]
Example read:
public void read(ByteBuf byteBuf) {
this.reason = byteBuf.readUtf();
}- reason:
[writeComponent(Lnet/minecraft/network/chat/Component;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeComponent(this.reason);
}| Field Name | Field Type |
|---|---|
| blockHit | Lnet/minecraft/world/phys/BlockHitResult; |
| hand | Lnet/minecraft/world/InteractionHand; |
- hand:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - blockHit:
[readBlockHitResult()Lnet/minecraft/world/phys/BlockHitResult;]
Example read:
public void read(ByteBuf byteBuf) {
this.hand = byteBuf.readEnum();
this.blockHit = byteBuf.readBlockHitResult();
}- hand:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - blockHit:
[writeBlockHitResult(Lnet/minecraft/world/phys/BlockHitResult;)V]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeEnum(this.hand);
byteBuf.writeBlockHitResult(this.blockHit);
}| Field Name | Field Type |
|---|---|
| serverId | Ljava/lang/String; |
| publicKey | [B |
| nonce | [B |
- serverId:
[readUtf(I)Ljava/lang/String;] - publicKey:
[readByteArray()[B] - nonce:
[readByteArray()[B]
Example read:
public void read(ByteBuf byteBuf) {
this.serverId = byteBuf.readUtf();
this.publicKey = byteBuf.readByteArray();
this.nonce = byteBuf.readByteArray();
}- serverId:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - publicKey:
[writeByteArray([B)Lnet/minecraft/network/FriendlyByteBuf;] - nonce:
[writeByteArray([B)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeUtf(this.serverId);
byteBuf.writeByteArray(this.publicKey);
byteBuf.writeByteArray(this.nonce);
}| Field Name | Field Type |
|---|---|
| uuid | Ljava/util/UUID; |
- uuid:
[readUUID()Ljava/util/UUID;]
Example read:
public void read(ByteBuf byteBuf) {
this.uuid = byteBuf.readUUID();
}- uuid:
[writeUUID(Ljava/util/UUID;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeUUID(this.uuid);
}| Field Name | Field Type |
|---|---|
| hand | Lnet/minecraft/world/InteractionHand; |
- hand:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;]
Example read:
public void read(ByteBuf byteBuf) {
this.hand = byteBuf.readEnum();
}- hand:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeEnum(this.hand);
}| Field Name | Field Type |
|---|---|
| protocolVersion | I |
| hostName | Ljava/lang/String; |
| port | I |
| intention | Lnet/minecraft/network/ConnectionProtocol; |
- protocolVersion:
[readVarInt()I] - hostName:
[readUtf(I)Ljava/lang/String;] - port:
[readUnsignedShort()I] - intention:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.protocolVersion = byteBuf.readVarInt();
this.hostName = byteBuf.readUtf();
this.port = byteBuf.readUnsignedShort();
this.intention = byteBuf.readVarInt();
}- protocolVersion:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - hostName:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - port:
[writeShort(I)Lio/netty/buffer/ByteBuf;] - intention:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.protocolVersion);
byteBuf.writeUtf(this.hostName);
byteBuf.writeShort(this.port);
byteBuf.writeVarInt(this.intention);
}| Field Name | Field Type |
|---|---|
| transactionId | I |
| identifier | Lnet/minecraft/resources/ResourceLocation; |
| data | Lnet/minecraft/network/FriendlyByteBuf; |
- transactionId:
[readVarInt()I] - identifier:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;] - data:
[readBytes(I)Lio/netty/buffer/ByteBuf;]
Example read:
public void read(ByteBuf byteBuf) {
this.transactionId = byteBuf.readVarInt();
this.identifier = byteBuf.readResourceLocation();
this.data = byteBuf.readBytes();
}- transactionId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - identifier:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;] - data:
[writeBytes(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.transactionId);
byteBuf.writeResourceLocation(this.identifier);
byteBuf.writeBytes(this.data);
}| Field Name | Field Type |
|---|---|
| pos | Lnet/minecraft/core/BlockPos; |
| lines | [Ljava/lang/String; |
- pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;]
Example read:
public void read(ByteBuf byteBuf) {
this.pos = byteBuf.readBlockPos();
}- pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;] - lines:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeBlockPos(this.pos);
byteBuf.writeUtf(this.lines);
}| Field Name | Field Type |
|---|---|
| gameProfile | Lcom/mojang/authlib/GameProfile; |
- gameProfile:
[readInt()I, readUtf(I)Ljava/lang/String;]
Example read:
public void read(ByteBuf byteBuf) {
this.gameProfile = byteBuf.readInt();
}- gameProfile:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - gameProfile:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeInt(this.gameProfile);
byteBuf.writeUtf(this.gameProfile);
}| Field Name | Field Type |
|---|---|
| entity | I |
| command | Ljava/lang/String; |
| trackOutput | Z |
- entity:
[readVarInt()I] - command:
[readUtf(I)Ljava/lang/String;] - trackOutput:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.entity = byteBuf.readVarInt();
this.command = byteBuf.readUtf();
this.trackOutput = byteBuf.readBoolean();
}- entity:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - command:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - trackOutput:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.entity);
byteBuf.writeUtf(this.command);
byteBuf.writeBoolean(this.trackOutput);
}| Field Name | Field Type |
|---|---|
| primary | I |
| secondary | I |
- primary:
[readVarInt()I] - secondary:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.primary = byteBuf.readVarInt();
this.secondary = byteBuf.readVarInt();
}- primary:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - secondary:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.primary);
byteBuf.writeVarInt(this.secondary);
}| Field Name | Field Type |
|---|---|
| pos | Lnet/minecraft/core/BlockPos; |
| command | Ljava/lang/String; |
| trackOutput | Z |
| conditional | Z |
| automatic | Z |
| mode | Lnet/minecraft/world/level/block/entity/CommandBlockEntity$Mode; |
- pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;] - command:
[readUtf(I)Ljava/lang/String;] - mode:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - trackOutput:
[readByte()B]
Example read:
public void read(ByteBuf byteBuf) {
this.pos = byteBuf.readBlockPos();
this.command = byteBuf.readUtf();
this.mode = byteBuf.readEnum();
this.trackOutput = byteBuf.readByte();
}- pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;] - command:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - mode:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - automatic:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeBlockPos(this.pos);
byteBuf.writeUtf(this.command);
byteBuf.writeEnum(this.mode);
byteBuf.writeByte(this.automatic);
}| Field Name | Field Type |
|---|---|
| action | Lnet/minecraft/network/protocol/game/ServerboundResourcePackPacket$Action; |
- action:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;]
Example read:
public void read(ByteBuf byteBuf) {
this.action = byteBuf.readEnum();
}- action:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeEnum(this.action);
}| Field Name | Field Type |
|---|---|
| action | Lnet/minecraft/network/protocol/game/ServerboundSeenAdvancementsPacket$Action; |
| tab | Lnet/minecraft/resources/ResourceLocation; |
- action:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - tab:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;]
Example read:
public void read(ByteBuf byteBuf) {
this.action = byteBuf.readEnum();
this.tab = byteBuf.readResourceLocation();
}- action:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - tab:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeEnum(this.action);
byteBuf.writeResourceLocation(this.tab);
}| Field Name | Field Type |
|---|---|
| recipe | Lnet/minecraft/resources/ResourceLocation; |
- recipe:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;]
Example read:
public void read(ByteBuf byteBuf) {
this.recipe = byteBuf.readResourceLocation();
}- recipe:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeResourceLocation(this.recipe);
}| Field Name | Field Type |
|---|---|
| name | Ljava/lang/String; |
- name:
[readUtf(I)Ljava/lang/String;]
Example read:
public void read(ByteBuf byteBuf) {
this.name = byteBuf.readUtf();
}- name:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeUtf(this.name);
}| Field Name | Field Type |
|---|---|
| bookType | Lnet/minecraft/world/inventory/RecipeBookType; |
| isOpen | Z |
| isFiltering | Z |
- bookType:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - isOpen:
[readBoolean()Z] - isFiltering:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.bookType = byteBuf.readEnum();
this.isOpen = byteBuf.readBoolean();
this.isFiltering = byteBuf.readBoolean();
}- bookType:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - isOpen:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - isFiltering:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeEnum(this.bookType);
byteBuf.writeBoolean(this.isOpen);
byteBuf.writeBoolean(this.isFiltering);
}| Field Name | Field Type |
|---|---|
| xxa | F |
| zza | F |
| isJumping | Z |
| isShiftKeyDown | Z |
- xxa:
[readFloat()F] - zza:
[readFloat()F] - isJumping:
[readByte()B]
Example read:
public void read(ByteBuf byteBuf) {
this.xxa = byteBuf.readFloat();
this.zza = byteBuf.readFloat();
this.isJumping = byteBuf.readByte();
}- xxa:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - zza:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - isShiftKeyDown:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeFloat(this.xxa);
byteBuf.writeFloat(this.zza);
byteBuf.writeByte(this.isShiftKeyDown);
}| Field Name | Field Type |
|---|---|
| id | I |
| action | Lnet/minecraft/network/protocol/game/ServerboundPlayerCommandPacket$Action; |
| data | I |
- id:
[readVarInt()I] - action:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - data:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readVarInt();
this.action = byteBuf.readEnum();
this.data = byteBuf.readVarInt();
}- id:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - action:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - data:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.id);
byteBuf.writeEnum(this.action);
byteBuf.writeVarInt(this.data);
}| Field Name | Field Type |
|---|---|
| pos | Lnet/minecraft/core/BlockPos; |
| direction | Lnet/minecraft/core/Direction; |
| action | Lnet/minecraft/network/protocol/game/ServerboundPlayerActionPacket$Action; |
- action:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;] - direction:
[readUnsignedByte()S]
Example read:
public void read(ByteBuf byteBuf) {
this.action = byteBuf.readEnum();
this.pos = byteBuf.readBlockPos();
this.direction = byteBuf.readUnsignedByte();
}- action:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;] - direction:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeEnum(this.action);
byteBuf.writeBlockPos(this.pos);
byteBuf.writeByte(this.direction);
}| Field Name | Field Type |
|---|---|
| containerId | I |
| recipe | Lnet/minecraft/resources/ResourceLocation; |
| shiftDown | Z |
- containerId:
[readByte()B] - recipe:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;] - shiftDown:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.containerId = byteBuf.readByte();
this.recipe = byteBuf.readResourceLocation();
this.shiftDown = byteBuf.readBoolean();
}- containerId:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - recipe:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;] - shiftDown:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.containerId);
byteBuf.writeResourceLocation(this.recipe);
byteBuf.writeBoolean(this.shiftDown);
}| Field Name | Field Type |
|---|---|
| compressionThreshold | I |
- compressionThreshold:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.compressionThreshold = byteBuf.readVarInt();
}- compressionThreshold:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.compressionThreshold);
}| Field Name | Field Type |
|---|---|
| pos | Lnet/minecraft/core/BlockPos; |
| name | Lnet/minecraft/resources/ResourceLocation; |
| target | Lnet/minecraft/resources/ResourceLocation; |
| pool | Lnet/minecraft/resources/ResourceLocation; |
| finalState | Ljava/lang/String; |
| joint | Lnet/minecraft/world/level/block/entity/JigsawBlockEntity$JointType; |
- pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;] - name:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;] - target:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;] - pool:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;] - finalState:
[readUtf(I)Ljava/lang/String;] - joint:
[readUtf(I)Ljava/lang/String;]
Example read:
public void read(ByteBuf byteBuf) {
this.pos = byteBuf.readBlockPos();
this.name = byteBuf.readResourceLocation();
this.target = byteBuf.readResourceLocation();
this.pool = byteBuf.readResourceLocation();
this.finalState = byteBuf.readUtf();
this.joint = byteBuf.readUtf();
}- pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;] - name:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;] - target:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;] - pool:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;] - finalState:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - joint:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeBlockPos(this.pos);
byteBuf.writeResourceLocation(this.name);
byteBuf.writeResourceLocation(this.target);
byteBuf.writeResourceLocation(this.pool);
byteBuf.writeUtf(this.finalState);
byteBuf.writeUtf(this.joint);
}| Field Name | Field Type |
|---|---|
| slot | I |
- slot:
[readShort()S]
Example read:
public void read(ByteBuf byteBuf) {
this.slot = byteBuf.readShort();
}- slot:
[writeShort(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeShort(this.slot);
}| Field Name | Field Type |
|---|---|
| isFlying | Z |
- isFlying:
[readByte()B]
Example read:
public void read(ByteBuf byteBuf) {
this.isFlying = byteBuf.readByte();
}- isFlying:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.isFlying);
}| Field Name | Field Type |
|---|---|
| slot | I |
- slot:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.slot = byteBuf.readVarInt();
}- slot:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.slot);
}| Field Name | Field Type |
|---|---|
| left | Z |
| right | Z |
- left:
[readBoolean()Z] - right:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.left = byteBuf.readBoolean();
this.right = byteBuf.readBoolean();
}- left:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - right:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeBoolean(this.left);
byteBuf.writeBoolean(this.right);
}| Field Name | Field Type |
|---|---|
| item | I |
- item:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.item = byteBuf.readVarInt();
}- item:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.item);
}| Field Name | Field Type |
|---|---|
| slotNum | I |
| itemStack | Lnet/minecraft/world/item/ItemStack; |
- slotNum:
[readShort()S] - itemStack:
[readItem()Lnet/minecraft/world/item/ItemStack;]
Example read:
public void read(ByteBuf byteBuf) {
this.slotNum = byteBuf.readShort();
this.itemStack = byteBuf.readItem();
}- slotNum:
[writeShort(I)Lio/netty/buffer/ByteBuf;] - itemStack:
[writeItem(Lnet/minecraft/world/item/ItemStack;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeShort(this.slotNum);
byteBuf.writeItem(this.itemStack);
}| Field Name | Field Type |
|---|---|
| x | D |
| y | D |
| z | D |
| yRot | F |
| xRot | F |
- x:
[readDouble()D] - y:
[readDouble()D] - z:
[readDouble()D] - yRot:
[readFloat()F] - xRot:
[readFloat()F]
Example read:
public void read(ByteBuf byteBuf) {
this.x = byteBuf.readDouble();
this.y = byteBuf.readDouble();
this.z = byteBuf.readDouble();
this.yRot = byteBuf.readFloat();
this.xRot = byteBuf.readFloat();
}- x:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - y:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - z:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - yRot:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - xRot:
[writeFloat(F)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeDouble(this.x);
byteBuf.writeDouble(this.y);
byteBuf.writeDouble(this.z);
byteBuf.writeFloat(this.yRot);
byteBuf.writeFloat(this.xRot);
}| Field Name | Field Type |
|---|---|
| pos | Lnet/minecraft/core/BlockPos; |
| updateType | Lnet/minecraft/world/level/block/entity/StructureBlockEntity$UpdateType; |
| mode | Lnet/minecraft/world/level/block/state/properties/StructureMode; |
| name | Ljava/lang/String; |
| offset | Lnet/minecraft/core/BlockPos; |
| size | Lnet/minecraft/core/BlockPos; |
| mirror | Lnet/minecraft/world/level/block/Mirror; |
| rotation | Lnet/minecraft/world/level/block/Rotation; |
| data | Ljava/lang/String; |
| ignoreEntities | Z |
| showAir | Z |
| showBoundingBox | Z |
| integrity | F |
| seed | J |
- pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;] - updateType:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - mode:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - name:
[readUtf(I)Ljava/lang/String;] - offset:
[readByte()B, readByte()B, readByte()B] - size:
[readByte()B, readByte()B, readByte()B] - mirror:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - rotation:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - data:
[readUtf(I)Ljava/lang/String;] - integrity:
[readFloat()F] - seed:
[readVarLong()J] - ignoreEntities:
[readByte()B]
Example read:
public void read(ByteBuf byteBuf) {
this.pos = byteBuf.readBlockPos();
this.updateType = byteBuf.readEnum();
this.mode = byteBuf.readEnum();
this.name = byteBuf.readUtf();
this.offset = byteBuf.readByte();
this.size = byteBuf.readByte();
this.mirror = byteBuf.readEnum();
this.rotation = byteBuf.readEnum();
this.data = byteBuf.readUtf();
this.integrity = byteBuf.readFloat();
this.seed = byteBuf.readVarLong();
this.ignoreEntities = byteBuf.readByte();
}- pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;] - updateType:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - mode:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - name:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - offset:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - offset:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - offset:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - size:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - size:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - size:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - mirror:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - rotation:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - data:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - integrity:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - seed:
[writeVarLong(J)Lnet/minecraft/network/FriendlyByteBuf;] - showBoundingBox:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeBlockPos(this.pos);
byteBuf.writeEnum(this.updateType);
byteBuf.writeEnum(this.mode);
byteBuf.writeUtf(this.name);
byteBuf.writeByte(this.offset);
byteBuf.writeByte(this.offset);
byteBuf.writeByte(this.offset);
byteBuf.writeByte(this.size);
byteBuf.writeByte(this.size);
byteBuf.writeByte(this.size);
byteBuf.writeEnum(this.mirror);
byteBuf.writeEnum(this.rotation);
byteBuf.writeUtf(this.data);
byteBuf.writeFloat(this.integrity);
byteBuf.writeVarLong(this.seed);
byteBuf.writeByte(this.showBoundingBox);
}| Field Name | Field Type |
|---|---|
| x | D |
| y | D |
| z | D |
| yRot | F |
| xRot | F |
| onGround | Z |
| hasPos | Z |
| hasRot | Z |
- onGround:
[readUnsignedByte()S]
Example read:
public void read(ByteBuf byteBuf) {
this.onGround = byteBuf.readUnsignedByte();
}- onGround:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.onGround);
}| Field Name | Field Type |
|---|---|
| id | J |
- id:
[readLong()J]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readLong();
}- id:
[writeLong(J)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeLong(this.id);
}| Field Name | Field Type |
|---|---|
| locked | Z |
- locked:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.locked = byteBuf.readBoolean();
}- locked:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeBoolean(this.locked);
}| Field Name | Field Type |
|---|---|
| transactionId | I |
| entityId | I |
- transactionId:
[readVarInt()I] - entityId:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.transactionId = byteBuf.readVarInt();
this.entityId = byteBuf.readVarInt();
}- transactionId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - entityId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.transactionId);
byteBuf.writeVarInt(this.entityId);
}| Field Name | Field Type |
|---|---|
| pos | Lnet/minecraft/core/BlockPos; |
| levels | I |
| keepJigsaws | Z |
- pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;] - levels:
[readVarInt()I] - keepJigsaws:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.pos = byteBuf.readBlockPos();
this.levels = byteBuf.readVarInt();
this.keepJigsaws = byteBuf.readBoolean();
}- pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;] - levels:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - keepJigsaws:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeBlockPos(this.pos);
byteBuf.writeVarInt(this.levels);
byteBuf.writeBoolean(this.keepJigsaws);
}| Field Name | Field Type |
|---|---|
| book | Lnet/minecraft/world/item/ItemStack; |
| signing | Z |
| slot | I |
- book:
[readItem()Lnet/minecraft/world/item/ItemStack;] - signing:
[readBoolean()Z] - slot:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.book = byteBuf.readItem();
this.signing = byteBuf.readBoolean();
this.slot = byteBuf.readVarInt();
}- book:
[writeItem(Lnet/minecraft/world/item/ItemStack;)Lnet/minecraft/network/FriendlyByteBuf;] - signing:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - slot:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeItem(this.book);
byteBuf.writeBoolean(this.signing);
byteBuf.writeVarInt(this.slot);
}| Field Name | Field Type |
|---|---|
| containerId | I |
- containerId:
[readByte()B]
Example read:
public void read(ByteBuf byteBuf) {
this.containerId = byteBuf.readByte();
}- containerId:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.containerId);
}| Field Name | Field Type |
|---|---|
| id | I |
| command | Ljava/lang/String; |
- id:
[readVarInt()I] - command:
[readUtf(I)Ljava/lang/String;]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readVarInt();
this.command = byteBuf.readUtf();
}- id:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - command:
[writeUtf(Ljava/lang/String;I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.id);
byteBuf.writeUtf(this.command);
}| Field Name | Field Type |
|---|---|
| containerId | I |
| slotNum | I |
| buttonNum | I |
| uid | S |
| itemStack | Lnet/minecraft/world/item/ItemStack; |
| clickType | Lnet/minecraft/world/inventory/ClickType; |
- containerId:
[readByte()B] - slotNum:
[readShort()S] - buttonNum:
[readByte()B] - uid:
[readShort()S] - clickType:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - itemStack:
[readItem()Lnet/minecraft/world/item/ItemStack;]
Example read:
public void read(ByteBuf byteBuf) {
this.containerId = byteBuf.readByte();
this.slotNum = byteBuf.readShort();
this.buttonNum = byteBuf.readByte();
this.uid = byteBuf.readShort();
this.clickType = byteBuf.readEnum();
this.itemStack = byteBuf.readItem();
}- containerId:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - slotNum:
[writeShort(I)Lio/netty/buffer/ByteBuf;] - buttonNum:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - uid:
[writeShort(I)Lio/netty/buffer/ByteBuf;] - clickType:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - itemStack:
[writeItem(Lnet/minecraft/world/item/ItemStack;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.containerId);
byteBuf.writeShort(this.slotNum);
byteBuf.writeByte(this.buttonNum);
byteBuf.writeShort(this.uid);
byteBuf.writeEnum(this.clickType);
byteBuf.writeItem(this.itemStack);
}| Field Name | Field Type |
|---|---|
| entityId | I |
| action | Lnet/minecraft/network/protocol/game/ServerboundInteractPacket$Action; |
| location | Lnet/minecraft/world/phys/Vec3; |
| hand | Lnet/minecraft/world/InteractionHand; |
| usingSecondaryAction | Z |
- entityId:
[readVarInt()I] - action:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - location:
[readFloat()F, readFloat()F, readFloat()F] - hand:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - usingSecondaryAction:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.entityId = byteBuf.readVarInt();
this.action = byteBuf.readEnum();
this.location = byteBuf.readFloat();
this.hand = byteBuf.readEnum();
this.usingSecondaryAction = byteBuf.readBoolean();
}- entityId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - action:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - x:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - y:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - z:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - hand:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - usingSecondaryAction:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.entityId);
byteBuf.writeEnum(this.action);
byteBuf.writeFloat(this.x);
byteBuf.writeFloat(this.y);
byteBuf.writeFloat(this.z);
byteBuf.writeEnum(this.hand);
byteBuf.writeBoolean(this.usingSecondaryAction);
}| Field Name | Field Type |
|---|---|
| containerId | I |
| uid | S |
| accepted | Z |
- containerId:
[readByte()B] - uid:
[readShort()S] - accepted:
[readByte()B]
Example read:
public void read(ByteBuf byteBuf) {
this.containerId = byteBuf.readByte();
this.uid = byteBuf.readShort();
this.accepted = byteBuf.readByte();
}- containerId:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - uid:
[writeShort(I)Lio/netty/buffer/ByteBuf;] - accepted:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.containerId);
byteBuf.writeShort(this.uid);
byteBuf.writeByte(this.accepted);
}| Field Name | Field Type |
|---|---|
| action | Lnet/minecraft/network/protocol/game/ServerboundClientCommandPacket$Action; |
- action:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;]
Example read:
public void read(ByteBuf byteBuf) {
this.action = byteBuf.readEnum();
}- action:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeEnum(this.action);
}| Field Name | Field Type |
|---|---|
| identifier | Lnet/minecraft/resources/ResourceLocation; |
| data | Lnet/minecraft/network/FriendlyByteBuf; |
- identifier:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;] - data:
[readBytes(I)Lio/netty/buffer/ByteBuf;]
Example read:
public void read(ByteBuf byteBuf) {
this.identifier = byteBuf.readResourceLocation();
this.data = byteBuf.readBytes();
}- identifier:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;] - data:
[writeBytes(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeResourceLocation(this.identifier);
byteBuf.writeBytes(this.data);
}| Field Name | Field Type |
|---|---|
| containerId | I |
| buttonId | I |
- containerId:
[readByte()B] - buttonId:
[readByte()B]
Example read:
public void read(ByteBuf byteBuf) {
this.containerId = byteBuf.readByte();
this.buttonId = byteBuf.readByte();
}- containerId:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - buttonId:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.containerId);
byteBuf.writeByte(this.buttonId);
}| Field Name | Field Type |
|---|---|
| difficulty | Lnet/minecraft/world/Difficulty; |
- difficulty:
[readUnsignedByte()S]
Example read:
public void read(ByteBuf byteBuf) {
this.difficulty = byteBuf.readUnsignedByte();
}- difficulty:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.difficulty);
}| Field Name | Field Type |
|---|---|
| message | Ljava/lang/String; |
- message:
[readUtf(I)Ljava/lang/String;]
Example read:
public void read(ByteBuf byteBuf) {
this.message = byteBuf.readUtf();
}- message:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeUtf(this.message);
}| Field Name | Field Type |
|---|---|
| id | I |
- id:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readVarInt();
}- id:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.id);
}| Field Name | Field Type |
|---|---|
| language | Ljava/lang/String; |
| viewDistance | I |
| chatVisibility | Lnet/minecraft/world/entity/player/ChatVisiblity; |
| chatColors | Z |
| modelCustomisation | I |
| mainHand | Lnet/minecraft/world/entity/HumanoidArm; |
- language:
[readUtf(I)Ljava/lang/String;] - viewDistance:
[readByte()B] - chatVisibility:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - chatColors:
[readBoolean()Z] - modelCustomisation:
[readUnsignedByte()S] - mainHand:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;]
Example read:
public void read(ByteBuf byteBuf) {
this.language = byteBuf.readUtf();
this.viewDistance = byteBuf.readByte();
this.chatVisibility = byteBuf.readEnum();
this.chatColors = byteBuf.readBoolean();
this.modelCustomisation = byteBuf.readUnsignedByte();
this.mainHand = byteBuf.readEnum();
}- language:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - viewDistance:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - chatVisibility:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - chatColors:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - modelCustomisation:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - mainHand:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeUtf(this.language);
byteBuf.writeByte(this.viewDistance);
byteBuf.writeEnum(this.chatVisibility);
byteBuf.writeBoolean(this.chatColors);
byteBuf.writeByte(this.modelCustomisation);
byteBuf.writeEnum(this.mainHand);
}| Field Name | Field Type |
|---|---|
| transactionId | I |
| pos | Lnet/minecraft/core/BlockPos; |
- transactionId:
[readVarInt()I] - pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;]
Example read:
public void read(ByteBuf byteBuf) {
this.transactionId = byteBuf.readVarInt();
this.pos = byteBuf.readBlockPos();
}- transactionId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.transactionId);
byteBuf.writeBlockPos(this.pos);
}| Field Name | Field Type |
|---|---|
| tags | Lnet/minecraft/tags/TagContainer; |
| Field Name | Field Type |
|---|---|
| entityId | I |
| effectId | B |
| effectAmplifier | B |
| effectDurationTicks | I |
| flags | B |
- entityId:
[readVarInt()I] - effectId:
[readByte()B] - effectAmplifier:
[readByte()B] - effectDurationTicks:
[readVarInt()I] - flags:
[readByte()B]
Example read:
public void read(ByteBuf byteBuf) {
this.entityId = byteBuf.readVarInt();
this.effectId = byteBuf.readByte();
this.effectAmplifier = byteBuf.readByte();
this.effectDurationTicks = byteBuf.readVarInt();
this.flags = byteBuf.readByte();
}- entityId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - effectId:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - effectAmplifier:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - effectDurationTicks:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - flags:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.entityId);
byteBuf.writeByte(this.effectId);
byteBuf.writeByte(this.effectAmplifier);
byteBuf.writeVarInt(this.effectDurationTicks);
byteBuf.writeByte(this.flags);
}| Field Name | Field Type |
|---|---|
| id | I |
| x | D |
| y | D |
| z | D |
| yRot | B |
| xRot | B |
| onGround | Z |
- id:
[readVarInt()I] - x:
[readDouble()D] - y:
[readDouble()D] - z:
[readDouble()D] - yRot:
[readByte()B] - xRot:
[readByte()B] - onGround:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readVarInt();
this.x = byteBuf.readDouble();
this.y = byteBuf.readDouble();
this.z = byteBuf.readDouble();
this.yRot = byteBuf.readByte();
this.xRot = byteBuf.readByte();
this.onGround = byteBuf.readBoolean();
}- id:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - x:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - y:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - z:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - yRot:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - xRot:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - onGround:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.id);
byteBuf.writeDouble(this.x);
byteBuf.writeDouble(this.y);
byteBuf.writeDouble(this.z);
byteBuf.writeByte(this.yRot);
byteBuf.writeByte(this.xRot);
byteBuf.writeBoolean(this.onGround);
}| Field Name | Field Type |
|---|---|
| header | Lnet/minecraft/network/chat/Component; |
| footer | Lnet/minecraft/network/chat/Component; |
- header:
[readComponent()Lnet/minecraft/network/chat/Component;] - footer:
[readComponent()Lnet/minecraft/network/chat/Component;]
Example read:
public void read(ByteBuf byteBuf) {
this.header = byteBuf.readComponent();
this.footer = byteBuf.readComponent();
}- header:
[writeComponent(Lnet/minecraft/network/chat/Component;)Lnet/minecraft/network/FriendlyByteBuf;] - footer:
[writeComponent(Lnet/minecraft/network/chat/Component;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeComponent(this.header);
byteBuf.writeComponent(this.footer);
}| Field Name | Field Type |
|---|---|
| transactionId | I |
| tag | Lnet/minecraft/nbt/CompoundTag; |
- transactionId:
[readVarInt()I] - tag:
[readNbt()Lnet/minecraft/nbt/CompoundTag;]
Example read:
public void read(ByteBuf byteBuf) {
this.transactionId = byteBuf.readVarInt();
this.tag = byteBuf.readNbt();
}- transactionId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - tag:
[writeNbt(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.transactionId);
byteBuf.writeNbt(this.tag);
}| Field Name | Field Type |
|---|---|
| name | Lnet/minecraft/resources/ResourceLocation; |
| source | Lnet/minecraft/sounds/SoundSource; |
- source:
[readByte()B, readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - name:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;]
Example read:
public void read(ByteBuf byteBuf) {
this.source = byteBuf.readByte();
this.name = byteBuf.readResourceLocation();
}- name:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - source:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - name:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;] - source:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - name:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - name:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.name);
byteBuf.writeEnum(this.source);
byteBuf.writeResourceLocation(this.name);
byteBuf.writeEnum(this.source);
byteBuf.writeByte(this.name);
byteBuf.writeResourceLocation(this.name);
}| Field Name | Field Type |
|---|---|
| itemId | I |
| playerId | I |
| amount | I |
- itemId:
[readVarInt()I] - playerId:
[readVarInt()I] - amount:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.itemId = byteBuf.readVarInt();
this.playerId = byteBuf.readVarInt();
this.amount = byteBuf.readVarInt();
}- itemId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - playerId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - amount:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.itemId);
byteBuf.writeVarInt(this.playerId);
byteBuf.writeVarInt(this.amount);
}| Field Name | Field Type |
|---|---|
| recipes | Ljava/util/List; |
- recipes:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.recipes);
}| Field Name | Field Type |
|---|---|
| sound | Lnet/minecraft/sounds/SoundEvent; |
| source | Lnet/minecraft/sounds/SoundSource; |
| x | I |
| y | I |
| z | I |
| volume | F |
| pitch | F |
- sound:
[readVarInt()I] - source:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - x:
[readInt()I] - y:
[readInt()I] - z:
[readInt()I] - volume:
[readFloat()F] - pitch:
[readFloat()F]
Example read:
public void read(ByteBuf byteBuf) {
this.sound = byteBuf.readVarInt();
this.source = byteBuf.readEnum();
this.x = byteBuf.readInt();
this.y = byteBuf.readInt();
this.z = byteBuf.readInt();
this.volume = byteBuf.readFloat();
this.pitch = byteBuf.readFloat();
}- sound:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - source:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - x:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - y:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - z:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - volume:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - pitch:
[writeFloat(F)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.sound);
byteBuf.writeEnum(this.source);
byteBuf.writeInt(this.x);
byteBuf.writeInt(this.y);
byteBuf.writeInt(this.z);
byteBuf.writeFloat(this.volume);
byteBuf.writeFloat(this.pitch);
}| Field Name | Field Type |
|---|---|
| sound | Lnet/minecraft/sounds/SoundEvent; |
| source | Lnet/minecraft/sounds/SoundSource; |
| id | I |
| volume | F |
| pitch | F |
- sound:
[readVarInt()I] - source:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - id:
[readVarInt()I] - volume:
[readFloat()F] - pitch:
[readFloat()F]
Example read:
public void read(ByteBuf byteBuf) {
this.sound = byteBuf.readVarInt();
this.source = byteBuf.readEnum();
this.id = byteBuf.readVarInt();
this.volume = byteBuf.readFloat();
this.pitch = byteBuf.readFloat();
}- sound:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - source:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - id:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - volume:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - pitch:
[writeFloat(F)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.sound);
byteBuf.writeEnum(this.source);
byteBuf.writeVarInt(this.id);
byteBuf.writeFloat(this.volume);
byteBuf.writeFloat(this.pitch);
}| Field Name | Field Type |
|---|---|
| gameTime | J |
| dayTime | J |
- gameTime:
[readLong()J] - dayTime:
[readLong()J]
Example read:
public void read(ByteBuf byteBuf) {
this.gameTime = byteBuf.readLong();
this.dayTime = byteBuf.readLong();
}- gameTime:
[writeLong(J)Lio/netty/buffer/ByteBuf;] - dayTime:
[writeLong(J)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeLong(this.gameTime);
byteBuf.writeLong(this.dayTime);
}| Field Name | Field Type |
|---|---|
| vehicle | I |
| passengers | [I |
- vehicle:
[readVarInt()I] - passengers:
[readVarIntArray()[I]
Example read:
public void read(ByteBuf byteBuf) {
this.vehicle = byteBuf.readVarInt();
this.passengers = byteBuf.readVarIntArray();
}- vehicle:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - passengers:
[writeVarIntArray([I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.vehicle);
byteBuf.writeVarIntArray(this.passengers);
}| Field Name | Field Type |
|---|---|
| reset | Z |
| added | Ljava/util/Map; |
| removed | Ljava/util/Set; |
| progress | Ljava/util/Map; |
- reset:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.reset = byteBuf.readBoolean();
}- reset:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - added:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - added:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;] - removed:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - removed:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;] - progress:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - progress:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeBoolean(this.reset);
byteBuf.writeVarInt(this.added);
byteBuf.writeResourceLocation(this.added);
byteBuf.writeVarInt(this.removed);
byteBuf.writeResourceLocation(this.removed);
byteBuf.writeVarInt(this.progress);
byteBuf.writeResourceLocation(this.progress);
}| Field Name | Field Type |
|---|---|
| entityId | I |
| attributes | Ljava/util/List; |
- entityId:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.entityId = byteBuf.readVarInt();
}- entityId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - attributes:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - attributes:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.entityId);
byteBuf.writeInt(this.attributes);
byteBuf.writeResourceLocation(this.attributes);
}| Field Name | Field Type |
|---|---|
| health | F |
| food | I |
| saturation | F |
- health:
[readFloat()F] - food:
[readVarInt()I] - saturation:
[readFloat()F]
Example read:
public void read(ByteBuf byteBuf) {
this.health = byteBuf.readFloat();
this.food = byteBuf.readVarInt();
this.saturation = byteBuf.readFloat();
}- health:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - food:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - saturation:
[writeFloat(F)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeFloat(this.health);
byteBuf.writeVarInt(this.food);
byteBuf.writeFloat(this.saturation);
}| Field Name | Field Type |
|---|---|
| type | Lnet/minecraft/network/protocol/game/ClientboundSetTitlesPacket$Type; |
| text | Lnet/minecraft/network/chat/Component; |
| fadeInTime | I |
| stayTime | I |
| fadeOutTime | I |
- type:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - text:
[readComponent()Lnet/minecraft/network/chat/Component;] - fadeInTime:
[readInt()I] - stayTime:
[readInt()I] - fadeOutTime:
[readInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.type = byteBuf.readEnum();
this.text = byteBuf.readComponent();
this.fadeInTime = byteBuf.readInt();
this.stayTime = byteBuf.readInt();
this.fadeOutTime = byteBuf.readInt();
}- type:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - text:
[writeComponent(Lnet/minecraft/network/chat/Component;)Lnet/minecraft/network/FriendlyByteBuf;] - fadeInTime:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - stayTime:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - fadeOutTime:
[writeInt(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeEnum(this.type);
byteBuf.writeComponent(this.text);
byteBuf.writeInt(this.fadeInTime);
byteBuf.writeInt(this.stayTime);
byteBuf.writeInt(this.fadeOutTime);
}| Field Name | Field Type |
|---|---|
| owner | Ljava/lang/String; |
| objectiveName | Ljava/lang/String; |
| score | I |
| method | Lnet/minecraft/server/ServerScoreboard$Method; |
- owner:
[readUtf(I)Ljava/lang/String;] - method:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - objectiveName:
[readUtf(I)Ljava/lang/String;] - score:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.owner = byteBuf.readUtf();
this.method = byteBuf.readEnum();
this.objectiveName = byteBuf.readUtf();
this.score = byteBuf.readVarInt();
}- owner:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - method:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - objectiveName:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - score:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeUtf(this.owner);
byteBuf.writeEnum(this.method);
byteBuf.writeUtf(this.objectiveName);
byteBuf.writeVarInt(this.score);
}| Field Name | Field Type |
|---|---|
| experienceProgress | F |
| totalExperience | I |
| experienceLevel | I |
- experienceProgress:
[readFloat()F] - experienceLevel:
[readVarInt()I] - totalExperience:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.experienceProgress = byteBuf.readFloat();
this.experienceLevel = byteBuf.readVarInt();
this.totalExperience = byteBuf.readVarInt();
}- experienceProgress:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - experienceLevel:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - totalExperience:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeFloat(this.experienceProgress);
byteBuf.writeVarInt(this.experienceLevel);
byteBuf.writeVarInt(this.totalExperience);
}| Field Name | Field Type |
|---|---|
| objectiveName | Ljava/lang/String; |
| displayName | Lnet/minecraft/network/chat/Component; |
| renderType | Lnet/minecraft/world/scores/criteria/ObjectiveCriteria$RenderType; |
| method | I |
- objectiveName:
[readUtf(I)Ljava/lang/String;] - method:
[readByte()B] - displayName:
[readComponent()Lnet/minecraft/network/chat/Component;] - renderType:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;]
Example read:
public void read(ByteBuf byteBuf) {
this.objectiveName = byteBuf.readUtf();
this.method = byteBuf.readByte();
this.displayName = byteBuf.readComponent();
this.renderType = byteBuf.readEnum();
}- objectiveName:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - method:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - displayName:
[writeComponent(Lnet/minecraft/network/chat/Component;)Lnet/minecraft/network/FriendlyByteBuf;] - renderType:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeUtf(this.objectiveName);
byteBuf.writeByte(this.method);
byteBuf.writeComponent(this.displayName);
byteBuf.writeEnum(this.renderType);
}| Field Name | Field Type |
|---|---|
| entity | I |
| slots | Ljava/util/List; |
- entity:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.entity = byteBuf.readVarInt();
}- entity:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - slots:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.entity);
byteBuf.writeByte(this.slots);
}| Field Name | Field Type |
|---|---|
| sourceId | I |
| destId | I |
- sourceId:
[readInt()I] - destId:
[readInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.sourceId = byteBuf.readInt();
this.destId = byteBuf.readInt();
}- sourceId:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - destId:
[writeInt(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeInt(this.sourceId);
byteBuf.writeInt(this.destId);
}| Field Name | Field Type |
|---|---|
| id | I |
| xa | I |
| ya | I |
| za | I |
- id:
[readVarInt()I] - xa:
[readShort()S] - ya:
[readShort()S] - za:
[readShort()S]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readVarInt();
this.xa = byteBuf.readShort();
this.ya = byteBuf.readShort();
this.za = byteBuf.readShort();
}- id:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - xa:
[writeShort(I)Lio/netty/buffer/ByteBuf;] - ya:
[writeShort(I)Lio/netty/buffer/ByteBuf;] - za:
[writeShort(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.id);
byteBuf.writeShort(this.xa);
byteBuf.writeShort(this.ya);
byteBuf.writeShort(this.za);
}| Field Name | Field Type |
|---|---|
| radius | I |
- radius:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.radius = byteBuf.readVarInt();
}- radius:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.radius);
}| Field Name | Field Type |
|---|---|
| id | I |
| packedItems | Ljava/util/List; |
- id:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readVarInt();
}- id:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.id);
}| Field Name | Field Type |
|---|---|
| slot | I |
| objectiveName | Ljava/lang/String; |
- slot:
[readByte()B] - objectiveName:
[readUtf(I)Ljava/lang/String;]
Example read:
public void read(ByteBuf byteBuf) {
this.slot = byteBuf.readByte();
this.objectiveName = byteBuf.readUtf();
}- slot:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - objectiveName:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.slot);
byteBuf.writeUtf(this.objectiveName);
}| Field Name | Field Type |
|---|---|
| slot | I |
- slot:
[readByte()B]
Example read:
public void read(ByteBuf byteBuf) {
this.slot = byteBuf.readByte();
}- slot:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.slot);
}| Field Name | Field Type |
|---|---|
| pos | Lnet/minecraft/core/BlockPos; |
| angle | F |
- pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;]
Example read:
public void read(ByteBuf byteBuf) {
this.pos = byteBuf.readBlockPos();
}- pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeBlockPos(this.pos);
}| Field Name | Field Type |
|---|---|
| x | I |
| z | I |
- x:
[readVarInt()I] - z:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.x = byteBuf.readVarInt();
this.z = byteBuf.readVarInt();
}- x:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - z:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.x);
byteBuf.writeVarInt(this.z);
}| Field Name | Field Type |
|---|---|
| cameraId | I |
- cameraId:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.cameraId = byteBuf.readVarInt();
}- cameraId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.cameraId);
}| Field Name | Field Type |
|---|---|
| name | Ljava/lang/String; |
| displayName | Lnet/minecraft/network/chat/Component; |
| playerPrefix | Lnet/minecraft/network/chat/Component; |
| playerSuffix | Lnet/minecraft/network/chat/Component; |
| nametagVisibility | Ljava/lang/String; |
| collisionRule | Ljava/lang/String; |
| color | Lnet/minecraft/ChatFormatting; |
| players | Ljava/util/Collection; |
| method | I |
| options | I |
- name:
[readUtf(I)Ljava/lang/String;] - method:
[readByte()B] - displayName:
[readComponent()Lnet/minecraft/network/chat/Component;] - options:
[readByte()B] - nametagVisibility:
[readUtf(I)Ljava/lang/String;] - collisionRule:
[readUtf(I)Ljava/lang/String;] - color:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - playerPrefix:
[readComponent()Lnet/minecraft/network/chat/Component;] - playerSuffix:
[readComponent()Lnet/minecraft/network/chat/Component;]
Example read:
public void read(ByteBuf byteBuf) {
this.name = byteBuf.readUtf();
this.method = byteBuf.readByte();
this.displayName = byteBuf.readComponent();
this.options = byteBuf.readByte();
this.nametagVisibility = byteBuf.readUtf();
this.collisionRule = byteBuf.readUtf();
this.color = byteBuf.readEnum();
this.playerPrefix = byteBuf.readComponent();
this.playerSuffix = byteBuf.readComponent();
}- name:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - method:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - displayName:
[writeComponent(Lnet/minecraft/network/chat/Component;)Lnet/minecraft/network/FriendlyByteBuf;] - options:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - nametagVisibility:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - collisionRule:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - color:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - playerPrefix:
[writeComponent(Lnet/minecraft/network/chat/Component;)Lnet/minecraft/network/FriendlyByteBuf;] - playerSuffix:
[writeComponent(Lnet/minecraft/network/chat/Component;)Lnet/minecraft/network/FriendlyByteBuf;] - players:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - players:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeUtf(this.name);
byteBuf.writeByte(this.method);
byteBuf.writeComponent(this.displayName);
byteBuf.writeByte(this.options);
byteBuf.writeUtf(this.nametagVisibility);
byteBuf.writeUtf(this.collisionRule);
byteBuf.writeEnum(this.color);
byteBuf.writeComponent(this.playerPrefix);
byteBuf.writeComponent(this.playerSuffix);
byteBuf.writeVarInt(this.players);
byteBuf.writeUtf(this.players);
}| Field Name | Field Type |
|---|---|
| tab | Lnet/minecraft/resources/ResourceLocation; |
- tab:
[readBoolean()Z, readResourceLocation()Lnet/minecraft/resources/ResourceLocation;]
Example read:
public void read(ByteBuf byteBuf) {
this.tab = byteBuf.readBoolean();
}- tab:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - tab:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeBoolean(this.tab);
byteBuf.writeResourceLocation(this.tab);
}| Field Name | Field Type |
|---|---|
| entityIds | [I |
- entityIds:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.entityIds = byteBuf.readVarInt();
}- entityIds:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - entityIds:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.entityIds);
byteBuf.writeVarInt(this.entityIds);
}| Field Name | Field Type |
|---|---|
| url | Ljava/lang/String; |
| hash | Ljava/lang/String; |
| required | Z |
- url:
[readUtf(I)Ljava/lang/String;] - hash:
[readUtf(I)Ljava/lang/String;] - required:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.url = byteBuf.readUtf();
this.hash = byteBuf.readUtf();
this.required = byteBuf.readBoolean();
}- url:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - hash:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;] - required:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeUtf(this.url);
byteBuf.writeUtf(this.hash);
byteBuf.writeBoolean(this.required);
}| Field Name | Field Type |
|---|---|
| entityId | I |
| yHeadRot | B |
- entityId:
[readVarInt()I] - yHeadRot:
[readByte()B]
Example read:
public void read(ByteBuf byteBuf) {
this.entityId = byteBuf.readVarInt();
this.yHeadRot = byteBuf.readByte();
}- entityId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - yHeadRot:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.entityId);
byteBuf.writeByte(this.yHeadRot);
}| Field Name | Field Type |
|---|---|
| entityId | I |
| effect | Lnet/minecraft/world/effect/MobEffect; |
- entityId:
[readVarInt()I] - effect:
[readUnsignedByte()S]
Example read:
public void read(ByteBuf byteBuf) {
this.entityId = byteBuf.readVarInt();
this.effect = byteBuf.readUnsignedByte();
}- entityId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - effect:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.entityId);
byteBuf.writeByte(this.effect);
}| Field Name | Field Type |
|---|---|
| type | Lnet/minecraft/network/protocol/game/ClientboundSetBorderPacket$Type; |
| newAbsoluteMaxSize | I |
| newCenterX | D |
| newCenterZ | D |
| newSize | D |
| oldSize | D |
| lerpTime | J |
| warningTime | I |
| warningBlocks | I |
- type:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - newSize:
[readDouble()D] - oldSize:
[readDouble()D] - newSize:
[readDouble()D] - lerpTime:
[readVarLong()J] - newCenterX:
[readDouble()D] - newCenterZ:
[readDouble()D] - warningBlocks:
[readVarInt()I] - warningTime:
[readVarInt()I] - newCenterX:
[readDouble()D] - newCenterZ:
[readDouble()D] - oldSize:
[readDouble()D] - newSize:
[readDouble()D] - lerpTime:
[readVarLong()J] - newAbsoluteMaxSize:
[readVarInt()I] - warningBlocks:
[readVarInt()I] - warningTime:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.type = byteBuf.readEnum();
this.newSize = byteBuf.readDouble();
this.oldSize = byteBuf.readDouble();
this.newSize = byteBuf.readDouble();
this.lerpTime = byteBuf.readVarLong();
this.newCenterX = byteBuf.readDouble();
this.newCenterZ = byteBuf.readDouble();
this.warningBlocks = byteBuf.readVarInt();
this.warningTime = byteBuf.readVarInt();
this.newCenterX = byteBuf.readDouble();
this.newCenterZ = byteBuf.readDouble();
this.oldSize = byteBuf.readDouble();
this.newSize = byteBuf.readDouble();
this.lerpTime = byteBuf.readVarLong();
this.newAbsoluteMaxSize = byteBuf.readVarInt();
this.warningBlocks = byteBuf.readVarInt();
this.warningTime = byteBuf.readVarInt();
}- type:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - newSize:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - oldSize:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - newSize:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - lerpTime:
[writeVarLong(J)Lnet/minecraft/network/FriendlyByteBuf;] - newCenterX:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - newCenterZ:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - warningTime:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - warningBlocks:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - newCenterX:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - newCenterZ:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - oldSize:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - newSize:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - lerpTime:
[writeVarLong(J)Lnet/minecraft/network/FriendlyByteBuf;] - newAbsoluteMaxSize:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - warningBlocks:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - warningTime:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeEnum(this.type);
byteBuf.writeDouble(this.newSize);
byteBuf.writeDouble(this.oldSize);
byteBuf.writeDouble(this.newSize);
byteBuf.writeVarLong(this.lerpTime);
byteBuf.writeDouble(this.newCenterX);
byteBuf.writeDouble(this.newCenterZ);
byteBuf.writeVarInt(this.warningTime);
byteBuf.writeVarInt(this.warningBlocks);
byteBuf.writeDouble(this.newCenterX);
byteBuf.writeDouble(this.newCenterZ);
byteBuf.writeDouble(this.oldSize);
byteBuf.writeDouble(this.newSize);
byteBuf.writeVarLong(this.lerpTime);
byteBuf.writeVarInt(this.newAbsoluteMaxSize);
byteBuf.writeVarInt(this.warningBlocks);
byteBuf.writeVarInt(this.warningTime);
}| Field Name | Field Type |
|---|---|
| dimensionType | Lnet/minecraft/world/level/dimension/DimensionType; |
| dimension | Lnet/minecraft/resources/ResourceKey; |
| seed | J |
| playerGameType | Lnet/minecraft/world/level/GameType; |
| previousPlayerGameType | Lnet/minecraft/world/level/GameType; |
| isDebug | Z |
| isFlat | Z |
| keepAllPlayerData | Z |
- dimensionType:
[readWithCodec(Lcom/mojang/serialization/Codec;)Ljava/lang/Object;] - dimension:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;] - seed:
[readLong()J] - playerGameType:
[readUnsignedByte()S] - previousPlayerGameType:
[readUnsignedByte()S] - isDebug:
[readBoolean()Z] - isFlat:
[readBoolean()Z] - keepAllPlayerData:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.dimensionType = byteBuf.readWithCodec();
this.dimension = byteBuf.readResourceLocation();
this.seed = byteBuf.readLong();
this.playerGameType = byteBuf.readUnsignedByte();
this.previousPlayerGameType = byteBuf.readUnsignedByte();
this.isDebug = byteBuf.readBoolean();
this.isFlat = byteBuf.readBoolean();
this.keepAllPlayerData = byteBuf.readBoolean();
}- dimension:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;] - seed:
[writeLong(J)Lio/netty/buffer/ByteBuf;] - playerGameType:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - previousPlayerGameType:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - isDebug:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - isFlat:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - keepAllPlayerData:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeResourceLocation(this.dimension);
byteBuf.writeLong(this.seed);
byteBuf.writeByte(this.playerGameType);
byteBuf.writeByte(this.previousPlayerGameType);
byteBuf.writeBoolean(this.isDebug);
byteBuf.writeBoolean(this.isFlat);
byteBuf.writeBoolean(this.keepAllPlayerData);
}| Field Name | Field Type |
|---|---|
| sectionPos | Lnet/minecraft/core/SectionPos; |
| positions | [S |
| states | [Lnet/minecraft/world/level/block/state/BlockState; |
| suppressLightUpdates | Z |
- sectionPos:
[readLong()J] - suppressLightUpdates:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.sectionPos = byteBuf.readLong();
this.suppressLightUpdates = byteBuf.readBoolean();
}- sectionPos:
[writeLong(J)Lio/netty/buffer/ByteBuf;] - suppressLightUpdates:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - positions:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - positions:
[writeVarLong(J)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeLong(this.sectionPos);
byteBuf.writeBoolean(this.suppressLightUpdates);
byteBuf.writeVarInt(this.positions);
byteBuf.writeVarLong(this.positions);
}| Field Name | Field Type |
|---|---|
| state | Lnet/minecraft/network/protocol/game/ClientboundRecipePacket$State; |
| recipes | Ljava/util/List; |
| toHighlight | Ljava/util/List; |
| bookSettings | Lnet/minecraft/stats/RecipeBookSettings; |
- state:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - recipes:
[readVarInt()I] - toHighlight:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;, readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.state = byteBuf.readEnum();
this.recipes = byteBuf.readVarInt();
this.toHighlight = byteBuf.readResourceLocation();
}- state:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - recipes:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - recipes:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;] - toHighlight:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - toHighlight:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeEnum(this.state);
byteBuf.writeVarInt(this.recipes);
byteBuf.writeResourceLocation(this.recipes);
byteBuf.writeVarInt(this.toHighlight);
byteBuf.writeResourceLocation(this.toHighlight);
}| Field Name | Field Type |
|---|---|
| x | D |
| y | D |
| z | D |
| yRot | F |
| xRot | F |
| relativeArguments | Ljava/util/Set; |
| id | I |
- x:
[readDouble()D] - y:
[readDouble()D] - z:
[readDouble()D] - yRot:
[readFloat()F] - xRot:
[readFloat()F] - relativeArguments:
[readUnsignedByte()S] - id:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.x = byteBuf.readDouble();
this.y = byteBuf.readDouble();
this.z = byteBuf.readDouble();
this.yRot = byteBuf.readFloat();
this.xRot = byteBuf.readFloat();
this.relativeArguments = byteBuf.readUnsignedByte();
this.id = byteBuf.readVarInt();
}- x:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - y:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - z:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - yRot:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - xRot:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - relativeArguments:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - id:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeDouble(this.x);
byteBuf.writeDouble(this.y);
byteBuf.writeDouble(this.z);
byteBuf.writeFloat(this.yRot);
byteBuf.writeFloat(this.xRot);
byteBuf.writeByte(this.relativeArguments);
byteBuf.writeVarInt(this.id);
}| Field Name | Field Type |
|---|---|
| x | D |
| y | D |
| z | D |
| entity | I |
| fromAnchor | Lnet/minecraft/commands/arguments/EntityAnchorArgument$Anchor; |
| toAnchor | Lnet/minecraft/commands/arguments/EntityAnchorArgument$Anchor; |
| atEntity | Z |
- fromAnchor:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - x:
[readDouble()D] - y:
[readDouble()D] - z:
[readDouble()D] - atEntity:
[readBoolean()Z] - entity:
[readVarInt()I] - toAnchor:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;]
Example read:
public void read(ByteBuf byteBuf) {
this.fromAnchor = byteBuf.readEnum();
this.x = byteBuf.readDouble();
this.y = byteBuf.readDouble();
this.z = byteBuf.readDouble();
this.atEntity = byteBuf.readBoolean();
this.entity = byteBuf.readVarInt();
this.toAnchor = byteBuf.readEnum();
}- fromAnchor:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - x:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - y:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - z:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - atEntity:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - entity:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - toAnchor:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeEnum(this.fromAnchor);
byteBuf.writeDouble(this.x);
byteBuf.writeDouble(this.y);
byteBuf.writeDouble(this.z);
byteBuf.writeBoolean(this.atEntity);
byteBuf.writeVarInt(this.entity);
byteBuf.writeEnum(this.toAnchor);
}| Field Name | Field Type |
|---|---|
| pos | Lnet/minecraft/core/BlockPos; |
- pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;]
Example read:
public void read(ByteBuf byteBuf) {
this.pos = byteBuf.readBlockPos();
}- pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeBlockPos(this.pos);
}| Field Name | Field Type |
|---|---|
| containerId | I |
| recipe | Lnet/minecraft/resources/ResourceLocation; |
- containerId:
[readByte()B] - recipe:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;]
Example read:
public void read(ByteBuf byteBuf) {
this.containerId = byteBuf.readByte();
this.recipe = byteBuf.readResourceLocation();
}- containerId:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - recipe:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.containerId);
byteBuf.writeResourceLocation(this.recipe);
}| Field Name | Field Type |
|---|---|
| hand | Lnet/minecraft/world/InteractionHand; |
- hand:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;]
Example read:
public void read(ByteBuf byteBuf) {
this.hand = byteBuf.readEnum();
}- hand:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeEnum(this.hand);
}| Field Name | Field Type |
|---|---|
| invulnerable | Z |
| isFlying | Z |
| canFly | Z |
| instabuild | Z |
| flyingSpeed | F |
| walkingSpeed | F |
- invulnerable:
[readByte()B] - flyingSpeed:
[readFloat()F] - walkingSpeed:
[readFloat()F]
Example read:
public void read(ByteBuf byteBuf) {
this.invulnerable = byteBuf.readByte();
this.flyingSpeed = byteBuf.readFloat();
this.walkingSpeed = byteBuf.readFloat();
}- instabuild:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - flyingSpeed:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - walkingSpeed:
[writeFloat(F)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.instabuild);
byteBuf.writeFloat(this.flyingSpeed);
byteBuf.writeFloat(this.walkingSpeed);
}| Field Name | Field Type |
|---|---|
| containerId | I |
| type | I |
| title | Lnet/minecraft/network/chat/Component; |
- containerId:
[readVarInt()I] - type:
[readVarInt()I] - title:
[readComponent()Lnet/minecraft/network/chat/Component;]
Example read:
public void read(ByteBuf byteBuf) {
this.containerId = byteBuf.readVarInt();
this.type = byteBuf.readVarInt();
this.title = byteBuf.readComponent();
}- containerId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - type:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - title:
[writeComponent(Lnet/minecraft/network/chat/Component;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.containerId);
byteBuf.writeVarInt(this.type);
byteBuf.writeComponent(this.title);
}| Field Name | Field Type |
|---|---|
| event | Lnet/minecraft/network/protocol/game/ClientboundPlayerCombatPacket$Event; |
| playerId | I |
| killerId | I |
| duration | I |
| message | Lnet/minecraft/network/chat/Component; |
- event:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - duration:
[readVarInt()I] - killerId:
[readInt()I] - playerId:
[readVarInt()I] - killerId:
[readInt()I] - message:
[readComponent()Lnet/minecraft/network/chat/Component;]
Example read:
public void read(ByteBuf byteBuf) {
this.event = byteBuf.readEnum();
this.duration = byteBuf.readVarInt();
this.killerId = byteBuf.readInt();
this.playerId = byteBuf.readVarInt();
this.killerId = byteBuf.readInt();
this.message = byteBuf.readComponent();
}- event:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - duration:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - killerId:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - playerId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - killerId:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - message:
[writeComponent(Lnet/minecraft/network/chat/Component;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeEnum(this.event);
byteBuf.writeVarInt(this.duration);
byteBuf.writeInt(this.killerId);
byteBuf.writeVarInt(this.playerId);
byteBuf.writeInt(this.killerId);
byteBuf.writeComponent(this.message);
}| Field Name | Field Type |
|---|---|
| x | D |
| y | D |
| z | D |
| yRot | F |
| xRot | F |
- x:
[readDouble()D] - y:
[readDouble()D] - z:
[readDouble()D] - yRot:
[readFloat()F] - xRot:
[readFloat()F]
Example read:
public void read(ByteBuf byteBuf) {
this.x = byteBuf.readDouble();
this.y = byteBuf.readDouble();
this.z = byteBuf.readDouble();
this.yRot = byteBuf.readFloat();
this.xRot = byteBuf.readFloat();
}- x:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - y:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - z:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - yRot:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - xRot:
[writeFloat(F)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeDouble(this.x);
byteBuf.writeDouble(this.y);
byteBuf.writeDouble(this.z);
byteBuf.writeFloat(this.yRot);
byteBuf.writeFloat(this.xRot);
}| Field Name | Field Type |
|---|---|
| containerId | I |
| offers | Lnet/minecraft/world/item/trading/MerchantOffers; |
| villagerLevel | I |
| villagerXp | I |
| showProgress | Z |
| canRestock | Z |
- containerId:
[readVarInt()I] - villagerLevel:
[readVarInt()I] - villagerXp:
[readVarInt()I] - showProgress:
[readBoolean()Z] - canRestock:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.containerId = byteBuf.readVarInt();
this.villagerLevel = byteBuf.readVarInt();
this.villagerXp = byteBuf.readVarInt();
this.showProgress = byteBuf.readBoolean();
this.canRestock = byteBuf.readBoolean();
}- containerId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - villagerLevel:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - villagerXp:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - showProgress:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - canRestock:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.containerId);
byteBuf.writeVarInt(this.villagerLevel);
byteBuf.writeVarInt(this.villagerXp);
byteBuf.writeBoolean(this.showProgress);
byteBuf.writeBoolean(this.canRestock);
}| Field Name | Field Type |
|---|---|
| entityId | I |
| xa | S |
| ya | S |
| za | S |
| yRot | B |
| xRot | B |
| onGround | Z |
| hasRot | Z |
| hasPos | Z |
- entityId:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.entityId = byteBuf.readVarInt();
}- entityId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.entityId);
}| Field Name | Field Type |
|---|---|
| id | J |
- id:
[readLong()J]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readLong();
}- id:
[writeLong(J)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeLong(this.id);
}| Field Name | Field Type |
|---|---|
| type | I |
| pos | Lnet/minecraft/core/BlockPos; |
| data | I |
| globalEvent | Z |
- type:
[readInt()I] - pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;] - data:
[readInt()I] - globalEvent:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.type = byteBuf.readInt();
this.pos = byteBuf.readBlockPos();
this.data = byteBuf.readInt();
this.globalEvent = byteBuf.readBoolean();
}- type:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;] - data:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - globalEvent:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeInt(this.type);
byteBuf.writeBlockPos(this.pos);
byteBuf.writeInt(this.data);
byteBuf.writeBoolean(this.globalEvent);
}| Field Name | Field Type |
|---|---|
| containerId | I |
| size | I |
| entityId | I |
- containerId:
[readUnsignedByte()S] - size:
[readVarInt()I] - entityId:
[readInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.containerId = byteBuf.readUnsignedByte();
this.size = byteBuf.readVarInt();
this.entityId = byteBuf.readInt();
}- containerId:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - size:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - entityId:
[writeInt(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.containerId);
byteBuf.writeVarInt(this.size);
byteBuf.writeInt(this.entityId);
}| Field Name | Field Type |
|---|---|
| x | I |
| z | I |
- x:
[readInt()I] - z:
[readInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.x = byteBuf.readInt();
this.z = byteBuf.readInt();
}- x:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - z:
[writeInt(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeInt(this.x);
byteBuf.writeInt(this.z);
}| Field Name | Field Type |
|---|---|
| x | D |
| y | D |
| z | D |
| xDist | F |
| yDist | F |
| zDist | F |
| maxSpeed | F |
| count | I |
| overrideLimiter | Z |
| particle | Lnet/minecraft/core/particles/ParticleOptions; |
- overrideLimiter:
[readInt()I, readBoolean()Z] - x:
[readDouble()D] - y:
[readDouble()D] - z:
[readDouble()D] - xDist:
[readFloat()F] - yDist:
[readFloat()F] - zDist:
[readFloat()F] - maxSpeed:
[readFloat()F] - count:
[readInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.overrideLimiter = byteBuf.readInt();
this.x = byteBuf.readDouble();
this.y = byteBuf.readDouble();
this.z = byteBuf.readDouble();
this.xDist = byteBuf.readFloat();
this.yDist = byteBuf.readFloat();
this.zDist = byteBuf.readFloat();
this.maxSpeed = byteBuf.readFloat();
this.count = byteBuf.readInt();
}- particle:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - overrideLimiter:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - x:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - y:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - z:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - xDist:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - yDist:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - zDist:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - maxSpeed:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - count:
[writeInt(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeInt(this.particle);
byteBuf.writeBoolean(this.overrideLimiter);
byteBuf.writeDouble(this.x);
byteBuf.writeDouble(this.y);
byteBuf.writeDouble(this.z);
byteBuf.writeFloat(this.xDist);
byteBuf.writeFloat(this.yDist);
byteBuf.writeFloat(this.zDist);
byteBuf.writeFloat(this.maxSpeed);
byteBuf.writeInt(this.count);
}| Field Name | Field Type |
|---|---|
| action | Lnet/minecraft/network/protocol/game/ClientboundPlayerInfoPacket$Action; |
| entries | Ljava/util/List; |
- action:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;]
Example read:
public void read(ByteBuf byteBuf) {
this.action = byteBuf.readEnum();
}- action:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - entries:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - action:
[writeUUID(Ljava/util/UUID;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeEnum(this.action);
byteBuf.writeVarInt(this.entries);
byteBuf.writeUUID(this.action);
}| Field Name | Field Type |
|---|---|
| entityId | I |
| eventId | B |
- entityId:
[readInt()I] - eventId:
[readByte()B]
Example read:
public void read(ByteBuf byteBuf) {
this.entityId = byteBuf.readInt();
this.eventId = byteBuf.readByte();
}- entityId:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - eventId:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeInt(this.entityId);
byteBuf.writeByte(this.eventId);
}| Field Name | Field Type |
|---|---|
| mapId | I |
| scale | B |
| trackingPosition | Z |
| locked | Z |
| decorations | [Lnet/minecraft/world/level/saveddata/maps/MapDecoration; |
| startX | I |
| startY | I |
| width | I |
| height | I |
| mapColors | [B |
- mapId:
[readVarInt()I] - scale:
[readByte()B] - trackingPosition:
[readBoolean()Z] - locked:
[readBoolean()Z] - decorations:
[readVarInt()I] - width:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;, readByte()B, readByte()B, readByte()B, readBoolean()Z, readComponent()Lnet/minecraft/network/chat/Component;, readUnsignedByte()S] - height:
[readUnsignedByte()S] - startX:
[readUnsignedByte()S] - startY:
[readUnsignedByte()S] - mapColors:
[readByteArray()[B]
Example read:
public void read(ByteBuf byteBuf) {
this.mapId = byteBuf.readVarInt();
this.scale = byteBuf.readByte();
this.trackingPosition = byteBuf.readBoolean();
this.locked = byteBuf.readBoolean();
this.decorations = byteBuf.readVarInt();
this.width = byteBuf.readEnum();
this.height = byteBuf.readUnsignedByte();
this.startX = byteBuf.readUnsignedByte();
this.startY = byteBuf.readUnsignedByte();
this.mapColors = byteBuf.readByteArray();
}- mapId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - scale:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - trackingPosition:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - locked:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - decorations:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - decorations:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - width:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - height:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - startX:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - startY:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - mapColors:
[writeByteArray([B)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.mapId);
byteBuf.writeByte(this.scale);
byteBuf.writeBoolean(this.trackingPosition);
byteBuf.writeBoolean(this.locked);
byteBuf.writeVarInt(this.decorations);
byteBuf.writeEnum(this.decorations);
byteBuf.writeByte(this.width);
byteBuf.writeByte(this.height);
byteBuf.writeByte(this.startX);
byteBuf.writeByte(this.startY);
byteBuf.writeByteArray(this.mapColors);
}| Field Name | Field Type |
|---|---|
| reason | Lnet/minecraft/network/chat/Component; |
- reason:
[readComponent()Lnet/minecraft/network/chat/Component;]
Example read:
public void read(ByteBuf byteBuf) {
this.reason = byteBuf.readComponent();
}- reason:
[writeComponent(Lnet/minecraft/network/chat/Component;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeComponent(this.reason);
}| Field Name | Field Type |
|---|---|
| playerId | I |
| seed | J |
| hardcore | Z |
| gameType | Lnet/minecraft/world/level/GameType; |
| previousGameType | Lnet/minecraft/world/level/GameType; |
| levels | Ljava/util/Set; |
| registryHolder | Lnet/minecraft/core/RegistryAccess$RegistryHolder; |
| dimensionType | Lnet/minecraft/world/level/dimension/DimensionType; |
| dimension | Lnet/minecraft/resources/ResourceKey; |
| maxPlayers | I |
| chunkRadius | I |
| reducedDebugInfo | Z |
| showDeathScreen | Z |
| isDebug | Z |
| isFlat | Z |
- playerId:
[readInt()I] - hardcore:
[readBoolean()Z] - gameType:
[readByte()B] - previousGameType:
[readByte()B] - levels:
[readVarInt()I] - registryHolder:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;, readWithCodec(Lcom/mojang/serialization/Codec;)Ljava/lang/Object;] - dimensionType:
[readWithCodec(Lcom/mojang/serialization/Codec;)Ljava/lang/Object;] - dimension:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;] - seed:
[readLong()J] - maxPlayers:
[readVarInt()I] - chunkRadius:
[readVarInt()I] - reducedDebugInfo:
[readBoolean()Z] - showDeathScreen:
[readBoolean()Z] - isDebug:
[readBoolean()Z] - isFlat:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.playerId = byteBuf.readInt();
this.hardcore = byteBuf.readBoolean();
this.gameType = byteBuf.readByte();
this.previousGameType = byteBuf.readByte();
this.levels = byteBuf.readVarInt();
this.registryHolder = byteBuf.readResourceLocation();
this.dimensionType = byteBuf.readWithCodec();
this.dimension = byteBuf.readResourceLocation();
this.seed = byteBuf.readLong();
this.maxPlayers = byteBuf.readVarInt();
this.chunkRadius = byteBuf.readVarInt();
this.reducedDebugInfo = byteBuf.readBoolean();
this.showDeathScreen = byteBuf.readBoolean();
this.isDebug = byteBuf.readBoolean();
this.isFlat = byteBuf.readBoolean();
}- playerId:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - hardcore:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - gameType:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - previousGameType:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - levels:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - levels:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;] - registryHolder:
[writeWithCodec(Lcom/mojang/serialization/Codec;Ljava/lang/Object;)V] - dimension:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;] - seed:
[writeLong(J)Lio/netty/buffer/ByteBuf;] - maxPlayers:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - chunkRadius:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - reducedDebugInfo:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - showDeathScreen:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - isDebug:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - isFlat:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeInt(this.playerId);
byteBuf.writeBoolean(this.hardcore);
byteBuf.writeByte(this.gameType);
byteBuf.writeByte(this.previousGameType);
byteBuf.writeVarInt(this.levels);
byteBuf.writeResourceLocation(this.levels);
byteBuf.writeWithCodec(this.registryHolder);
byteBuf.writeResourceLocation(this.dimension);
byteBuf.writeLong(this.seed);
byteBuf.writeVarInt(this.maxPlayers);
byteBuf.writeVarInt(this.chunkRadius);
byteBuf.writeBoolean(this.reducedDebugInfo);
byteBuf.writeBoolean(this.showDeathScreen);
byteBuf.writeBoolean(this.isDebug);
byteBuf.writeBoolean(this.isFlat);
}| Field Name | Field Type |
|---|---|
| containerId | I |
| slot | I |
| itemStack | Lnet/minecraft/world/item/ItemStack; |
- containerId:
[readByte()B] - slot:
[readShort()S] - itemStack:
[readItem()Lnet/minecraft/world/item/ItemStack;]
Example read:
public void read(ByteBuf byteBuf) {
this.containerId = byteBuf.readByte();
this.slot = byteBuf.readShort();
this.itemStack = byteBuf.readItem();
}- containerId:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - slot:
[writeShort(I)Lio/netty/buffer/ByteBuf;] - itemStack:
[writeItem(Lnet/minecraft/world/item/ItemStack;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.containerId);
byteBuf.writeShort(this.slot);
byteBuf.writeItem(this.itemStack);
}| Field Name | Field Type |
|---|---|
| x | D |
| y | D |
| z | D |
| power | F |
| toBlow | Ljava/util/List; |
| knockbackX | F |
| knockbackY | F |
| knockbackZ | F |
- x:
[readFloat()F] - y:
[readFloat()F] - z:
[readFloat()F] - power:
[readFloat()F] - toBlow:
[readInt()I] - knockbackX:
[readByte()B, readByte()B, readByte()B, readFloat()F] - knockbackY:
[readFloat()F] - knockbackZ:
[readFloat()F]
Example read:
public void read(ByteBuf byteBuf) {
this.x = byteBuf.readFloat();
this.y = byteBuf.readFloat();
this.z = byteBuf.readFloat();
this.power = byteBuf.readFloat();
this.toBlow = byteBuf.readInt();
this.knockbackX = byteBuf.readByte();
this.knockbackY = byteBuf.readFloat();
this.knockbackZ = byteBuf.readFloat();
}- x:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - y:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - z:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - power:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - toBlow:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - toBlow:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - knockbackX:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - knockbackY:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - knockbackZ:
[writeFloat(F)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeFloat(this.x);
byteBuf.writeFloat(this.y);
byteBuf.writeFloat(this.z);
byteBuf.writeFloat(this.power);
byteBuf.writeInt(this.toBlow);
byteBuf.writeByte(this.toBlow);
byteBuf.writeFloat(this.knockbackX);
byteBuf.writeFloat(this.knockbackY);
byteBuf.writeFloat(this.knockbackZ);
}| Field Name | Field Type |
|---|---|
| item | Lnet/minecraft/world/item/Item; |
| duration | I |
- item:
[readVarInt()I] - duration:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.item = byteBuf.readVarInt();
this.duration = byteBuf.readVarInt();
}- item:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - duration:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.item);
byteBuf.writeVarInt(this.duration);
}| Field Name | Field Type |
|---|---|
| containerId | I |
| id | I |
| value | I |
- containerId:
[readUnsignedByte()S] - id:
[readShort()S] - value:
[readShort()S]
Example read:
public void read(ByteBuf byteBuf) {
this.containerId = byteBuf.readUnsignedByte();
this.id = byteBuf.readShort();
this.value = byteBuf.readShort();
}- containerId:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - id:
[writeShort(I)Lio/netty/buffer/ByteBuf;] - value:
[writeShort(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.containerId);
byteBuf.writeShort(this.id);
byteBuf.writeShort(this.value);
}| Field Name | Field Type |
|---|---|
| name | Lnet/minecraft/resources/ResourceLocation; |
| source | Lnet/minecraft/sounds/SoundSource; |
| x | I |
| y | I |
| z | I |
| volume | F |
| pitch | F |
- name:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;] - source:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - x:
[readInt()I] - y:
[readInt()I] - z:
[readInt()I] - volume:
[readFloat()F] - pitch:
[readFloat()F]
Example read:
public void read(ByteBuf byteBuf) {
this.name = byteBuf.readResourceLocation();
this.source = byteBuf.readEnum();
this.x = byteBuf.readInt();
this.y = byteBuf.readInt();
this.z = byteBuf.readInt();
this.volume = byteBuf.readFloat();
this.pitch = byteBuf.readFloat();
}- name:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;] - source:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - x:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - y:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - z:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - volume:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - pitch:
[writeFloat(F)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeResourceLocation(this.name);
byteBuf.writeEnum(this.source);
byteBuf.writeInt(this.x);
byteBuf.writeInt(this.y);
byteBuf.writeInt(this.z);
byteBuf.writeFloat(this.volume);
byteBuf.writeFloat(this.pitch);
}| Field Name | Field Type |
|---|---|
| containerId | I |
- containerId:
[readUnsignedByte()S]
Example read:
public void read(ByteBuf byteBuf) {
this.containerId = byteBuf.readUnsignedByte();
}- containerId:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.containerId);
}| Field Name | Field Type |
|---|---|
| containerId | I |
| items | Ljava/util/List; |
- containerId:
[readUnsignedByte()S] - items:
[readShort()S]
Example read:
public void read(ByteBuf byteBuf) {
this.containerId = byteBuf.readUnsignedByte();
this.items = byteBuf.readShort();
}- containerId:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - items:
[writeShort(I)Lio/netty/buffer/ByteBuf;] - items:
[writeItem(Lnet/minecraft/world/item/ItemStack;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.containerId);
byteBuf.writeShort(this.items);
byteBuf.writeItem(this.items);
}| Field Name | Field Type |
|---|---|
| event | Lnet/minecraft/network/protocol/game/ClientboundGameEventPacket$Type; |
| param | F |
- event:
[readUnsignedByte()S] - param:
[readFloat()F]
Example read:
public void read(ByteBuf byteBuf) {
this.event = byteBuf.readUnsignedByte();
this.param = byteBuf.readFloat();
}- event:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - param:
[writeFloat(F)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.event);
byteBuf.writeFloat(this.param);
}| Field Name | Field Type |
|---|---|
| message | Lnet/minecraft/network/chat/Component; |
| type | Lnet/minecraft/network/chat/ChatType; |
| sender | Ljava/util/UUID; |
- message:
[readComponent()Lnet/minecraft/network/chat/Component;] - type:
[readByte()B] - sender:
[readUUID()Ljava/util/UUID;]
Example read:
public void read(ByteBuf byteBuf) {
this.message = byteBuf.readComponent();
this.type = byteBuf.readByte();
this.sender = byteBuf.readUUID();
}- message:
[writeComponent(Lnet/minecraft/network/chat/Component;)Lnet/minecraft/network/FriendlyByteBuf;] - type:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - sender:
[writeUUID(Ljava/util/UUID;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeComponent(this.message);
byteBuf.writeByte(this.type);
byteBuf.writeUUID(this.sender);
}| Field Name | Field Type |
|---|---|
| x | I |
| z | I |
| availableSections | I |
| heightmaps | Lnet/minecraft/nbt/CompoundTag; |
| biomes | [I |
| buffer | [B |
| blockEntitiesTags | Ljava/util/List; |
- x:
[readInt()I] - z:
[readInt()I] - availableSections:
[readVarInt()I] - heightmaps:
[readNbt()Lnet/minecraft/nbt/CompoundTag;] - biomes:
[readVarIntArray(I)[I] - buffer:
[readVarInt()I] - blockEntitiesTags:
[readBytes([B)Lio/netty/buffer/ByteBuf;, readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.x = byteBuf.readInt();
this.z = byteBuf.readInt();
this.availableSections = byteBuf.readVarInt();
this.heightmaps = byteBuf.readNbt();
this.biomes = byteBuf.readVarIntArray();
this.buffer = byteBuf.readVarInt();
this.blockEntitiesTags = byteBuf.readBytes();
}- x:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - z:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - availableSections:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - heightmaps:
[writeNbt(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/network/FriendlyByteBuf;] - biomes:
[writeVarIntArray([I)Lnet/minecraft/network/FriendlyByteBuf;] - buffer:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - buffer:
[writeBytes([B)Lio/netty/buffer/ByteBuf;] - blockEntitiesTags:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - blockEntitiesTags:
[writeNbt(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeInt(this.x);
byteBuf.writeInt(this.z);
byteBuf.writeVarInt(this.availableSections);
byteBuf.writeNbt(this.heightmaps);
byteBuf.writeVarIntArray(this.biomes);
byteBuf.writeVarInt(this.buffer);
byteBuf.writeBytes(this.buffer);
byteBuf.writeVarInt(this.blockEntitiesTags);
byteBuf.writeNbt(this.blockEntitiesTags);
}| Field Name | Field Type |
|---|---|
| difficulty | Lnet/minecraft/world/Difficulty; |
| locked | Z |
- difficulty:
[readUnsignedByte()S] - locked:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.difficulty = byteBuf.readUnsignedByte();
this.locked = byteBuf.readBoolean();
}- difficulty:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - locked:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.difficulty);
byteBuf.writeBoolean(this.locked);
}| Field Name | Field Type |
|---|---|
| containerId | I |
| uid | S |
| accepted | Z |
- containerId:
[readUnsignedByte()S] - uid:
[readShort()S] - accepted:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.containerId = byteBuf.readUnsignedByte();
this.uid = byteBuf.readShort();
this.accepted = byteBuf.readBoolean();
}- containerId:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - uid:
[writeShort(I)Lio/netty/buffer/ByteBuf;] - accepted:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeByte(this.containerId);
byteBuf.writeShort(this.uid);
byteBuf.writeBoolean(this.accepted);
}| Field Name | Field Type |
|---|---|
| id | I |
| suggestions | Lcom/mojang/brigadier/suggestion/Suggestions; |
- id:
[readVarInt()I] - suggestions:
[readVarInt()I, readVarInt()I, readVarInt()I, readUtf(I)Ljava/lang/String;, readBoolean()Z, readComponent()Lnet/minecraft/network/chat/Component;]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readVarInt();
this.suggestions = byteBuf.readVarInt();
}- id:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - suggestions:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - suggestions:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - suggestions:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - suggestions:
[writeUtf(Ljava/lang/String;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.id);
byteBuf.writeVarInt(this.suggestions);
byteBuf.writeVarInt(this.suggestions);
byteBuf.writeVarInt(this.suggestions);
byteBuf.writeUtf(this.suggestions);
}| Field Name | Field Type |
|---|---|
| pos | Lnet/minecraft/core/BlockPos; |
| b0 | I |
| b1 | I |
| block | Lnet/minecraft/world/level/block/Block; |
- pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;] - b0:
[readUnsignedByte()S] - b1:
[readUnsignedByte()S] - block:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.pos = byteBuf.readBlockPos();
this.b0 = byteBuf.readUnsignedByte();
this.b1 = byteBuf.readUnsignedByte();
this.block = byteBuf.readVarInt();
}- pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;] - b0:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - b1:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - block:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeBlockPos(this.pos);
byteBuf.writeByte(this.b0);
byteBuf.writeByte(this.b1);
byteBuf.writeVarInt(this.block);
}| Field Name | Field Type |
|---|---|
| pos | Lnet/minecraft/core/BlockPos; |
| blockState | Lnet/minecraft/world/level/block/state/BlockState; |
- pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;] - blockState:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.pos = byteBuf.readBlockPos();
this.blockState = byteBuf.readVarInt();
}- pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;] - blockState:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeBlockPos(this.pos);
byteBuf.writeVarInt(this.blockState);
}| Field Name | Field Type |
|---|---|
| pos | Lnet/minecraft/core/BlockPos; |
| type | I |
| tag | Lnet/minecraft/nbt/CompoundTag; |
- pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;] - type:
[readUnsignedByte()S] - tag:
[readNbt()Lnet/minecraft/nbt/CompoundTag;]
Example read:
public void read(ByteBuf byteBuf) {
this.pos = byteBuf.readBlockPos();
this.type = byteBuf.readUnsignedByte();
this.tag = byteBuf.readNbt();
}- pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;] - type:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - tag:
[writeNbt(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeBlockPos(this.pos);
byteBuf.writeByte(this.type);
byteBuf.writeNbt(this.tag);
}| Field Name | Field Type |
|---|---|
| id | I |
| pos | Lnet/minecraft/core/BlockPos; |
| progress | I |
- id:
[readVarInt()I] - pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;] - progress:
[readUnsignedByte()S]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readVarInt();
this.pos = byteBuf.readBlockPos();
this.progress = byteBuf.readUnsignedByte();
}- id:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;] - progress:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.id);
byteBuf.writeBlockPos(this.pos);
byteBuf.writeByte(this.progress);
}| Field Name | Field Type |
|---|---|
| id | I |
| action | I |
- id:
[readVarInt()I] - action:
[readUnsignedByte()S]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readVarInt();
this.action = byteBuf.readUnsignedByte();
}- id:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - action:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.id);
byteBuf.writeByte(this.action);
}| Field Name | Field Type |
|---|---|
| id | Ljava/util/UUID; |
| operation | Lnet/minecraft/network/protocol/game/ClientboundBossEventPacket$Operation; |
| name | Lnet/minecraft/network/chat/Component; |
| pct | F |
| color | Lnet/minecraft/world/BossEvent$BossBarColor; |
| overlay | Lnet/minecraft/world/BossEvent$BossBarOverlay; |
| darkenScreen | Z |
| playMusic | Z |
| createWorldFog | Z |
- id:
[readUUID()Ljava/util/UUID;] - operation:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - name:
[readComponent()Lnet/minecraft/network/chat/Component;] - pct:
[readFloat()F] - color:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - overlay:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - pct:
[readUnsignedByte()S, readFloat()F] - name:
[readComponent()Lnet/minecraft/network/chat/Component;] - color:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - overlay:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readUUID();
this.operation = byteBuf.readEnum();
this.name = byteBuf.readComponent();
this.pct = byteBuf.readFloat();
this.color = byteBuf.readEnum();
this.overlay = byteBuf.readEnum();
this.pct = byteBuf.readUnsignedByte();
this.name = byteBuf.readComponent();
this.color = byteBuf.readEnum();
this.overlay = byteBuf.readEnum();
}- id:
[writeUUID(Ljava/util/UUID;)Lnet/minecraft/network/FriendlyByteBuf;] - operation:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - name:
[writeComponent(Lnet/minecraft/network/chat/Component;)Lnet/minecraft/network/FriendlyByteBuf;] - pct:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - color:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - overlay:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - pct:
[writeFloat(F)Lio/netty/buffer/ByteBuf;] - name:
[writeComponent(Lnet/minecraft/network/chat/Component;)Lnet/minecraft/network/FriendlyByteBuf;] - color:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - overlay:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeUUID(this.id);
byteBuf.writeEnum(this.operation);
byteBuf.writeComponent(this.name);
byteBuf.writeFloat(this.pct);
byteBuf.writeEnum(this.color);
byteBuf.writeEnum(this.overlay);
byteBuf.writeFloat(this.pct);
byteBuf.writeComponent(this.name);
byteBuf.writeEnum(this.color);
byteBuf.writeEnum(this.overlay);
}| Field Name | Field Type |
|---|---|
| pos | Lnet/minecraft/core/BlockPos; |
| state | Lnet/minecraft/world/level/block/state/BlockState; |
| action | Lnet/minecraft/network/protocol/game/ServerboundPlayerActionPacket$Action; |
| allGood | Z |
- pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;] - state:
[readVarInt()I] - action:
[readEnum(Ljava/lang/Class;)Ljava/lang/Enum;] - allGood:
[readBoolean()Z]
Example read:
public void read(ByteBuf byteBuf) {
this.pos = byteBuf.readBlockPos();
this.state = byteBuf.readVarInt();
this.action = byteBuf.readEnum();
this.allGood = byteBuf.readBoolean();
}- pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;] - state:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - action:
[writeEnum(Ljava/lang/Enum;)Lnet/minecraft/network/FriendlyByteBuf;] - allGood:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeBlockPos(this.pos);
byteBuf.writeVarInt(this.state);
byteBuf.writeEnum(this.action);
byteBuf.writeBoolean(this.allGood);
}| Field Name | Field Type |
|---|---|
| entityId | I |
| playerId | Ljava/util/UUID; |
| x | D |
| y | D |
| z | D |
| yRot | B |
| xRot | B |
- entityId:
[readVarInt()I] - playerId:
[readUUID()Ljava/util/UUID;] - x:
[readDouble()D] - y:
[readDouble()D] - z:
[readDouble()D] - yRot:
[readByte()B] - xRot:
[readByte()B]
Example read:
public void read(ByteBuf byteBuf) {
this.entityId = byteBuf.readVarInt();
this.playerId = byteBuf.readUUID();
this.x = byteBuf.readDouble();
this.y = byteBuf.readDouble();
this.z = byteBuf.readDouble();
this.yRot = byteBuf.readByte();
this.xRot = byteBuf.readByte();
}- entityId:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - playerId:
[writeUUID(Ljava/util/UUID;)Lnet/minecraft/network/FriendlyByteBuf;] - x:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - y:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - z:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - yRot:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - xRot:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.entityId);
byteBuf.writeUUID(this.playerId);
byteBuf.writeDouble(this.x);
byteBuf.writeDouble(this.y);
byteBuf.writeDouble(this.z);
byteBuf.writeByte(this.yRot);
byteBuf.writeByte(this.xRot);
}| Field Name | Field Type |
|---|---|
| stats | Lit/unimi/dsi/fastutil/objects/Object2IntMap; |
- stats:
[readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.stats = byteBuf.readVarInt();
}- stats:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - stats:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.stats);
byteBuf.writeVarInt(this.stats);
}| Field Name | Field Type |
|---|---|
| identifier | Lnet/minecraft/resources/ResourceLocation; |
| data | Lnet/minecraft/network/FriendlyByteBuf; |
- identifier:
[readResourceLocation()Lnet/minecraft/resources/ResourceLocation;] - data:
[readBytes(I)Lio/netty/buffer/ByteBuf;]
Example read:
public void read(ByteBuf byteBuf) {
this.identifier = byteBuf.readResourceLocation();
this.data = byteBuf.readBytes();
}- identifier:
[writeResourceLocation(Lnet/minecraft/resources/ResourceLocation;)Lnet/minecraft/network/FriendlyByteBuf;] - data:
[writeBytes(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeResourceLocation(this.identifier);
byteBuf.writeBytes(this.data);
}| Field Name | Field Type |
|---|---|
| id | I |
| uuid | Ljava/util/UUID; |
| pos | Lnet/minecraft/core/BlockPos; |
| direction | Lnet/minecraft/core/Direction; |
| motive | I |
- id:
[readVarInt()I] - uuid:
[readUUID()Ljava/util/UUID;] - motive:
[readVarInt()I] - pos:
[readBlockPos()Lnet/minecraft/core/BlockPos;] - direction:
[readUnsignedByte()S]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readVarInt();
this.uuid = byteBuf.readUUID();
this.motive = byteBuf.readVarInt();
this.pos = byteBuf.readBlockPos();
this.direction = byteBuf.readUnsignedByte();
}- id:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - uuid:
[writeUUID(Ljava/util/UUID;)Lnet/minecraft/network/FriendlyByteBuf;] - motive:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - pos:
[writeBlockPos(Lnet/minecraft/core/BlockPos;)Lnet/minecraft/network/FriendlyByteBuf;] - direction:
[writeByte(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.id);
byteBuf.writeUUID(this.uuid);
byteBuf.writeVarInt(this.motive);
byteBuf.writeBlockPos(this.pos);
byteBuf.writeByte(this.direction);
}| Field Name | Field Type |
|---|---|
| id | I |
| x | D |
| y | D |
| z | D |
| value | I |
- id:
[readVarInt()I] - x:
[readDouble()D] - y:
[readDouble()D] - z:
[readDouble()D] - value:
[readShort()S]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readVarInt();
this.x = byteBuf.readDouble();
this.y = byteBuf.readDouble();
this.z = byteBuf.readDouble();
this.value = byteBuf.readShort();
}- id:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - x:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - y:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - z:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - value:
[writeShort(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.id);
byteBuf.writeDouble(this.x);
byteBuf.writeDouble(this.y);
byteBuf.writeDouble(this.z);
byteBuf.writeShort(this.value);
}| Field Name | Field Type |
|---|---|
| id | I |
| uuid | Ljava/util/UUID; |
| type | I |
| x | D |
| y | D |
| z | D |
| xd | I |
| yd | I |
| zd | I |
| yRot | B |
| xRot | B |
| yHeadRot | B |
- id:
[readVarInt()I] - uuid:
[readUUID()Ljava/util/UUID;] - type:
[readVarInt()I] - x:
[readDouble()D] - y:
[readDouble()D] - z:
[readDouble()D] - yRot:
[readByte()B] - xRot:
[readByte()B] - yHeadRot:
[readByte()B] - xd:
[readShort()S] - yd:
[readShort()S] - zd:
[readShort()S]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readVarInt();
this.uuid = byteBuf.readUUID();
this.type = byteBuf.readVarInt();
this.x = byteBuf.readDouble();
this.y = byteBuf.readDouble();
this.z = byteBuf.readDouble();
this.yRot = byteBuf.readByte();
this.xRot = byteBuf.readByte();
this.yHeadRot = byteBuf.readByte();
this.xd = byteBuf.readShort();
this.yd = byteBuf.readShort();
this.zd = byteBuf.readShort();
}- id:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - uuid:
[writeUUID(Ljava/util/UUID;)Lnet/minecraft/network/FriendlyByteBuf;] - type:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - x:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - y:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - z:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - yRot:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - xRot:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - yHeadRot:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - xd:
[writeShort(I)Lio/netty/buffer/ByteBuf;] - yd:
[writeShort(I)Lio/netty/buffer/ByteBuf;] - zd:
[writeShort(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.id);
byteBuf.writeUUID(this.uuid);
byteBuf.writeVarInt(this.type);
byteBuf.writeDouble(this.x);
byteBuf.writeDouble(this.y);
byteBuf.writeDouble(this.z);
byteBuf.writeByte(this.yRot);
byteBuf.writeByte(this.xRot);
byteBuf.writeByte(this.yHeadRot);
byteBuf.writeShort(this.xd);
byteBuf.writeShort(this.yd);
byteBuf.writeShort(this.zd);
}| Field Name | Field Type |
|---|---|
| id | I |
| uuid | Ljava/util/UUID; |
| x | D |
| y | D |
| z | D |
| xa | I |
| ya | I |
| za | I |
| xRot | I |
| yRot | I |
| type | Lnet/minecraft/world/entity/EntityType; |
| data | I |
- id:
[readVarInt()I] - uuid:
[readUUID()Ljava/util/UUID;] - type:
[readVarInt()I] - x:
[readDouble()D] - y:
[readDouble()D] - z:
[readDouble()D] - xRot:
[readByte()B] - yRot:
[readByte()B] - data:
[readInt()I] - xa:
[readShort()S] - ya:
[readShort()S] - za:
[readShort()S]
Example read:
public void read(ByteBuf byteBuf) {
this.id = byteBuf.readVarInt();
this.uuid = byteBuf.readUUID();
this.type = byteBuf.readVarInt();
this.x = byteBuf.readDouble();
this.y = byteBuf.readDouble();
this.z = byteBuf.readDouble();
this.xRot = byteBuf.readByte();
this.yRot = byteBuf.readByte();
this.data = byteBuf.readInt();
this.xa = byteBuf.readShort();
this.ya = byteBuf.readShort();
this.za = byteBuf.readShort();
}- id:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - uuid:
[writeUUID(Ljava/util/UUID;)Lnet/minecraft/network/FriendlyByteBuf;] - type:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - x:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - y:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - z:
[writeDouble(D)Lio/netty/buffer/ByteBuf;] - xRot:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - yRot:
[writeByte(I)Lio/netty/buffer/ByteBuf;] - data:
[writeInt(I)Lio/netty/buffer/ByteBuf;] - xa:
[writeShort(I)Lio/netty/buffer/ByteBuf;] - ya:
[writeShort(I)Lio/netty/buffer/ByteBuf;] - za:
[writeShort(I)Lio/netty/buffer/ByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.id);
byteBuf.writeUUID(this.uuid);
byteBuf.writeVarInt(this.type);
byteBuf.writeDouble(this.x);
byteBuf.writeDouble(this.y);
byteBuf.writeDouble(this.z);
byteBuf.writeByte(this.xRot);
byteBuf.writeByte(this.yRot);
byteBuf.writeInt(this.data);
byteBuf.writeShort(this.xa);
byteBuf.writeShort(this.ya);
byteBuf.writeShort(this.za);
}| Field Name | Field Type |
|---|---|
| root | Lcom/mojang/brigadier/tree/RootCommandNode; |
- root:
[readVarInt()I, readVarInt()I]
Example read:
public void read(ByteBuf byteBuf) {
this.root = byteBuf.readVarInt();
}- root:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - root:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.root);
byteBuf.writeVarInt(this.root);
}| Field Name | Field Type |
|---|---|
| x | I |
| z | I |
| skyYMask | J |
| blockYMask | J |
| emptySkyYMask | J |
| emptyBlockYMask | J |
| skyUpdates | Ljava/util/List; |
| blockUpdates | Ljava/util/List; |
| trustEdges | Z |
- x:
[readVarInt()I] - z:
[readVarInt()I] - trustEdges:
[readBoolean()Z] - skyYMask:
[readVarLong()J] - blockYMask:
[readVarLong()J] - emptySkyYMask:
[readVarLong()J] - emptyBlockYMask:
[readVarLong()J] - blockUpdates:
[readByteArray(I)[B]
Example read:
public void read(ByteBuf byteBuf) {
this.x = byteBuf.readVarInt();
this.z = byteBuf.readVarInt();
this.trustEdges = byteBuf.readBoolean();
this.skyYMask = byteBuf.readVarLong();
this.blockYMask = byteBuf.readVarLong();
this.emptySkyYMask = byteBuf.readVarLong();
this.emptyBlockYMask = byteBuf.readVarLong();
this.blockUpdates = byteBuf.readByteArray();
}- x:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - z:
[writeVarInt(I)Lnet/minecraft/network/FriendlyByteBuf;] - trustEdges:
[writeBoolean(Z)Lio/netty/buffer/ByteBuf;] - skyYMask:
[writeVarLong(J)Lnet/minecraft/network/FriendlyByteBuf;] - blockYMask:
[writeVarLong(J)Lnet/minecraft/network/FriendlyByteBuf;] - emptySkyYMask:
[writeVarLong(J)Lnet/minecraft/network/FriendlyByteBuf;] - emptyBlockYMask:
[writeVarLong(J)Lnet/minecraft/network/FriendlyByteBuf;] - skyUpdates:
[writeByteArray([B)Lnet/minecraft/network/FriendlyByteBuf;] - blockUpdates:
[writeByteArray([B)Lnet/minecraft/network/FriendlyByteBuf;]
Example write:
public void write(ByteBuf byteBuf) {
byteBuf.writeVarInt(this.x);
byteBuf.writeVarInt(this.z);
byteBuf.writeBoolean(this.trustEdges);
byteBuf.writeVarLong(this.skyYMask);
byteBuf.writeVarLong(this.blockYMask);
byteBuf.writeVarLong(this.emptySkyYMask);
byteBuf.writeVarLong(this.emptyBlockYMask);
byteBuf.writeByteArray(this.skyUpdates);
byteBuf.writeByteArray(this.blockUpdates);
}