Record Class BedrockMappingData.JavaParticle
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.protocol.data.BedrockMappingData.JavaParticle
- All Implemented Interfaces:
BedrockMappingData.LevelEventMapping
- Enclosing class:
- BedrockMappingData
public static record BedrockMappingData.JavaParticle(com.viaversion.viaversion.api.minecraft.Particle particle, float offsetX, float offsetY, float offsetZ, float speed, int count)
extends Record
implements BedrockMappingData.LevelEventMapping
-
Constructor Summary
ConstructorsConstructorDescriptionJavaParticle(com.viaversion.viaversion.api.minecraft.Particle particle, float offsetX, float offsetY, float offsetZ, float speed, int count) Creates an instance of aJavaParticlerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatoffsetX()Returns the value of theoffsetXrecord component.floatoffsetY()Returns the value of theoffsetYrecord component.floatoffsetZ()Returns the value of theoffsetZrecord component.com.viaversion.viaversion.api.minecraft.Particleparticle()Returns the value of theparticlerecord component.floatspeed()Returns the value of thespeedrecord component.final StringtoString()Returns a string representation of this record class.withCount(int count) withParticle(com.viaversion.viaversion.api.minecraft.Particle particle)
-
Constructor Details
-
JavaParticle
public JavaParticle(com.viaversion.viaversion.api.minecraft.Particle particle, float offsetX, float offsetY, float offsetZ, float speed, int count) Creates an instance of aJavaParticlerecord class.- Parameters:
particle- the value for theparticlerecord componentoffsetX- the value for theoffsetXrecord componentoffsetY- the value for theoffsetYrecord componentoffsetZ- the value for theoffsetZrecord componentspeed- the value for thespeedrecord componentcount- the value for thecountrecord component
-
-
Method Details
-
withParticle
public BedrockMappingData.JavaParticle withParticle(com.viaversion.viaversion.api.minecraft.Particle particle) -
withCount
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
particle
public com.viaversion.viaversion.api.minecraft.Particle particle()Returns the value of theparticlerecord component.- Returns:
- the value of the
particlerecord component
-
offsetX
public float offsetX()Returns the value of theoffsetXrecord component.- Returns:
- the value of the
offsetXrecord component
-
offsetY
public float offsetY()Returns the value of theoffsetYrecord component.- Returns:
- the value of the
offsetYrecord component
-
offsetZ
public float offsetZ()Returns the value of theoffsetZrecord component.- Returns:
- the value of the
offsetZrecord component
-
speed
public float speed()Returns the value of thespeedrecord component.- Returns:
- the value of the
speedrecord component
-
count
public int count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-