added comments

This commit is contained in:
Space Toad 2011-07-30 21:01:03 +00:00
parent 18f822a8d2
commit b892916d6f
2 changed files with 12 additions and 0 deletions

View file

@ -40,10 +40,19 @@ public class Configuration {
public TreeMap<String, Property> itemProperties = new TreeMap<String, Property>(); public TreeMap<String, Property> itemProperties = new TreeMap<String, Property>();
public TreeMap<String, Property> generalProperties = new TreeMap<String, Property>(); public TreeMap<String, Property> generalProperties = new TreeMap<String, Property>();
/**
* Create a configuration file for the file given in parameter.
*/
public Configuration(File file) { public Configuration(File file) {
this.file = file; this.file = file;
} }
/**
* Gets or create a block id property. If the block id property key is
* already in the configuration, then it will be used. Otherwise,
* defaultId will be used, except if already taken, in which case this
* will try to determine a free default id.
*/
public Property getOrCreateBlockIdProperty(String key, int defaultId) { public Property getOrCreateBlockIdProperty(String key, int defaultId) {
if (configBlocks == null) { if (configBlocks == null) {
configBlocks = new boolean[Block.blocksList.length]; configBlocks = new boolean[Block.blocksList.length];

View file

@ -61,6 +61,9 @@ public class MinecraftForge {
return false; return false;
} }
/**
* Add a block to the list of blocks supposed to be
*/
public static void addPixaxeBlockEffectiveAgainst (Block block) { public static void addPixaxeBlockEffectiveAgainst (Block block) {
((ItemTool) Item.pickaxeWood).addBlockEffectiveAgainst(block); ((ItemTool) Item.pickaxeWood).addBlockEffectiveAgainst(block);
((ItemTool) Item.pickaxeStone).addBlockEffectiveAgainst(block); ((ItemTool) Item.pickaxeStone).addBlockEffectiveAgainst(block);