Jump to content

Weird lack of inheritance problem (or something along those lines...)


coolAlias

Recommended Posts

Try this:

// our entity class:
public class EntityExperiment extends EntitySquid {
public EntityExperiment(World world) {
super(world);
}
}
// no other methods, just plain old inheritance at work here
// entity is registered normally
// no render class is registered, as it uses RenderSquid automatically

When spawning this sub-class of EntitySquid, it renders normally and has the regular tentacle behavior, but for some reason, and unlike the vanilla squids, it never changes its head direction, so the head is always pointing straight up making it look like a weird fishing bobber suddenly moving in various directions.

 

Does anyone have any idea why this entity would fail to exhibit all of the regular squid's behavior? I've looked through all the parent classes for any references to 'squid' to no avail, nor did I find any in the various render classes.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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