History - net.minecraft.world.item.component.UseCooldown

1.21.3

Names

dau

net.minecraft.world.item.component.UseCooldown

net.minecraft.class_10130

net.minecraft.component.type.UseCooldownComponent

net.minecraft.world.item.component.UseCooldown

Fields

float: c, seconds, comp_3091, seconds

Optional<ResourceLocation>: d, cooldownGroup, comp_3092, cooldownGroup

com.mojang.serialization.Codec<UseCooldown>: a, CODEC, field_53799, CODEC

StreamCodec<RegistryFriendlyByteBuf, UseCooldown>: b, STREAM_CODEC, field_53800, PACKET_CODEC

Constructors

(float)

(float, Optional<ResourceLocation>)

Methods

int (): a, ticks, method_62860, getCooldownTicks

void (ItemStack, LivingEntity): a, apply, method_62862, set

float (): b, seconds, comp_3091, seconds

Optional<ResourceLocation> (): c, cooldownGroup, comp_3092, cooldownGroup