net.minecraft.world.item.component

public record UseCooldown

dat
net.minecraft.world.item.component.UseCooldown
net.minecraft.class_10130
net.minecraft.unmapped.C_elkynmne
net.minecraft.component.type.UseCooldownComponent
net.minecraft.unmapped.C_elkynmne
net.minecraft.src.C_345826_
net.minecraft.world.item.component.Unbreakable

Field summary

Modifier and TypeField
private final float
c
seconds
comp_3091
f_hbxyohfl
seconds
seconds
f_347563_
private final Optional<ResourceLocation>
d
cooldownGroup
comp_3092
f_agyihdhw
cooldownGroup
cooldownGroup
f_348244_
public static final com.mojang.serialization.Codec<UseCooldown>
a
CODEC
field_53799
f_kyeexlij
CODEC
CODEC
f_346235_
public static final StreamCodec<RegistryFriendlyByteBuf, UseCooldown>
b
STREAM_CODEC
field_53800
f_doqjsovk
PACKET_CODEC
PACKET_CODEC
f_346954_

Constructor summary

ModifierConstructor
public (float seconds)
public (float seconds, Optional<ResourceLocation> cooldownGroup)

Method summary

Modifier and TypeMethod
public int
a()
ticks()
method_62860()
m_bozsonlt()
getCooldownTicks()
m_353601_()
public void
a(cxo arg0, bwf arg1)
apply(ItemStack arg0, LivingEntity arg1)
method_62862(class_1799 arg0, class_1309 arg1)
m_vpoqolhn(C_sddaxwyk arg0, C_usxaxydn arg1)
set(ItemStack stack, LivingEntity user)
m_vpoqolhn(ItemStack stack, LivingEntity entity)
m_353527_(C_1391_ p_366259_, C_524_ arg1)
public float
b()
seconds()
comp_3091()
m_npzaxclb()
seconds()
seconds()
f_347563_()
public Optional<ResourceLocation>
c()
cooldownGroup()
comp_3092()
m_wxegdfll()
cooldownGroup()
cooldownGroup()
f_348244_()