Jump to content

Recommended Posts

Posted

hey, following tutorials and looking at others code I create my own code but have a few errors i don't know what's causing them. The error is within the entity class

 

Main

 

  Reveal hidden contents

 

 

Entity

 

  Reveal hidden contents

 

 

render

 

  Reveal hidden contents

 

 

model

 

  Reveal hidden contents

 

 

Posted

The method "public int getHealth()" does not exist in the Entity classes; it returns a float.

 

Putting @Override above your methods will enable some extra error-checking in your IDE that will tell you when your methods don't match any methods in the parent class, which will help prevent mistakes like this.

 

EDIT: Of course, only put @Override above inherited methods, not ones that you create yourself.

 

Posted

ok got that sorted thanks, but i have texture problems now

 

@Override
protected ResourceLocation getEntityTexture(Entity entity) {
	return new ResourceLocation("oomod:textures/mobs/daleks/kronosdrone");

 

Texture path: C:\Users\User\Desktop\MC MODDING EQUIPMENT\Mods\Forge 1.6.4\Film Screen\mcp\src\minecraft\assets\oomod\textures\mobs\daleks

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.