Improved the chisel variation logger, fixed an issue with the chisel commands, and made the aspect logger a bit nicer internally.

This commit is contained in:
unknown committed 2015-01-23 15:27:21 -06:00
1 parent ad35d12c44
commit e52a9b7a58
4 files changed
+109 -5

No files matched your search

@@ -17,12 +17,24 @@ public class ChiselHelper {
{
return CarvingUtils.getChiselRegistry().getGroup(name);
}
public static ICarvingGroup getGroup(IItemStack stack)
{
return CarvingUtils.getChiselRegistry().getGroup(Block.getBlockFromItem(toStack(stack).getItem()), stack.getDamage());
}
public static ICarvingVariation getVariation(IItemStack stack)
{
return Carving.chisel.getVariation(Block.getBlockFromItem(toStack(stack).getItem()), stack.getDamage());
}
public static boolean groupContainsVariation(ICarvingGroup group, ICarvingVariation variation)
{
for(ICarvingVariation otherVariation : group.getVariations())
{
if(otherVariation.getBlock()==variation.getBlock() && otherVariation.getBlockMeta()==variation.getBlockMeta())
return true;
}
return false;
}
}