We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acc155c commit 013d922Copy full SHA for 013d922
src/main/java/org/spongepowered/api/data/DataManager.java
@@ -158,6 +158,15 @@ public interface DataManager {
158
*/
159
<T> Optional<DataTranslator<T>> translator(Class<T> objectClass);
160
161
+ /**
162
+ * Registers a {@link DataTranslator} for the desired class.
163
+ *
164
+ * @param objectClass The class of the object type being managed
165
+ * @param translator The translator for the desired class object
166
+ * @param <T> The type of object
167
+ */
168
+ <T> void registerTranslator(Class<T> objectClass, DataTranslator<T> translator);
169
+
170
/**
171
* Creates a new {@link DataContainer} with a default
172
* {@link org.spongepowered.api.data.persistence.DataView.SafetyMode} of
0 commit comments