Record Class BlitConfiguration
java.lang.Object
java.lang.Record
net.thewinnt.cutscenes.effect.configuration.BlitConfiguration
public record BlitConfiguration(net.minecraft.resources.ResourceLocation texture, CoordinateProvider x1, CoordinateProvider y1, CoordinateProvider x2, CoordinateProvider y2, CoordinateProvider u1, CoordinateProvider v1, CoordinateProvider u2, CoordinateProvider v2, DynamicColor tint)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlitConfiguration(net.minecraft.resources.ResourceLocation texture, CoordinateProvider x1, CoordinateProvider y1, CoordinateProvider x2, CoordinateProvider y2, CoordinateProvider u1, CoordinateProvider v1, CoordinateProvider u2, CoordinateProvider v2, DynamicColor tint) Creates an instance of aBlitConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceLocationtexture()Returns the value of thetexturerecord component.tint()Returns the value of thetintrecord component.final StringtoString()Returns a string representation of this record class.u1()Returns the value of theu1record component.u2()Returns the value of theu2record component.v1()Returns the value of thev1record component.v2()Returns the value of thev2record component.x1()Returns the value of thex1record component.x2()Returns the value of thex2record component.y1()Returns the value of they1record component.y2()Returns the value of they2record component.
-
Constructor Details
-
BlitConfiguration
public BlitConfiguration(net.minecraft.resources.ResourceLocation texture, CoordinateProvider x1, CoordinateProvider y1, CoordinateProvider x2, CoordinateProvider y2, CoordinateProvider u1, CoordinateProvider v1, CoordinateProvider u2, CoordinateProvider v2, DynamicColor tint) Creates an instance of aBlitConfigurationrecord class.- Parameters:
texture- the value for thetexturerecord componentx1- the value for thex1record componenty1- the value for they1record componentx2- the value for thex2record componenty2- the value for they2record componentu1- the value for theu1record componentv1- the value for thev1record componentu2- the value for theu2record componentv2- the value for thev2record componenttint- the value for thetintrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
texture
public net.minecraft.resources.ResourceLocation texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
x1
Returns the value of thex1record component.- Returns:
- the value of the
x1record component
-
y1
Returns the value of they1record component.- Returns:
- the value of the
y1record component
-
x2
Returns the value of thex2record component.- Returns:
- the value of the
x2record component
-
y2
Returns the value of they2record component.- Returns:
- the value of the
y2record component
-
u1
Returns the value of theu1record component.- Returns:
- the value of the
u1record component
-
v1
Returns the value of thev1record component.- Returns:
- the value of the
v1record component
-
u2
Returns the value of theu2record component.- Returns:
- the value of the
u2record component
-
v2
Returns the value of thev2record component.- Returns:
- the value of the
v2record component
-
tint
Returns the value of thetintrecord component.- Returns:
- the value of the
tintrecord component
-