Posted March 13, 20169 yr Hello Im very new to all this minecraft modding, but the other day i thought i'd give it a go. But i ran into a problem when i was setting up the development enviroment in eclipse. Now the issue is that, when ever i try to use the "getHandle()", method on any Entitys eclipse just says "The type yv cannot be resolved. It is indirectly referenced from required .class files" public SkillResult use(Hero hero, LivingEntity target, String[] args) { Player player = hero.getPlayer(); CraftVillager liv = (CraftVillager)target; liv.getHandle(); <-- "The type yv cannot be resolved. It is indirectly referenced from required .class files" } I've been searching all over the damn net, but i cant seem to find any post regarding this issue. I suppose its something with the referenced libraries, but i cant seem to find the issue Hope you guys can help me out! Best regards Nick For clarification:
March 13, 20169 yr you need to check the target class before you cast it and call a non-overridden method. if( target instanceof CraftVillager) Current Project: Armerger Planned mods: Light Drafter | Ore Swords Looking for help getting a mod off the ground? Coding | Textures
March 13, 20169 yr Author you need to check the target class before you cast it and call a non-overridden method. if( target instanceof CraftVillager) Ah yes, im aware Issue isent the code, but the "setup" in eclipse, that somehow breaks the references to what ever classes "getHandle()" uses
March 13, 20169 yr Author CraftVillager? getHandle? This sounds like bukkit. What the hell are you doing? Aww hell man, you're totaly right >.< I was somehow thinking that since i followed the "setup" here on Forge, the error might something that could be addressed here. But as you point out, getHandle is ofcourse from bukkit
March 13, 20169 yr Author Bukkit is dead, you shouldn't be using it. Well im not so much using it, as i'm adding a little something to an existing plugin Out of curiosity, what is the "prefered" bukkit alternative now?
March 13, 20169 yr Forge + Sponge API is the future. As to other: * Spigot (please don't). * Glowstone (Idk, Sponge is stil better). * Some other, mostly dead or soon-to-be-dead like: MCPC, Cauldron, Bukkit - all of those are officialy dead and only privately updated by some random ppl. 1.7.10 is no longer supported by forge, you are on your own.
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.