block hardness

This commit is contained in:
jaredlll08 committed 2015-09-03 10:41:47 +02:00
1 parent b36c6dade6
commit eccf4d28c2
12 files changed
+415 -4

No files matched your search

@@ -15,4 +15,5 @@ public interface IBlockDefinition {
@ZenGetter("displayName")
public String getDisplayName();
}
@@ -7,6 +7,7 @@
package minetweaker.api.block;
import java.util.List;
import stanhebben.zenscript.annotations.OperatorType;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenGetter;
@@ -80,6 +80,20 @@ public interface IItemStack extends IIngredient {
*/
@ZenSetter("maxStackSize")
public void setMaxStackSize(int size);
/**
* Gets the block hardness
*/
@ZenGetter("hardness")
public float getBlockHardness();
/**
* Sets the block hardness
*
* @param hardness the new hardness
*/
@ZenSetter("hardness")
public void setBlockHardness(float hardness);
/**
* Gets the item damage. Returns 0 if the item cannot be damaged.