Record Class TeleportRandomlyConsumeEffect
java.lang.Object
java.lang.Record
com.viaversion.viaversion.api.minecraft.item.data.consumable.TeleportRandomlyConsumeEffect
public record TeleportRandomlyConsumeEffect(float diameter, boolean directionalParticles)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTeleportRandomlyConsumeEffect(float diameter, boolean directionalParticles) Creates an instance of aTeleportRandomlyConsumeEffectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatdiameter()Returns the value of thediameterrecord component.booleanReturns the value of thedirectionalParticlesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TeleportRandomlyConsumeEffect
public TeleportRandomlyConsumeEffect(float diameter, boolean directionalParticles) Creates an instance of aTeleportRandomlyConsumeEffectrecord class.- Parameters:
diameter- the value for thediameterrecord componentdirectionalParticles- the value for thedirectionalParticlesrecord component
-
-
Method Details
-
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 '=='. -
diameter
public float diameter()Returns the value of thediameterrecord component.- Returns:
- the value of the
diameterrecord component
-
directionalParticles
public boolean directionalParticles()Returns the value of thedirectionalParticlesrecord component.- Returns:
- the value of the
directionalParticlesrecord component
-