Posted February 15, 20178 yr Basically, the title... but some context: I want to create an item which, depending on various stuffs (in this case, the world seed), delegates methods calls to different "backing" items. These backing items, would, of course, exist only to provide proper functionality to a registered item. So, my question is, does not registering an item detract from its functionality? Would calling any of its methods fail? (I don't care if it can't be obtained in the world, or exist in "the game," I just want it as an object to give me methods). Developer of Randores (adds 256^3 ores to the game) and Arcane Bags (adds ridiculous storage with ridiculous crafting recipes). I know Java pretty well... So yeah... Quote This is where I'd put an inspirational and/or clever quote, but I can't think of one right now... This is the output of the totally, 100% working compiler for my programming language, Planet9: Beginning Compilation... Failed compilation! planet9.compiler.error.CompilationException: Compiler not yet implemented at planet9.compiler.Compiler.compile(Compiler.java:39) at planet9.compiler.app.CompilerApp.main(CompilerApp.java:147)
February 15, 20178 yr You're basically doing this sort of thing: https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/api/interfaces/IArtifactComponent.java#L28 Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 15, 20178 yr Author 56 minutes ago, diesieben07 said: Why make it extend Item then? I mean, it probably doesn't hurt No, I am registering the item, I just want to use minecraft's default items (itemhoe, itemaxe, etc.) to define it's behavior, but use different itemhoes depending on world seed... so cool, thanks Developer of Randores (adds 256^3 ores to the game) and Arcane Bags (adds ridiculous storage with ridiculous crafting recipes). I know Java pretty well... So yeah... Quote This is where I'd put an inspirational and/or clever quote, but I can't think of one right now... This is the output of the totally, 100% working compiler for my programming language, Planet9: Beginning Compilation... Failed compilation! planet9.compiler.error.CompilationException: Compiler not yet implemented at planet9.compiler.Compiler.compile(Compiler.java:39) at planet9.compiler.app.CompilerApp.main(CompilerApp.java:147)
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.