Skip to content
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

Specify classes where a specific constant should be used #14

Open
YanisBft opened this issue Apr 15, 2021 · 0 comments
Open

Specify classes where a specific constant should be used #14

YanisBft opened this issue Apr 15, 2021 · 0 comments

Comments

@YanisBft
Copy link

When two constants have the same value, it would be useful to be able to specify classes where one of these constants should be used.

For example, Minecraft has two constants with value 10 for entity statuses: one in EntityStatuses, for sheeps eating grass, and one in TntMinecartEntity for primed tnt.

Specifying a class where one or the other should be used would allow something like "when sendEntityStatus() is called in TntMinecartEntity, use the constant of this class, otherwise use the constant in EntityStatuses".

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

No branches or pull requests

1 participant