Record Class EntityEffect.SpawnParticles
java.lang.Object
java.lang.Record
net.minestom.server.item.enchant.EntityEffect.SpawnParticles
- All Implemented Interfaces:
Enchantment.Effect, EntityEffect, LocationEffect
- Enclosing interface:
EntityEffect
public static record EntityEffect.SpawnParticles(Codec.RawValue particle, Codec.RawValue horizontalPosition, Codec.RawValue verticalPosition, Codec.RawValue horizontalVelocity, Codec.RawValue verticalVelocity, Codec.RawValue speed)
extends Record
implements EntityEffect, LocationEffect
-
Nested Class Summary
Nested classes/interfaces inherited from interface EntityEffect
EntityEffect.AllOf, EntityEffect.ApplyPotionEffect, EntityEffect.ChangeItemDamage, EntityEffect.DamageEntity, EntityEffect.Explode, EntityEffect.Ignite, EntityEffect.PlaySound, EntityEffect.ReplaceBlock, EntityEffect.ReplaceDisc, EntityEffect.RunFunction, EntityEffect.SetBlockProperties, EntityEffect.SpawnParticles, EntityEffect.SummonEntityNested classes/interfaces inherited from interface LocationEffect
LocationEffect.AllOf -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpawnParticles(Codec.RawValue particle, Codec.RawValue horizontalPosition, Codec.RawValue verticalPosition, Codec.RawValue horizontalVelocity, Codec.RawValue verticalVelocity, Codec.RawValue speed) Creates an instance of aSpawnParticlesrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncodec()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehorizontalPositionrecord component.Returns the value of thehorizontalVelocityrecord component.particle()Returns the value of theparticlerecord component.speed()Returns the value of thespeedrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theverticalPositionrecord component.Returns the value of theverticalVelocityrecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
SpawnParticles
public SpawnParticles(Codec.RawValue particle, Codec.RawValue horizontalPosition, Codec.RawValue verticalPosition, Codec.RawValue horizontalVelocity, Codec.RawValue verticalVelocity, Codec.RawValue speed) Creates an instance of aSpawnParticlesrecord class.- Parameters:
particle- the value for theparticlerecord componenthorizontalPosition- the value for thehorizontalPositionrecord componentverticalPosition- the value for theverticalPositionrecord componenthorizontalVelocity- the value for thehorizontalVelocityrecord componentverticalVelocity- the value for theverticalVelocityrecord componentspeed- the value for thespeedrecord component
-
-
Method Details
-
codec
- Specified by:
codecin interfaceEntityEffect- Specified by:
codecin interfaceLocationEffect
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
particle
Returns the value of theparticlerecord component.- Returns:
- the value of the
particlerecord component
-
horizontalPosition
Returns the value of thehorizontalPositionrecord component.- Returns:
- the value of the
horizontalPositionrecord component
-
verticalPosition
Returns the value of theverticalPositionrecord component.- Returns:
- the value of the
verticalPositionrecord component
-
horizontalVelocity
Returns the value of thehorizontalVelocityrecord component.- Returns:
- the value of the
horizontalVelocityrecord component
-
verticalVelocity
Returns the value of theverticalVelocityrecord component.- Returns:
- the value of the
verticalVelocityrecord component
-
speed
Returns the value of thespeedrecord component.- Returns:
- the value of the
speedrecord component
-