Jump to content

[1.7.10] Recommended Version, NoSuchMethodError and NoSuchFieldError


Forward

Recommended Posts

Hello guys,

 

I have a problem with Forge 1.7.10. The Object Entity in the package net.minecraft.entity seems to not have any methods or fields. I do not know why. I checked the versions and as well as the server, the development jar has the version 1.7.10.10.13.4.1558.

 

@SubscribeEvent
public void mobSpawn(EntityJoinWorldEvent e)
{
	World w = e.world;
	Entity entity = e.entity;
	double x = entity.posX;
        }

 

The method above throws a NoSuchFieldError and this method:

 

@SubscribeEvent
public void mobSpawn(EntityJoinWorldEvent e)
{
	World w = e.world;
	Entity entity = e.entity;
	entity.getAir();
        }

 

throws a NoSuchMethodError.

 

I couldn't find anything in the internet, so I decided to ask, because I have no clue.

 

Thanks a lot

Forward

Link to comment
Share on other sites

Yes I know that Cauldron is dead. But Sponge is just for 1.8, so I decided to make this little Mod in 1.7.10. Cauldron is still working. But thats another topic.

 

What do you mean by "build with gradle"? I do not know anything about this. Do you have a nice tutorial you can link me?

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.