Clean up in Carving API, add support for new API classes in Carving

This commit is contained in:
tterrag1098 committed 2015-01-15 06:06:07 -05:00
1 parent 798fbafee5
commit 495c346950
7 files changed
+53 -38

No files matched your search

@@ -1,18 +1,17 @@
package com.cricketcraft.chisel.api;
import com.cricketcraft.chisel.carving.CarvableHelper;
import com.cricketcraft.chisel.carving.CarvableVariation;
public interface ICarvable {
/**
* This grabs the variations possible
* Gets a {@link CarvableVariation} from this block, based on metadata.
* <p>
* Typically you can refer this method to {@link CarvableHelper#getVariation(int)} but this method is provided for more complex metadata handling.
*
* @param metadata
* This is the metadata that a block will use and the basis of
* chisel Traditionally you make an instance of CarvableHelper
* ex. CarvableHelper carverHelper = new CarvableHelper(); In
* this method you return carverHelper.getVariation(metadata) and
* that should be all you need if you register it correctly.
* The metadata of the block
*/
public CarvableVariation getVariation(int metadata);
}