Record Class ClientGradient
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.gradient.ClientGradient
- All Implemented Interfaces:
Gradient, RefOptimizer<Gradient>
public record ClientGradient(ClientGradient.ClientGradientRef ref)
extends Record
implements Gradient
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CustomRegistryType<io.netty.buffer.ByteBuf, Gradient> -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aClientGradientrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.get(float delta) final inthashCode()Returns a hash code value for this object.ref()Returns the value of therefrecord component.sample(net.minecraft.util.RandomSource random) final StringtoString()Returns a string representation of this record class.CustomRegistryType<io.netty.buffer.ByteBuf, Gradient> type()static voidupdateRefs(Map<net.minecraft.resources.Identifier, Gradient> map) Methods inherited from interface RefOptimizer
optimize
-
Field Details
-
TYPE
-
-
Constructor Details
-
ClientGradient
Creates an instance of aClientGradientrecord class.- Parameters:
ref- the value for therefrecord component
-
-
Method Details
-
updateRefs
-
type
-
get
-
sample
-
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). -
ref
Returns the value of therefrecord component.- Returns:
- the value of the
refrecord component
-