Jump to content

[1.7.2] Missing ModLoader class in net.minecraft.src?


skymmer

Recommended Posts

Hey all,

 

I've been trying to make a dimension in 1.7.2, and I'm running into a little trouble while referencing a certain class.

 

I'm supposed use the "ModLoader" class from net.minecraft.src.ModLoader, but it doesn't appear to be here in the recommended build of forge for 1.7.2

 

Any ideas?

 

SRC:

 

public void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity entity) {

if(entity.ridingEntity == null && entity.riddenByEntity == null && entity instanceof EntityPlayerMP) {

EntityPlayerMP player = (EntityPlayerMP) entity;

ModLoader.getMinecraftServerInstance(); // syntax highlighting here because the ModLoader class doesn't exist

    }

}

 

Any and all help will be appreciated.

 

Thanks.

Link to comment
Share on other sites

  • 2 months later...
Minecraft.getMinecraft().getIntegratedServer();

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information
Link to comment
Share on other sites

You can also use

 


MinecraftServer.getServer();

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information
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.