1 decade ago by Silent
Hello.
I know I can do checks with instanceof, but how can I find out exactly what is my object's parent? I need to pass an entity to a function, that will spawn another entity of the same type as it's parameter.
Thanks in advance.
I know I can do checks with instanceof, but how can I find out exactly what is my object's parent? I need to pass an entity to a function, that will spawn another entity of the same type as it's parameter.
Thanks in advance.