From caf9e33304a925faffb4f472769e577b8a7239f0 Mon Sep 17 00:00:00 2001 From: KnightMiner Date: Wed, 27 Mar 2024 04:40:22 -0400 Subject: [PATCH] Add some hints to generic loader registry about replacements for IHaveLoader Thats probably the most awkward part of the migration, as IAmLoadable.Record cannot just extend this due to generic differences. --- .../mantle/data/registry/GenericLoaderRegistry.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/slimeknights/mantle/data/registry/GenericLoaderRegistry.java b/src/main/java/slimeknights/mantle/data/registry/GenericLoaderRegistry.java index 57815321..088bee58 100644 --- a/src/main/java/slimeknights/mantle/data/registry/GenericLoaderRegistry.java +++ b/src/main/java/slimeknights/mantle/data/registry/GenericLoaderRegistry.java @@ -148,9 +148,15 @@ public interface IGenericLoader { 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 getLoader(); }