Add variation removal support to API, add ICarvingRegistry

This commit is contained in:
tterrag1098 committed 2015-01-22 21:33:43 -05:00
1 parent 760c0c8864
commit bfabad129f
10 files changed
+85 -12

No files matched your search

@@ -2,6 +2,8 @@ package com.cricketcraft.chisel.api.carving;
import java.util.List;
import net.minecraft.block.Block;
/**
* Represents a group of chiselable blocks.
* <p>
@@ -63,4 +65,15 @@ public interface ICarvingGroup {
* An {@link ICarvingVariation} to add to this group
*/
void addVariation(ICarvingVariation variation);
/**
* Removes a varaition with the passed {@link Block} and metadata from this group.
*
* @param block
* The {@link Block} of the {@link ICarvingVariation variation}
* @param metadata
* The metadata of the {@link ICarvingVariation variation}
* @return The ICarvingVariation that was removed. Null if nothing was removed.
*/
ICarvingVariation removeVariation(Block block, int metadata);
}