Record Class WorldPaint
java.lang.Object
java.lang.Record
com.render.api.world.WorldPaint
Solid or gradient paint evaluated in object-local space.
-
Constructor Summary
ConstructorsConstructorDescriptionWorldPaint(RenderColor color, WorldGradient gradient) Creates an instance of aWorldPaintrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.gradient()Returns the value of thegradientrecord component.static WorldPaintgradient(WorldGradient gradient) final inthashCode()Returns a hash code value for this object.sample(net.minecraft.world.phys.Vec3 localPosition) static WorldPaintsolid(RenderColor color) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WorldPaint
Creates an instance of aWorldPaintrecord class.- Parameters:
color- the value for thecolorrecord componentgradient- the value for thegradientrecord component
-
-
Method Details
-
solid
-
gradient
-
sample
-
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). -
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
gradient
Returns the value of thegradientrecord component.- Returns:
- the value of the
gradientrecord component
-