Jump to content

Abastro

Forge Modder
  • Posts

    1075
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Abastro

  1. WAT just make field like this private IIcon swordIcon, shieldIcon; and Override registerICons(IIConRegister reg) In this method register IICons using swordIcon= rg.registerIICon("(sword location)"); etc. Then in getIICon method, depending on state return either swordIcon or shieldIcon Seriously, do you know basic java?
  2. Just define it on your custom item class.
  3. Just override Item#getContainerItem(ItemStack) in your class, and return the damaged itemstack there.
  4. What player do you want to get the skin from? An in-game player or someone can be logged out at the time? For the former, you can find instance of the AbstractClientPlayer for the player. For the latter, you should download the skin manually. In this case, see SkinManager code. (especially #func_152790_a)
  5. You should move your gui constructor code into the initGui, since it is called when gui is opened and scaled.
  6. You can find the player(AbstractClientPlayer) from the client world, and call AbstractClientPlayer#getLocationSkin() to get the skin of the player. That also covers the exceptional cases.
  7. You can check it with some printlns(like onEntityUpdate), check world.isRemote there. and please post your current code.
  8. 1. Check if the entity exists or not. 2. You shouldn't provide RenderManager in the constructor of the render class.
  9. You posted only part of the render code, please post the full RenderCustomType code.
  10. It seems that what you want is a wrong way. You should not give a block certain id! Why do you want that?
  11. You can change it on doRender, Vanilla bat also do this.
  12. http://lmgtfy.com/?q=java+tutorial+for+beginners Find the videos there.
  13. In @Mod, in the field 'dependencies', add "after:(The mod id)" to load after the mod.
  14. Try using RenderGameOverlayEvent.Post instead.
  15. Check if RenderArtifact#doRender called.
  16. Make your own (another) renderer which uses multiple models, and substitute alternative model into the RenderLivingEntity#mainModel, It is protected field.
  17. Does the RendreBlast#renderBlast(...) method get called? Check it.
  18. You should learn basic java to do that exactly...
  19. So do you have several issues? Then please rephrase those.
  20. 1. First remove this line: private static final String __OBFID = "CL_00000397"; It is minecraft deobfuscation id, which is totally useless and unrelated with modding. (+ Do not copy-paste code if you cant fully understand the code..) 2. Please rephrase your issue, I cant understand what is your problem.
  21. Then just using RenderEnderCrystal should work.
  22. Of course. (Or it would not, in case other mods override the drops, but anyway.)
  23. Then the code of the entity(Artifact) is needed.
  24. 1. You should post the full code, not just a method. 2. Post the crash report together.
×
×
  • Create New...

Important Information

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