Added PacketContainer#getUUIDLists() (#2072)

The 1.19.3 PlayerListRemove is the first one using List<UUID>

Fixes #2048
This commit is contained in:
Mathéo Cimbaro 2023-01-10 04:43:39 +01:00 committed by GitHub
parent 9d183e85d7
commit 30b69d3ecf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -926,6 +926,12 @@ public abstract class AbstractStructure {
);
}
public StructureModifier<List<UUID>> getUUIDLists() {
return structureModifier.withType(
List.class,
BukkitConverters.getListConverter(Converters.passthrough(UUID.class)));
}
/**
* Retrieve a read/write structure for Instants in (mostly for use in 1.19+)
* @return The Structure Modifier