net.minecraft.world.item

public class ItemCooldowns

bkf
net.minecraft.world.item.ItemCooldowns
net.minecraft.class_1796
net.minecraft.entity.player.ItemCooldownManager
net.minecraft.util.CooldownTracker
net.minecraft.server.v1_16_R1.ItemCooldown

Field summary

Modifier and TypeField
private final Map<Item, ItemCooldowns$CooldownInstance>
a
cooldowns
field_8024
entries
field_185147_a
cooldowns
private int
b
tickCount
field_8025
tick
field_185148_b
currentTick

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public boolean
a(bke arg0)
isOnCooldown(Item arg0)
method_7904(class_1792 arg0)
isCoolingDown(Item item)
func_185141_a(Item arg0)
hasCooldown(Item arg0)
public float
a(bke arg0, float arg1)
getCooldownPercent(Item arg0, float arg1)
method_7905(class_1792 arg0, float arg1)
getCooldownProgress(Item item, float partialTicks)
func_185143_a(Item arg0, float arg1)
public void
a()
tick()
method_7903()
update()
func_185144_a()
public void
a(bke arg0, int arg1)
addCooldown(Item arg0, int arg1)
method_7906(class_1792 arg0, int arg1)
set(Item item, int duration)
func_185145_a(Item arg0, int arg1)
setCooldown(Item arg0, int arg1)
protected void
b(bke arg0, int arg1)
onCooldownStarted(Item arg0, int arg1)
method_7902(class_1792 arg0, int arg1)
onCooldownUpdate(Item item, int duration)
func_185140_b(Item arg0, int arg1)
protected void
c(bke arg0)
onCooldownEnded(Item arg0)
method_7901(class_1792 arg0)
onCooldownUpdate(Item item)
func_185146_c(Item arg0)
public void
b(bke arg0)
removeCooldown(Item arg0)
method_7900(class_1792 arg0)
remove(Item item)
func_185142_b(Item arg0)