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

ModContent #3

Open
Metacinnabar opened this issue May 28, 2020 · 2 comments
Open

ModContent #3

Metacinnabar opened this issue May 28, 2020 · 2 comments

Comments

@Metacinnabar
Copy link

Convert mod.ItemType("CoolItemClass") to ModContent.ItemType<CoolItemClass>() while automatically adding the using statement required.

@JavidPack
Copy link
Contributor

No, because that isn't always correct.

@Chicken-Bones
Copy link
Member

I'm actually in favour of making this a suggestion. You can check if "CoolItemClass" exists in only one namespace within the mod project. If it does there's a fair chance that it maps to the string via autoload. People manually registering string -> item probably don't use the classname.

@JavidPack JavidPack reopened this May 28, 2020
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

3 participants