Record Class EchoParticleOption
java.lang.Object
java.lang.Record
net.trique.wardentools.particle.echo_particle.EchoParticleOption
- All Implemented Interfaces:
net.minecraft.core.particles.ParticleOptions
public record EchoParticleOption(float scale, float rotX, float rotY)
extends Record
implements net.minecraft.core.particles.ParticleOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<EchoParticleOption> static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, EchoParticleOption> -
Constructor Summary
ConstructorsConstructorDescriptionEchoParticleOption(float scale, float rotX, float rotY) Creates an instance of aEchoParticleOptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.core.particles.ParticleType<EchoParticleOption> getType()final inthashCode()Returns a hash code value for this object.floatrotX()Returns the value of therotXrecord component.floatrotY()Returns the value of therotYrecord component.floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,EchoParticleOption> STREAM_CODEC
-
-
Constructor Details
-
EchoParticleOption
public EchoParticleOption(float scale, float rotX, float rotY) Creates an instance of aEchoParticleOptionrecord class.- Parameters:
scale- the value for thescalerecord componentrotX- the value for therotXrecord componentrotY- the value for therotYrecord component
-
-
Method Details
-
getType
- Specified by:
getTypein interfacenet.minecraft.core.particles.ParticleOptions
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 with '=='. -
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
rotX
public float rotX()Returns the value of therotXrecord component.- Returns:
- the value of the
rotXrecord component
-
rotY
public float rotY()Returns the value of therotYrecord component.- Returns:
- the value of the
rotYrecord component
-