Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/24/17 in all areas

  1. Don't implement IItemColor on your Item, it's a client-only interface and as such will crash the dedicated server if you reference it in common code. You need to create a completely separate implementation of it (e.g. with an anonymous class or lambda). You can't store the SingularityType in a field of your Item class unless you create and register an instance of the class for each SingularityType. You need to use the ItemStack's metadata value to get the SingularityType. You should store the colours as part of the SingularityType enum rather than using a giant switch statement to determine the colour.
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.