Added the Forestry API
This commit is contained in:
parent
69aeb4a813
commit
2cc9d3a53a
202 changed files with 7108 additions and 35 deletions
|
@ -23,6 +23,7 @@ public class TECrucible extends TEInventory
|
|||
public int ticksRemaining = 0;
|
||||
public int minValue = 0;
|
||||
public int maxValue = 0;
|
||||
public float incrementValue = 0;
|
||||
|
||||
public int state = 0; //0 is when it gives off gray particles, 1 is when it gives off white particles (player can't use this incense anymore), 2 is the normal colour of the incense, 3 means no particles (it is out)
|
||||
|
||||
|
@ -59,6 +60,8 @@ public class TECrucible extends TEInventory
|
|||
minValue = incense.getMinLevel(stack);
|
||||
maxValue = incense.getMaxLevel(stack);
|
||||
|
||||
incrementValue = incense.getTickRate(stack);
|
||||
|
||||
stack.stackSize--;
|
||||
if(stack.stackSize <= 0)
|
||||
{
|
||||
|
@ -78,7 +81,7 @@ public class TECrucible extends TEInventory
|
|||
|
||||
for(EntityPlayer player : playerList)
|
||||
{
|
||||
if(ticksRemaining > 0 && PlayerSacrificeHandler.incrementIncense(player, minValue, maxValue))
|
||||
if(ticksRemaining > 0 && PlayerSacrificeHandler.incrementIncense(player, minValue, maxValue, incrementValue))
|
||||
{
|
||||
ticksRemaining--;
|
||||
if(state != 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue