mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
Remove registerHeldType
Built-in module types are no longer held by Iris's own classes: object placements are iris:objects settings, so every type they hold is reached from a registered feature. FeatureRegistry.registerHeldType, HeldTypeRegistration, FeatureCatalog.heldTypes and SchemaSource.heldType go, with the held example module and its schema tests.
This commit is contained in:
1 parent
217cff620c
commit
398f3879ae
12 files changed
+6
-167
No files matched your search
@@ -34,19 +34,6 @@ public interface FeatureRegistry {
|
||||
*/
|
||||
void registerSettings(Class<? extends IrisFeature>... settingsTypes);
|
||||
|
||||
/** Describes a class that Iris's own classes hold, such as the clamp of an object placement, so studio shows
|
||||
* its fields as this class declares them. The class must be one the host loads: a built-in module's class, or a
|
||||
* class of a package the host exposes to pack modules (a pack module's own classes could never be a field of
|
||||
* one of the host's classes, so registering one fails the load). The host reads the class
|
||||
* with its fields in pack JSON, and the class follows the rules of settings classes. Registering a class twice
|
||||
* changes nothing.
|
||||
*
|
||||
* @deprecated Transitional, until the cut-over: only while Iris's own classes still hold built-in module types.
|
||||
* Removed once they do not.
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
void registerHeldType(Class<?> type);
|
||||
|
||||
/** Declares a kind of pack resource this module reads: the JSON files under the kind's folder, served through
|
||||
* {@link com.volmit.resource.PackResources} by the kind's type and described for studio from its class like
|
||||
* settings. The pack load fails when another kind has the same id, type or folder, or the folder is one the
|
||||
|
||||
Reference in new issue
Block a user