Added the Dawn Scribing Tool + Dawn Ritual Stone
Fixed the ISidedInventory nature of the chemistry set Added the Omega Reaction Chamber for initiating the Omega state Experimented with enchantments
This commit is contained in:
parent
60ae47c499
commit
ab8d25db76
23 changed files with 554 additions and 57 deletions
|
@ -725,10 +725,29 @@ public class BoundArmour extends ItemArmor implements IAlchemyGoggles, ISpecialA
|
|||
return 1.0f;
|
||||
}
|
||||
|
||||
public int getItemEnchantability()
|
||||
public int getItemEnchantability(ItemStack stack)
|
||||
{
|
||||
NBTTagCompound tag = stack.getTagCompound();
|
||||
if (tag != null)
|
||||
{
|
||||
return tag.getInteger("enchantability");
|
||||
}
|
||||
|
||||
return Integer.MIN_VALUE;
|
||||
}
|
||||
|
||||
public void setItemEnchantability(ItemStack stack, int enchantability)
|
||||
{
|
||||
NBTTagCompound tag = stack.getTagCompound();
|
||||
|
||||
if (tag == null)
|
||||
{
|
||||
stack.setTagCompound(new NBTTagCompound());
|
||||
tag = stack.getTagCompound();
|
||||
}
|
||||
|
||||
tag.setInteger("enchantability", enchantability);
|
||||
}
|
||||
|
||||
public boolean getIsInvisible(ItemStack armourStack)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue