-
Notifications
You must be signed in to change notification settings - Fork 44
feat: joinpoint separate mod #353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: joinpoint
Are you sure you want to change the base?
Conversation
| var server = senderPlayer.getEntityWorld().getServer(); | ||
| var apis = server.getApiServices(); | ||
| var userCache = apis.nameToIdCache(); | ||
|
|
||
| // player to owned joinpoints | ||
| // player to accessible joinpoints |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was me brainstorming, remove
| private static final JoinpointsConfig config = new JoinpointsConfig( | ||
| Path.of("./config/joinpoints.properties"), | ||
| "Joinpoints Configuration", | ||
| "https://github.com/John-Paul-R/Essential-Commands" // TODO: Update with joinpoints docs link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(though consider merging configs)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(though, this being "part of ec" may be a distinctly "me" thing -- whatever's decided, I should be consistent in the messaging: Is this a plugin for EC, or an entirely separate mod [that has a hard dependency]? -- is my ideal world one where the shared bits are a lib? how much really needs to be shared?)
| private JoinpointsCommandRegistry() {} | ||
|
|
||
| public static void register() { | ||
| CommandRegistrationCallback.EVENT.register((dispatcher, registryAccess, environment) -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should consider registering on the EC root node, and also supporting excluded_top_level_commands
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a new image
| // Ensure EC projects are evaluated and built before joinpoints configuration | ||
| // This is needed because modLocalRuntime needs the jars to exist | ||
| evaluationDependsOnChildren() | ||
| project.evaluationDependsOn(':') | ||
| project.evaluationDependsOn(':ec-core') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ensure this sorcery is still necessary, I think the sorcery in dependencies is doing the heavy lifting rn
…et serialization seems to be gone for some reason
No description provided.