base mod created
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package net.minecraft.item;
|
||||
|
||||
public class ItemBook extends Item
|
||||
{
|
||||
/**
|
||||
* Checks isDamagable and if it cannot be stacked
|
||||
*/
|
||||
public boolean isEnchantable(ItemStack stack)
|
||||
{
|
||||
return stack.getCount() == 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the enchantability factor of the item, most of the time is based on material.
|
||||
*/
|
||||
public int getItemEnchantability()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user