mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-16 10:45:01 +00:00
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:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user