Expose the pack type to register data pack.
package org.spongepowered.api.event.lifecycle;
import org.spongepowered.api.datapack.DataPackSerializable;
+import org.spongepowered.api.datapack.DataPackType;
+import org.spongepowered.api.datapack.DataPackTypes;
import org.spongepowered.api.event.GenericEvent;
import org.spongepowered.api.util.annotation.eventgen.NoFactoryMethod;
@NoFactoryMethod
public interface RegisterDataPackValueEvent<T extends DataPackSerializable> extends LifecycleEvent, GenericEvent<T> {
+ DataPackType<T> type();
+
RegisterDataPackValueEvent<T> register(T serializable);
}
