Skip to content

Commit 955ccac

Browse files
committed
improve more wrappers, remove orphans
1 parent fc3f2f3 commit 955ccac

83 files changed

Lines changed: 552 additions & 1111 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/main/java/net/dmulloy2/protocol/wrappers/configuration/clientbound/WrappedClientboundClearDialogPacket.java

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/main/java/net/dmulloy2/protocol/wrappers/configuration/clientbound/WrappedClientboundFinishConfigurationPacket.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/main/java/net/dmulloy2/protocol/wrappers/configuration/clientbound/WrappedClientboundRegistryDataPacket.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,10 @@ public WrappedClientboundRegistryDataPacket() {
1818
public WrappedClientboundRegistryDataPacket(PacketContainer packet) {
1919
super(packet, TYPE);
2020
}
21+
22+
// TODO: missing field 'registry' (NMS type: ResourceKey<? extends Registry<?>>)
23+
// Use getMinecraftKeys().read(0) for the registry key identifier, or getSpecificModifier(ResourceKey.class).read(0).
24+
// TODO: missing field 'entries' (NMS type: List<RegistrySynchronization.PackedRegistryEntry>)
25+
// Each entry has an id (Identifier) and an optional NBT tag. Use handle.getModifier().read(1)
26+
// for the raw List, or add a dedicated WrappedPackedRegistryEntry class.
2127
}

src/main/java/net/dmulloy2/protocol/wrappers/configuration/clientbound/WrappedClientboundResetChatPacket.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/main/java/net/dmulloy2/protocol/wrappers/configuration/clientbound/WrappedClientboundSelectKnownPacksPacket.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ public WrappedClientboundSelectKnownPacksPacket() {
1919
public WrappedClientboundSelectKnownPacksPacket(PacketContainer packet) {
2020
super(packet, TYPE);
2121
}
22+
23+
// TODO: missing field 'knownPacks' (NMS type: List<KnownPack> — record with namespace, id, version Strings)
24+
// Use AutoWrapper or a dedicated WrappedKnownPack class; each KnownPack is a simple 3-String record.
25+
// Alternatively, handle.getModifier().read(0) returns the raw List<KnownPack>.
2226
}

src/main/java/net/dmulloy2/protocol/wrappers/configuration/clientbound/WrappedClientboundServerLinksPacket.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ public WrappedClientboundServerLinksPacket() {
1818
public WrappedClientboundServerLinksPacket(PacketContainer packet) {
1919
super(packet, TYPE);
2020
}
21+
22+
// TODO: missing field 'links' (NMS type: List<ServerLinks.UntrustedEntry>)
23+
// Same as the game-phase ServerLinks packet. No ProtocolLib accessor exists.
24+
// Use handle.getModifier().read(0) for the raw List.
2125
}

src/main/java/net/dmulloy2/protocol/wrappers/configuration/clientbound/WrappedClientboundShowDialogPacket.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ public WrappedClientboundShowDialogPacket() {
1919
public WrappedClientboundShowDialogPacket(PacketContainer packet) {
2020
super(packet, TYPE);
2121
}
22+
23+
// TODO: missing field 'dialog' (NMS type: Holder<Dialog> — registry-backed dialog definition)
24+
// Same as the game-phase ShowDialog packet. Use handle.getModifier().read(0) for the raw Holder<Dialog>.
2225
}

src/main/java/net/dmulloy2/protocol/wrappers/configuration/clientbound/WrappedClientboundUpdateTagsPacket.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ public WrappedClientboundUpdateTagsPacket() {
1818
public WrappedClientboundUpdateTagsPacket(PacketContainer packet) {
1919
super(packet, TYPE);
2020
}
21+
22+
// TODO: missing field 'tags' (NMS type: Map<ResourceKey<? extends Registry<?>>, TagNetworkSerialization.NetworkPayload>)
23+
// Same as the game-phase UpdateTags packet. No ProtocolLib accessor exists.
24+
// Use handle.getModifier().read(0) to get the raw Map.
2125
}

src/main/java/net/dmulloy2/protocol/wrappers/configuration/serverbound/WrappedServerboundAcceptCodeOfConductPacket.java

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/main/java/net/dmulloy2/protocol/wrappers/configuration/serverbound/WrappedServerboundClientInformationPacket.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,11 @@ public WrappedServerboundClientInformationPacket() {
1818
public WrappedServerboundClientInformationPacket(PacketContainer packet) {
1919
super(packet, TYPE);
2020
}
21+
22+
// TODO: missing field 'information' (NMS type: ClientInformation — record with locale, viewDistance, chatMode, etc.)
23+
// ClientInformation holds: String locale, int viewDistance, ChatVisiblity chatVisibility,
24+
// boolean chatColors, int modelCustomisation, HumanoidArm mainHand, boolean textFilteringEnabled,
25+
// boolean allowsListing, ParticleStatus particleStatus.
26+
// Use AutoWrapper with a dedicated WrappedClientInformation POJO, or expose individual fields
27+
// via getStrings().read(0), getIntegers().read(0), etc. in declaration order.
2128
}

0 commit comments

Comments
 (0)