Record Class InstanceBatch3D.Instance
java.lang.Object
java.lang.Record
com.render.api.world.InstanceBatch3D.Instance
- Enclosing class:
InstanceBatch3D
public static record InstanceBatch3D.Instance(WorldTransform transform, RenderColor color, float effectValue, long pickId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInstance(WorldTransform transform, RenderColor color, float effectValue, long pickId) Creates an instance of aInstancerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.floatReturns the value of theeffectValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longpickId()Returns the value of thepickIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformrecord component.
-
Constructor Details
-
Instance
Creates an instance of aInstancerecord class.- Parameters:
transform- the value for thetransformrecord componentcolor- the value for thecolorrecord componenteffectValue- the value for theeffectValuerecord 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. -
transform
Returns the value of thetransformrecord component.- Returns:
- the value of the
transformrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
effectValue
public float effectValue()Returns the value of theeffectValuerecord component.- Returns:
- the value of the
effectValuerecord component
-
pickId
public long pickId()Returns the value of thepickIdrecord component.- Returns:
- the value of the
pickIdrecord component
-