emilyploszaj / trinkets

A data-driven accessory mod and API for Minecraft using Fabric.
https://www.curseforge.com/minecraft/mc-mods/trinkets
MIT License
165 stars 72 forks source link

[Suggestion] Make TrinketItem as an interface. #302

Closed IAFEnvoy closed 5 months ago

IAFEnvoy commented 5 months ago

The TrinketItem class only extends the Item class, which makes it difficult to add special things such as weapons into slots.

So i think making it to an interface like Curios API is better.

fzzyhmstrs commented 5 months ago

Trinket is an Interface, which TrinketItem implements.

emilyploszaj commented 5 months ago

fzzy is correct, the interface you're looking for is Trinket. TrinketItem is just a class that extends item and implements Trinket with auto registration, for convenience sake.