Jump to content

Creating Registry for interfaces & Generic events


Abastro

Recommended Posts

Hello.

I want to create registry for interface, because I need subsitution-capable iterable of the interfaces, which can be registered by other mods. How would I go with It?

 

Also how genetic events work? Would subscribing with subclass of the event supertype class work?

Edited by Abastro

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Link to comment
Share on other sites

What I want is registry of providers, which provides styles and objects. They should be ordered, and some of them should be able to be selected/grouped/etc. with configuration & save file. Some of these have persistent name.

Currently I'm going to implement it with a copy of forge registry - with the map replaced with either ordered map or list. Is there a better way?

(I can't use simple list because it should be able to be loaded from the save file)

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Link to comment
Share on other sites

How can I correctly load the list from file?

Some of the entry could be missing.

Edited by Abastro

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Link to comment
Share on other sites

Bump.

Also I need substitution method and syncing. The providers which isn't present on the server should be dropped on client.

Edited by Abastro

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.