Jump to content

Converting EntityPlayer to Sq?


SurMjölk

Recommended Posts

Hi! I have a Forge-type mod (Not property of me) running on my server.

 

I made a CraftBukkit plugin intended to do some stuff when the player reaches a certain int value in the mod. But the Bukkit forums says this is apparently not a bukkit question enough.

 

This value can be easily calculated through getAlignment(sq);

 

When I spoke to the mod author about this, he said that EntityPlayer should do the trick. However, I tried it and it returns an error and asks me to change the type of "pp" from EntityPlayer to sq. And that returns "sq cannot be resolved to a type".

 

 

Is there a way to reobfuscate EntityPlayer to sq?

 

Thanks in advance,

 

Froshin

Link to comment
Share on other sites

Is there a way to reobfuscate EntityPlayer to sq?

 

If you're using MCPC+ (btw, the MC Port Central forums would probably be a better place for this question; should've noted that earlier..), plugins with net.minecraft.server.EntityPlayer and other NMS classes will be reobfuscated automatically.

 

More specifically, NMS is reobfuscated to srgnames -- net.minecraft.entity.player.EntityPlayerMP, in this case. FML runtime-deobfuscates Minecraft and mods from obfuscated "Notch" names (sq, etc.) to srgnames, so the actual classes loaded at runtime will all be using srgnames.

 

Whether you're using mods or plugins, this remapping happens behind the scenes; you can use obfuscated symbols or srgnames symbols or mc-dev NMS symbols in your code, all will be automatically converted appropriately on load as needed.

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.