Record Class ExplosionPacket.BlockParticleInfo
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.ExplosionPacket.BlockParticleInfo
- Enclosing class:
ExplosionPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NetworkBuffer.Type<ExplosionPacket.BlockParticleInfo> -
Constructor Summary
ConstructorsConstructorDescriptionBlockParticleInfo(Particle particle, float scaling, float speed) Creates an instance of aBlockParticleInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.particle()Returns the value of theparticlerecord component.floatscaling()Returns the value of thescalingrecord component.floatspeed()Returns the value of thespeedrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
BlockParticleInfo
Creates an instance of aBlockParticleInforecord class.- Parameters:
particle- the value for theparticlerecord componentscaling- the value for thescalingrecord componentspeed- the value for thespeedrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
particle
Returns the value of theparticlerecord component.- Returns:
- the value of the
particlerecord component
-
scaling
public float scaling()Returns the value of thescalingrecord component.- Returns:
- the value of the
scalingrecord component
-
speed
public float speed()Returns the value of thespeedrecord component.- Returns:
- the value of the
speedrecord component
-