Record Class LinearGradient
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.gradient.LinearGradient
- All Implemented Interfaces:
Gradient, RefOptimizer<Gradient>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CustomRegistryType<io.netty.buffer.ByteBuf, Gradient> -
Constructor Summary
ConstructorsConstructorDescriptionLinearGradient(Color start, Color end) Creates an instance of aLinearGradientrecord class. -
Method Summary
Modifier and TypeMethodDescriptionend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.get(float delta) final inthashCode()Returns a hash code value for this object.optimize()start()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.CustomRegistryType<io.netty.buffer.ByteBuf, Gradient> type()
-
Field Details
-
TYPE
-
-
Constructor Details
-
LinearGradient
-
-
Method Details
-
type
-
get
-
optimize
- Specified by:
optimizein interfaceRefOptimizer<Gradient>
-
getPositionedColors
- Specified by:
getPositionedColorsin interfaceGradient
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-