public class CooldownTracker
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
CooldownTracker.Cooldown |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Item,CooldownTracker.Cooldown> |
cooldowns |
private int |
ticks |
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() |
private final java.util.Map<Item,CooldownTracker.Cooldown> cooldowns
private int ticks
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)