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

net.minecraft.world.item.Tiers usage [1.18.1-2.3.1] #40

Open
Kitoglav opened this issue Feb 5, 2022 · 3 comments
Open

net.minecraft.world.item.Tiers usage [1.18.1-2.3.1] #40

Kitoglav opened this issue Feb 5, 2022 · 3 comments

Comments

@Kitoglav
Copy link

Kitoglav commented Feb 5, 2022

Hi, I develop mod with non-direct integration to Lumberjack (so i can't directly use your classes as API) and i need to register ItemLumberAxe instances through Reflection API, but there is a problem, ItemLumberAxe init constructor can't accept interface net.minecraft.world.item.Tier parameter and allows only enum net.minecraft.world.item.Tiers. Can you please update it to match net.minecraft.world.item.Tier to make it much easier to integrate to your mod? Or can you advise me, how can I use my net.minecraft.world.item.Tier implementation with your item-class?
image
image

@Claycorp
Copy link
Member

Claycorp commented Feb 5, 2022

Yeah I can make some changes for you to register your own.

I've been meaning to rewrite this mod for 1.13+ and how the new tools work + some extra stuff but just never got around to it as it relies on another mod I would like to make. Thus it's just been ported with the bare minimum "it works" requirement.

I'll take a look at it here in the next couple days. Any versions you are targeting specifically?

@Kitoglav
Copy link
Author

Kitoglav commented Feb 5, 2022

Thanks for answer. I'll be looking forward to it!
I plan to put my integration only in 1.18.1 version, so I need only 2.3.1.

@Claycorp
Copy link
Member

Claycorp commented Feb 5, 2022

Alright, I won't worry about backporting then. Thanks for reaching out!

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

2 participants