DoubleDoorDevelopment / Lumberjack

Boom. Tree gone!
BSD 3-Clause "New" or "Revised" License
5 stars 7 forks source link

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

Open Kitoglav opened 2 years ago

Kitoglav commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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