net.minecraft.world.item.component

public record UseCooldown

dau
net.minecraft.world.item.component.UseCooldown
net.minecraft.class_10130
net.minecraft.component.type.UseCooldownComponent
net.minecraft.world.item.component.UseCooldown

Field summary

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

Constructor summary

ModifierConstructor
public (float seconds)
public (float arg0, Optional<ResourceLocation> arg1)

Method summary

Modifier and TypeMethod
public int
a()
ticks()
method_62860()
getCooldownTicks()
public void
a(cxp arg0, bwg arg1)
apply(ItemStack arg0, LivingEntity arg1)
method_62862(class_1799 arg0, class_1309 arg1)
set(ItemStack stack, LivingEntity user)
public float
b()
seconds()
comp_3091()
seconds()
public Optional<ResourceLocation>
c()
cooldownGroup()
comp_3092()
cooldownGroup()