Skip to content

Commit

Permalink
EntityMetadataProvider backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
retrooper committed Dec 13, 2023
1 parent de4594f commit 9b8de17
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,16 @@ public interface EntityMetadataProvider {
* @return Metadata (list of entity data)
*/
List<EntityData> 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> entityData() {
return entityData(ClientVersion.getLatest());
}
}

0 comments on commit 9b8de17

Please sign in to comment.