Class ItemConsumable
java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemConsumable
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionItemConsumable(float consumeSeconds, ItemConsumable.Animation animation, Sound sound, boolean consumeParticles, List<ConsumeEffect<?>> effects) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfloatList<ConsumeEffect<?>> getSound()inthashCode()booleanstatic ItemConsumableread(PacketWrapper<?> wrapper) voidsetAnimation(ItemConsumable.Animation animation) voidsetConsumeParticles(boolean consumeParticles) voidsetConsumeSeconds(float consumeSeconds) voidsetEffects(List<ConsumeEffect<?>> effects) voidtoString()static voidwrite(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
-