Record Class ClientboundExplodePacket.BlockParticleInfo
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundExplodePacket.BlockParticleInfo
- Enclosing class:
ClientboundExplodePacket
-
Constructor Summary
ConstructorsConstructorDescriptionBlockParticleInfo(io.netty.buffer.ByteBuf in) BlockParticleInfo(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.voidwrite(io.netty.buffer.ByteBuf out)
-
Constructor Details
-
BlockParticleInfo
public BlockParticleInfo(io.netty.buffer.ByteBuf in) -
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
-
write
public void write(io.netty.buffer.ByteBuf out) -
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
-