mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
added in FMP plugin , tested code with and without fmp installed
This commit is contained in:
1 parent
abdd27c235
commit
df6eaf4dfc
4 files changed
+149
-4
No files matched your search
@@ -0,0 +1,28 @@
|
||||
package tconstruct.plugins.fmp.register;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import codechicken.microblock.BlockMicroMaterial;
|
||||
import codechicken.microblock.MicroMaterialRegistry;
|
||||
|
||||
public class RegisterWithFMP {
|
||||
public static void registerBlock (Block block,int meta)
|
||||
{
|
||||
// meta = number 0->15
|
||||
String identifier = new String( block.getUnlocalizedName());
|
||||
MicroMaterialRegistry.registerMaterial(new BlockMicroMaterial(block, meta), identifier + meta);
|
||||
// BlockMicroMaterial.createAndRegister(block);
|
||||
|
||||
//MicroMaterialRegistry.registerMaterial((IMicroMaterial) block.blockMaterial, "tinkers:" + identifier + meta);
|
||||
}
|
||||
public static void registerBlock (Block block )
|
||||
{
|
||||
//s = string identifier for meta ex: brick...
|
||||
//MicroMaterialRegistry.registerMaterial(material, s + meta);
|
||||
String identifier = new String( block.getUnlocalizedName());
|
||||
|
||||
//MicroMaterialRegistry.registerMaterial(new BlockMicroMaterial(block, 0), identifier );
|
||||
|
||||
//MicroMaterialRegistry.registerMaterial((IMicroMaterial) block.blockMaterial,"tinkers:" + identifier);
|
||||
BlockMicroMaterial.createAndRegister(block);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user