net.minecraft.entity.player

public class ItemCooldownManager

net.minecraft.world.item.ItemCooldowns
net.minecraft.class_1796
net.minecraft.entity.player.ItemCooldownManager

Field summary

Modifier and TypeField
private final Map<Identifier, ItemCooldownManager$Entry>
cooldowns
field_8024
entries
private int
tickCount
field_8025
tick

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public boolean
isOnCooldown(ItemStack item)
method_7904(class_1799 arg0)
isCoolingDown(ItemStack stack)
public float
getCooldownPercent(ItemStack item, float a)
method_7905(class_1799 arg0, float arg1)
getCooldownProgress(ItemStack stack, float tickProgress)
public void
tick()
method_7903()
update()
public Identifier
getCooldownGroup(ItemStack item)
method_62836(class_1799 arg0)
getGroup(ItemStack stack)
public void
addCooldown(ItemStack item, int time)
method_62835(class_1799 arg0, int arg1)
set(ItemStack stack, int duration)
public void
addCooldown(Identifier cooldownGroup, int time)
method_7906(class_2960 arg0, int arg1)
set(Identifier groupId, int duration)
public void
removeCooldown(Identifier cooldownGroup)
method_7900(class_2960 arg0)
remove(Identifier groupId)
protected void
onCooldownStarted(Identifier cooldownGroup, int duration)
method_7902(class_2960 arg0, int arg1)
onCooldownUpdate(Identifier groupId, int duration)
protected void
onCooldownEnded(Identifier cooldownGroup)
method_7901(class_2960 arg0)
onCooldownUpdate(Identifier groupId)