Record Class CustomBlockFaceLighting.Face
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.model.CustomBlockFaceLighting.Face
- Enclosing class:
CustomBlockFaceLighting
public static record CustomBlockFaceLighting.Face(CustomBlockFaceLighting.Corner lowerLower, CustomBlockFaceLighting.Corner upperLower, CustomBlockFaceLighting.Corner lowerUpper, CustomBlockFaceLighting.Corner upperUpper)
extends Record
Inner axis is X for horizontal/North/South faces and Z for West/East faces.
-
Constructor Summary
ConstructorsConstructorDescriptionFace(CustomBlockFaceLighting.Corner lowerLower, CustomBlockFaceLighting.Corner upperLower, CustomBlockFaceLighting.Corner lowerUpper, CustomBlockFaceLighting.Corner upperUpper) Creates an instance of aFacerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncorner(boolean upperInner, boolean upperOuter) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelowerLowerrecord component.Returns the value of thelowerUpperrecord component.floatshade(float inner, float outer) final StringtoString()Returns a string representation of this record class.Returns the value of theupperLowerrecord component.Returns the value of theupperUpperrecord component.
-
Constructor Details
-
Face
public Face(CustomBlockFaceLighting.Corner lowerLower, CustomBlockFaceLighting.Corner upperLower, CustomBlockFaceLighting.Corner lowerUpper, CustomBlockFaceLighting.Corner upperUpper) Creates an instance of aFacerecord class.- Parameters:
lowerLower- the value for thelowerLowerrecord componentupperLower- the value for theupperLowerrecord componentlowerUpper- the value for thelowerUpperrecord componentupperUpper- the value for theupperUpperrecord component
-
-
Method Details
-
corner
-
shade
public float shade(float inner, float outer) -
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). -
lowerLower
Returns the value of thelowerLowerrecord component.- Returns:
- the value of the
lowerLowerrecord component
-
upperLower
Returns the value of theupperLowerrecord component.- Returns:
- the value of the
upperLowerrecord component
-
lowerUpper
Returns the value of thelowerUpperrecord component.- Returns:
- the value of the
lowerUpperrecord component
-
upperUpper
Returns the value of theupperUpperrecord component.- Returns:
- the value of the
upperUpperrecord component
-