public class CooldownTracker
extends java.lang.Object
Constructor and Description |
---|
CooldownTracker() |
Modifier and Type | Method and Description |
---|---|
float |
getCooldown(Item itemIn,
float partialTicks) |
boolean |
hasCooldown(Item itemIn) |
protected void |
notifyOnRemove(Item itemIn) |
protected void |
notifyOnSet(Item itemIn,
int ticksIn) |
void |
removeCooldown(Item itemIn) |
void |
setCooldown(Item itemIn,
int ticksIn) |
void |
tick() |
public boolean hasCooldown(Item itemIn)
public float getCooldown(Item itemIn, float partialTicks)
public void tick()
public void setCooldown(Item itemIn, int ticksIn)
public void removeCooldown(Item itemIn)
protected void notifyOnSet(Item itemIn, int ticksIn)
protected void notifyOnRemove(Item itemIn)