Skip to content

Commit

Permalink
Add some hints to generic loader registry about replacements for IHav…
Browse files Browse the repository at this point in the history
…eLoader

Thats probably the most awkward part of the migration, as IAmLoadable.Record cannot just extend this due to generic differences.
  • Loading branch information
KnightMiner committed Mar 27, 2024
1 parent 80ee8f9 commit caf9e33
Showing 1 changed file with 8 additions and 2 deletions.
Expand Up @@ -148,9 +148,15 @@ public interface IGenericLoader<T> {
void toNetwork(T object, FriendlyByteBuf buffer);
}

/** Interface for an object with a loader */
/**
* Interface for an object with a loader.
* TODO 1.20: replace with {@link slimeknights.mantle.data.loadable.IAmLoadable.Record}
*/
public interface IHaveLoader {
/** Gets the loader for the object */
/**
* Gets the loader for the object.
* If you wish to suppress the deprecation warning, change the return type to {@link slimeknights.mantle.data.loadable.record.RecordLoadable}.
*/
IGenericLoader<? extends IHaveLoader> getLoader();
}

Expand Down

0 comments on commit caf9e33

Please sign in to comment.