2013-09-09 11:15:43 +00:00
|
|
|
package biomesoplenty.integration;
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import biomesoplenty.api.Blocks;
|
2013-09-14 23:01:07 +00:00
|
|
|
import codechicken.microblock.BlockMicroMaterial;
|
|
|
|
import codechicken.microblock.MicroMaterialRegistry;
|
2013-09-09 11:15:43 +00:00
|
|
|
|
|
|
|
public class MultipartIntegration
|
|
|
|
{
|
|
|
|
protected static void init()
|
|
|
|
{
|
|
|
|
addMicroblock(Blocks.mud.get(), 0, 1);
|
|
|
|
addMicroblock(Blocks.driedDirt.get());
|
|
|
|
addMicroblock(Blocks.redRock.get(), 0, 2);
|
|
|
|
addMicroblock(Blocks.ash.get());
|
2013-11-16 01:03:03 +00:00
|
|
|
addMicroblock(Blocks.leaves1.get(), 0, 3);
|
|
|
|
addMicroblock(Blocks.leaves2.get(), 0, 3);
|
|
|
|
addMicroblock(Blocks.leaves3.get(), 0, 3);
|
|
|
|
addMicroblock(Blocks.leaves4.get(), 0, 1);
|
2013-09-09 11:15:43 +00:00
|
|
|
addMicroblock(Blocks.ashStone.get());
|
|
|
|
addMicroblock(Blocks.hardIce.get());
|
|
|
|
addMicroblock(Blocks.leavesFruit.get(), 0, 0);
|
2013-11-16 01:03:03 +00:00
|
|
|
addMicroblock(Blocks.leavesFruit2.get(), 0, 0);
|
2013-09-09 11:15:43 +00:00
|
|
|
addMicroblock(Blocks.mudBrick.get());
|
|
|
|
addMicroblock(Blocks.originGrass.get());
|
|
|
|
addMicroblock(Blocks.longGrass.get());
|
|
|
|
addMicroblock(Blocks.logs1.get(), 0, 3);
|
|
|
|
addMicroblock(Blocks.logs2.get(), 0, 3);
|
|
|
|
addMicroblock(Blocks.logs3.get(), 0, 3);
|
|
|
|
addMicroblock(Blocks.logs4.get(), 0, 2);
|
|
|
|
addMicroblock(Blocks.petals.get(), 0, 1);
|
|
|
|
addMicroblock(Blocks.hardSand.get());
|
|
|
|
addMicroblock(Blocks.hardDirt.get());
|
|
|
|
addMicroblock(Blocks.crystal.get());
|
|
|
|
addMicroblock(Blocks.holyGrass.get());
|
|
|
|
addMicroblock(Blocks.holyDirt.get());
|
|
|
|
addMicroblock(Blocks.holyStone.get(), 0, 2);
|
|
|
|
addMicroblock(Blocks.amethystOre.get(), 0, 13);
|
|
|
|
addMicroblock(Blocks.cragRock.get());
|
|
|
|
addMicroblock(Blocks.cloud.get());
|
|
|
|
addMicroblock(Blocks.planks.get(), 0, 13);
|
2013-11-16 01:03:03 +00:00
|
|
|
addMicroblock(Blocks.leavesColorized1.get(), 0, 3);
|
|
|
|
addMicroblock(Blocks.leavesColorized2.get(), 0, 3);
|
2013-09-09 11:15:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Register a microblock.
|
|
|
|
private static void addMicroblock(Block b)
|
|
|
|
{
|
|
|
|
MicroMaterialRegistry.registerMaterial(new BlockMicroMaterial(b, 0), b.getUnlocalizedName());
|
|
|
|
}
|
|
|
|
|
|
|
|
// Register multiple microblocks. Meta range is inclusive.
|
|
|
|
private static void addMicroblock(Block b, int metaFrom, int metaTo)
|
|
|
|
{
|
|
|
|
for(int i = metaFrom; i <= metaTo; i++)
|
|
|
|
{
|
|
|
|
MicroMaterialRegistry.registerMaterial(new BlockMicroMaterial(b, i), b.getUnlocalizedName() + "." + i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|