Class ItemConsumable
java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemConsumable
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionItemConsumable
(float consumeSeconds, ItemConsumable.Animation animation, Sound sound, boolean consumeParticles, List<ConsumeEffect<?>> effects) -
Method Summary
Modifier and TypeMethodDescriptionboolean
float
List
<ConsumeEffect<?>> getSound()
int
hashCode()
boolean
static ItemConsumable
read
(PacketWrapper<?> wrapper) void
setAnimation
(ItemConsumable.Animation animation) void
setConsumeParticles
(boolean consumeParticles) void
setConsumeSeconds
(float consumeSeconds) void
setEffects
(List<ConsumeEffect<?>> effects) void
toString()
static void
write
(PacketWrapper<?> wrapper, ItemConsumable consumable)
-
Constructor Details
-
ItemConsumable
public ItemConsumable(float consumeSeconds, ItemConsumable.Animation animation, Sound sound, boolean consumeParticles, List<ConsumeEffect<?>> effects)
-
-
Method Details
-
read
-
write
-
getConsumeSeconds
public float getConsumeSeconds() -
setConsumeSeconds
public void setConsumeSeconds(float consumeSeconds) -
getAnimation
-
setAnimation
-
getSound
-
setSound
-
isConsumeParticles
public boolean isConsumeParticles() -
setConsumeParticles
public void setConsumeParticles(boolean consumeParticles) -
getEffects
-
setEffects
-
equals
-
hashCode
public int hashCode() -
toString
-