-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v686/Bedrock_v686.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.cloudburstmc.protocol.bedrock.codec.v686; | ||
|
||
import org.cloudburstmc.protocol.bedrock.codec.BedrockCodec; | ||
import org.cloudburstmc.protocol.bedrock.codec.v685.Bedrock_v685; | ||
import org.cloudburstmc.protocol.bedrock.codec.v686.serializer.ClientboundCloseFormSerializer_v686; | ||
import org.cloudburstmc.protocol.bedrock.data.PacketRecipient; | ||
import org.cloudburstmc.protocol.bedrock.packet.ClientboundCloseFormPacket; | ||
|
||
public class Bedrock_v686 extends Bedrock_v685 { | ||
|
||
public static final BedrockCodec CODEC = Bedrock_v685.CODEC.toBuilder() | ||
.protocolVersion(686) | ||
.minecraftVersion("1.21.2") | ||
.registerPacket(ClientboundCloseFormPacket::new, ClientboundCloseFormSerializer_v686.INSTANCE, 310, PacketRecipient.CLIENT) | ||
.build(); | ||
} |
20 changes: 20 additions & 0 deletions
20
...udburstmc/protocol/bedrock/codec/v686/serializer/ClientboundCloseFormSerializer_v686.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.cloudburstmc.protocol.bedrock.codec.v686.serializer; | ||
|
||
import io.netty.buffer.ByteBuf; | ||
import org.cloudburstmc.protocol.bedrock.codec.BedrockCodecHelper; | ||
import org.cloudburstmc.protocol.bedrock.codec.BedrockPacketSerializer; | ||
import org.cloudburstmc.protocol.bedrock.packet.ClientboundCloseFormPacket; | ||
|
||
public class ClientboundCloseFormSerializer_v686 implements BedrockPacketSerializer<ClientboundCloseFormPacket> { | ||
public static final ClientboundCloseFormSerializer_v686 INSTANCE = new ClientboundCloseFormSerializer_v686(); | ||
|
||
@Override | ||
public void serialize(ByteBuf buffer, BedrockCodecHelper helper, ClientboundCloseFormPacket packet) { | ||
|
||
} | ||
|
||
@Override | ||
public void deserialize(ByteBuf buffer, BedrockCodecHelper helper, ClientboundCloseFormPacket packet) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...ec/src/main/java/org/cloudburstmc/protocol/bedrock/packet/ClientboundCloseFormPacket.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.cloudburstmc.protocol.bedrock.packet; | ||
|
||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.ToString; | ||
import org.cloudburstmc.protocol.common.PacketSignal; | ||
|
||
@Data | ||
@EqualsAndHashCode(doNotUseGetters = true) | ||
@ToString(doNotUseGetters = true) | ||
public class ClientboundCloseFormPacket implements BedrockPacket { | ||
|
||
@Override | ||
public PacketSignal handle(BedrockPacketHandler handler) { | ||
return handler.handle(this); | ||
} | ||
|
||
@Override | ||
public BedrockPacketType getPacketType() { | ||
return BedrockPacketType.CLIENTBOUND_CLOSE_FORM; | ||
} | ||
} |