1 decade ago by stahlmanDesign
If I extend EntityPlayer to create a few different versions like EntityPlayerFlying, EntityPlayerSwimming, and later I do this:
will it recognize my extended classes as also being the one they inherit from? This works in other languages but I don't know about JavaScript. I'll probably do a test if no one knows.
var player = this.getEntitiesByType(EntityPlayer)[0];
will it recognize my extended classes as also being the one they inherit from? This works in other languages but I don't know about JavaScript. I'll probably do a test if no one knows.