Class ItemUseCooldown
java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemUseCooldown
-
Constructor Summary
ConstructorDescriptionItemUseCooldown
(float seconds, @Nullable ResourceLocation cooldownGroup) ItemUseCooldown
(float seconds, Optional<ResourceLocation> cooldownGroup) -
Method Summary
Modifier and TypeMethodDescriptionbuildWrapper
(ItemStack fallbackStack) buildWrapper
(ItemType fallbackItem) boolean
float
int
hashCode()
static ItemUseCooldown
read
(PacketWrapper<?> wrapper) void
setCooldownGroup
(Optional<ResourceLocation> cooldownGroup) void
setSeconds
(float seconds) toString()
static void
write
(PacketWrapper<?> wrapper, ItemUseCooldown cooldown)
-
Constructor Details
-
ItemUseCooldown
-
ItemUseCooldown
-
-
Method Details
-
read
-
write
-
buildWrapper
-
buildWrapper
-
getSeconds
public float getSeconds() -
setSeconds
public void setSeconds(float seconds) -
getCooldownGroup
-
setCooldownGroup
-
equals
-
hashCode
public int hashCode() -
toString
-