Mr_Pie_Guy1234 Posted January 8, 2013 Posted January 8, 2013 I'm wandering how to reference a block through it's ID, and not it's variable name. Instead of using this, Block.dirt.getBlockName(); I would like to do that same thing except through it's ID so I can iterate through a bunch of blocks at the same time inside a for statement. Any help is appreciated. Quote
shieldbug1 Posted January 8, 2013 Posted January 8, 2013 Simply use: Block.Whatever.BlockID Hope I helped~ Quote BEFORE ASKING FOR HELP READ THE EAQ! I'll help if I can. Apologies if I do something obviously stupid. If you don't know basic Java yet, go and follow these tutorials.
Mr_Pie_Guy1234 Posted January 8, 2013 Author Posted January 8, 2013 That's not what I meant, but I found the solution myself. Block.blocksList[number].getBlockName(); Thanks anyways. Quote
Recommended Posts
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.