Skip to content

Refactor NamespacedIdentifier#identifier -> NamespacedIdentifier#path - #83

Open
lowercasebtw wants to merge 1 commit into
OrnitheMC:gen2from
lowercasebtw:gen2
Open

Refactor NamespacedIdentifier#identifier -> NamespacedIdentifier#path#83
lowercasebtw wants to merge 1 commit into
OrnitheMC:gen2from
lowercasebtw:gen2

Conversation

@lowercasebtw

Copy link
Copy Markdown

The reasoning behind this is that a Identifier does not hold a child "identifier", and every other impl from Modern to other things name it the "path" of the Identifier. calling identifier.identifier makes 0 sense.

I also moved the vanilla namespace constant to NamespacedIdentifier as I think it belongs there instead for more convinent access as thats where people would think to look for it at, as before I did not know it existed elsewhere.

I have left a @Deprecated implementation of identifier that redirects to path, so that peoples projects will continue to work for the time being.

I also fixed some variable names and tried to tidy it up a bit to be more readable, alongside making the comparator use Comparator chaining.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant