diff --git a/api/src/main/java/com/github/retrooper/packetevents/protocol/entity/data/EntityMetadataProvider.java b/api/src/main/java/com/github/retrooper/packetevents/protocol/entity/data/EntityMetadataProvider.java index c4141d4dff..aa1c41506c 100644 --- a/api/src/main/java/com/github/retrooper/packetevents/protocol/entity/data/EntityMetadataProvider.java +++ b/api/src/main/java/com/github/retrooper/packetevents/protocol/entity/data/EntityMetadataProvider.java @@ -20,4 +20,16 @@ public interface EntityMetadataProvider { * @return Metadata (list of entity data) */ List entityData(ClientVersion version); + + /** + * Similar to {@link #entityData(ClientVersion)} but does not provide a protocol version. + * It is not advised to use nor implement this. + * It is deprecated because it restricts you by not providing you the format in which the metadata should be. + * @return Metadata (list of entity data) + * @deprecated Does not specify format of metadata, therefore not advised to use this. It will assume the current latest version. + */ + @Deprecated + default List entityData() { + return entityData(ClientVersion.getLatest()); + } }