Hey, well I'm customarily editing the MFFS mod, to allow more blocks to be used, and the problem is that I can't figure out where/how in the API I can grab a, lets say Bronze Block as a Block object for the method. Anyone have any ideas?
Getting a Block object?
-
-
1) Navigate to download thread
2) Download IC2 API -
1) Navigate to download thread
2) Download IC2 APIAre you partially retarded?
(Not meaning to be a dick, but really?) -
Are you partially retarded?
(Not meaning to be a dick, but really?)Wow, calling RawCode like that this soon, is a new Record (Its very hard to understand him, and he always misses most of the important Information). I will add a few more informative Steps to that:
3) Install IC²-API into MCP
4) call "ic2.api.Items.getItem("bronzeBlock").copy()" to retrieve the Bronze Block of IC² as ItemStack.
5) Do whatever you want with that Block. -
ic2.api.Items.getItem("bronzeBlock").copy()
Thank you, the second step was what I was having problems with, couldn't find where I could pull a block from.
-
Quote
couldn't find where I could pull a block from.
very very sad, since there is only one class have "items" in its name.
but its ok for retarded and brain damaged users to unable to find single file by known keywork, dont be sad. -
very very sad, since there is only one class have "items" in its name.
but its ok for retarded and brain damaged users to unable to find single file by known keywork, dont be sad.
He wanted a block, so he naturally passed over something that said ITEM. -
if you dont know how minecraft works you shoud not post stupid things instead of reading MCP manual.
block is WORLD object, in order to get block, you need only ordinates XZY nothing else, you dont ever need API for this.
-
if you dont know how minecraft works you shoud not post stupid things instead of reading MCP manual.
block is WORLD object, in order to get block, you need only ordinates XZY nothing else, you dont ever need API for this.
*sigh* What if he wanted to use the API? -
if you dont know how minecraft works you shoud not post stupid things instead of reading MCP manual.
block is WORLD object, in order to get block, you need only ordinates XZY nothing else, you dont ever need API for this.
RawCode, I feel like you're really mean sometimes. I'm happy I haven't had any problems that i couldn't solve myself. If had such problems and posted them here, I'm sure you would "help" me.
-
Quote
What if he wanted to use the API?
there is completely no way to get block via IC2 API, there is no methods that can do it.QuoteI haven't had any problems that i couldn't solve myself
there is completely no way to encounter problem you cant solve yourself, JAVA exists for many years, MCP at least 3, forge over year, every possible problem already solved by someone and you can extract this data by using google. -
there is completely no way to get block via IC2 API, there is no methods that can do it.
...Quotecall "ic2.api.Items.getItem("bronzeBlock").copy()" to retrieve the Bronze Block of IC² as ItemStack.
-
...right, that gets you an ItemStack. If you really want the Block for some reason, you have to fetch it from Block.blocksList[stack.itemID]. This is a vanilla thing, not an IC2 API thing.
RawCode is a jerk, but he's not inaccurate... most of the time.
-
i was perfectly accurate last 22 posts.
Wliu
as already noted, this wont return "block". -
^^This wasn't,
Quote1) Navigate to download thread
2) Download IC2 API
but I admit that I was wrong. -
i have not stated that API will solve problem, i noted how to get API to check yourself.