mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-18 11:39:14 +00:00
Clean up in Carving API, add support for new API classes in Carving
This commit is contained in:
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);
|
||||
}
|
||||
Reference in new issue
Block a user