mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
neaten up code, document the purpose of the 2 registration methods
This commit is contained in:
1 parent
5a75f66e3f
commit
2b48c2fe88
2 files changed
+6
-9
No files matched your search
@@ -6,19 +6,19 @@ import codechicken.microblock.MicroMaterialRegistry;
|
||||
|
||||
public class RegisterWithFMP
|
||||
{
|
||||
//For blocks with metadata values only
|
||||
public static void registerBlock (Block block, int metastart, int metaend)
|
||||
{
|
||||
// meta = number 0->15
|
||||
for (int meta = metastart; meta <= metaend; meta++)
|
||||
{
|
||||
String identifier = new String(block.getUnlocalizedName());
|
||||
MicroMaterialRegistry.registerMaterial(new BlockMicroMaterial(block, meta), identifier + meta);
|
||||
String identifier = new String(block.getUnlocalizedName());
|
||||
MicroMaterialRegistry.registerMaterial(new BlockMicroMaterial(block, meta), identifier + meta);
|
||||
}
|
||||
}
|
||||
|
||||
//For blocks without metadata values only.
|
||||
public static void registerBlock (Block block)
|
||||
{
|
||||
String identifier = new String(block.getUnlocalizedName());
|
||||
new String(block.getUnlocalizedName());
|
||||
BlockMicroMaterial.createAndRegister(block);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user