Added new LocalRitualStorage methods, to allow rituals to store data more fluidly.

This commit is contained in:
WayofTime 2015-01-14 21:44:59 -05:00
parent ac5a20d5b2
commit fd330233dd
12 changed files with 361 additions and 38 deletions

View file

@ -69,11 +69,39 @@ public class OmegaParadigm
return 50;
}
public boolean setOmegaStalling(EntityPlayer player, int duration)
{
ItemStack[] armours = player.inventory.armorInventory;
ItemStack chestStack = armours[2];
if(chestStack != null && chestStack.getItem() == this.chestPiece)
{
((OmegaArmour)chestStack.getItem()).setOmegaStallingDuration(chestStack, duration);
return true;
}
return false;
}
public float getCostPerTickOfUse(EntityPlayer player)
{
return 1;
}
public boolean doDrainReagent(EntityPlayer player)
{
ItemStack[] armours = player.inventory.armorInventory;
ItemStack chestStack = armours[2];
if(chestStack != null && chestStack.getItem() == this.chestPiece)
{
return !((OmegaArmour)chestStack.getItem()).hasOmegaStalling(chestStack);
}
return true;
}
public boolean isPlayerWearingFullSet(EntityPlayer player)
{
ItemStack[] armours = player.inventory.armorInventory;