Begin CarvableVariation nuke, have hit some roadblocks in CTM rendering

This commit is contained in:
tterrag1098 committed 2015-04-23 20:33:29 -04:00
1 parent d50f2c9da5
commit bc607a3104
29 files changed
+266 -198

No files matched your search

@@ -1,18 +1,19 @@
package com.cricketcraft.chisel.api;
import com.cricketcraft.chisel.carving.CarvableHelper;
import com.cricketcraft.chisel.carving.CarvableVariation;
import net.minecraft.item.ItemStack;
import net.minecraft.world.IBlockAccess;
import com.cricketcraft.chisel.api.carving.IVariationInfo;
import com.cricketcraft.chisel.api.client.ISubmapManager;
import com.cricketcraft.chisel.carving.CarvableHelper;
/**
* To be implemented on blocks that can be chiseled and need advanced metadata to variation mapping. Currently not very usable without internal classes.
*/
public interface ICarvable {
/**
* Gets a {@link CarvableVariation} from this block, based on metadata.
* Gets a {@link ISubmapManager} 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.
*
@@ -28,16 +29,17 @@ public interface ICarvable {
* Z coord of the block
* @param metadata
* The metadata of the block
* @return The {@link CarvableVariation} that represents this block in the world.
* @return The {@link ISubmapManager} that represents this block in the world.
*/
public CarvableVariation getVariation(IBlockAccess world, int x, int y, int z, int metadata);
public IVariationInfo getVariation(IBlockAccess world, int x, int y, int z, int metadata);
/**
* Gets the {@link CarvableVariation} for this block when it is in item form.
* Gets the {@link ISubmapManager} for this block when it is in item form.
*
* @param stack
* The {@link ItemStack} representing this block;
* @return A {@link CarvableVariation}
* @return A {@link ISubmapManager}
*/
public CarvableVariation getVariation(ItemStack stack);
public IVariationInfo getVariation(ItemStack stack);
}