Posted January 8, 201312 yr 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.
January 8, 201312 yr Simply use: Block.Whatever.BlockID Hope I helped~ 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.
January 8, 201312 yr Author That's not what I meant, but I found the solution myself. Block.blocksList[number].getBlockName(); Thanks anyways.
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.