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 f0e11d8eee
commit a110c4e8ef
7 files changed
+53 -38

No files matched your search

@@ -1,7 +1,7 @@
package com.cricketcraft.chisel.api.carving;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Item;
/**
* Represents a variation of a chiselable block.
@@ -11,18 +11,26 @@ import net.minecraft.item.ItemStack;
*/
public interface ICarvingVariation extends Comparable<ICarvingVariation> {
/**
* The base block of this variation.
*
* @return A {@link Block} that is the base of this variation
*/
Block getBlock();
/**
* The metadata of this variation
*
* @return An int representing the metadata of this variation's {@link Block} in the world.
*/
int getBlockMeta();
int getItemMeta();
/**
* Gets an {@link ItemStack} representing this variation.
* The item metadata of this variation
*
* @return An {@link ItemStack} to represent this variation
* @return An int representing the metadata of this variations's {@link Item}.
*/
ItemStack getStack();
int getItemMeta();
/**
* The "order" of this variation. Represents its position in the list of variations.