Record Class WorldParticleSystem.Spawn
java.lang.Object
java.lang.Record
com.render.api.world.WorldParticleSystem.Spawn
- Enclosing class:
WorldParticleSystem
public static record WorldParticleSystem.Spawn(net.minecraft.world.phys.Vec3 position, net.minecraft.world.phys.Vec3 velocity, float lifetime, float size, RenderColor color, long pickId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSpawn(net.minecraft.world.phys.Vec3 position, net.minecraft.world.phys.Vec3 velocity, float lifetime, float size, RenderColor color, long pickId) Creates an instance of aSpawnrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatlifetime()Returns the value of thelifetimerecord component.longpickId()Returns the value of thepickIdrecord component.net.minecraft.world.phys.Vec3position()Returns the value of thepositionrecord component.floatsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.world.phys.Vec3velocity()Returns the value of thevelocityrecord component.
-
Constructor Details
-
Spawn
public Spawn(net.minecraft.world.phys.Vec3 position, net.minecraft.world.phys.Vec3 velocity, float lifetime, float size, RenderColor color, long pickId) Creates an instance of aSpawnrecord class.- Parameters:
position- the value for thepositionrecord componentvelocity- the value for thevelocityrecord componentlifetime- the value for thelifetimerecord componentsize- the value for thesizerecord componentcolor- the value for thecolorrecord componentpickId- the value for thepickIdrecord 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. -
position
public net.minecraft.world.phys.Vec3 position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
velocity
public net.minecraft.world.phys.Vec3 velocity()Returns the value of thevelocityrecord component.- Returns:
- the value of the
velocityrecord component
-
lifetime
public float lifetime()Returns the value of thelifetimerecord component.- Returns:
- the value of the
lifetimerecord component
-
size
public float size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
pickId
public long pickId()Returns the value of thepickIdrecord component.- Returns:
- the value of the
pickIdrecord component
-