I am working on a mod based on Steven Universe. Steven Universe has a basic concept of gems, which are living entities based on the physical objects. Each gem has a gem placement, and can also be reduced to their item form. Once they reform all of the "data" is restored including the gem placement.
Example:
Ruby 1 has a gem on her right eye. Ruby 2 has her gem on her left eye. Ruby 1 is reduced to her gem by Ruby 2. Ruby 1 reforms with her gem on her right eye.
Now, the code I'm using works fine on randomly assigning a gem and representing it. The problem is that after a gem is reduced to its gem and reforms, the gem is no longer visible.
The layer that represents the gemstone is also an item instead of a textured layer. The item that represents the gemstone is what also represents the gem placement.
I don't know how to get the item to reappear after the gem reforms.
The attached files are filed I believe may be the cause of this problem.
EntityGem.java
LayerGemstone.java
ItemGemstone.java