Package ke.ric.renderer.api
Record Class ResolvedRenderTarget
java.lang.Object
java.lang.Record
ke.ric.renderer.api.ResolvedRenderTarget
- Record Components:
transform- finite world position in blocks and yaw in degreesminX- minimum world X bound in blocksminY- minimum world Y bound in blocksminZ- minimum world Z bound in blocksmaxX- maximum world X bound in blocksmaxY- maximum world Y bound in blocksmaxZ- maximum world Z bound in blocksmeshes- defensively copied resolved mesh listfallbackArgb- packed ARGB fallback colortintRgb- packed 24-bit RGB tint; the high byte must be zerotranslucent- whether this target is translucent
public record ResolvedRenderTarget(ResolvedTransform transform, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, List<ResolvedMesh> meshes, int fallbackArgb, int tintRgb, boolean translucent)
extends Record
One immutable entity render target with independent world placement and complete visual evidence.
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedRenderTarget(List<ResolvedMesh> meshes) Creates an unplaced target with inferred BLEND translucency, magenta fallback ARGB and zero tint.ResolvedRenderTarget(List<ResolvedMesh> meshes, int fallbackArgb, int tintRgb, boolean translucent) Creates an unplaced target;SceneEntityapplies its world placement when selected.ResolvedRenderTarget(ResolvedTransform transform, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, List<ResolvedMesh> meshes, int fallbackArgb, int tintRgb, boolean translucent) Creates an instance of aResolvedRenderTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefallbackArgbrecord component.final inthashCode()Returns a hash code value for this object.doublemaxX()Returns the value of themaxXrecord component.doublemaxY()Returns the value of themaxYrecord component.doublemaxZ()Returns the value of themaxZrecord component.meshes()Returns the value of themeshesrecord component.doubleminX()Returns the value of theminXrecord component.doubleminY()Returns the value of theminYrecord component.doubleminZ()Returns the value of theminZrecord component.inttintRgb()Returns the value of thetintRgbrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformrecord component.booleanReturns the value of thetranslucentrecord component.
-
Constructor Details
-
ResolvedRenderTarget
Creates an unplaced target with inferred BLEND translucency, magenta fallback ARGB and zero tint. -
ResolvedRenderTarget
public ResolvedRenderTarget(List<ResolvedMesh> meshes, int fallbackArgb, int tintRgb, boolean translucent) Creates an unplaced target;SceneEntityapplies its world placement when selected. -
ResolvedRenderTarget
public ResolvedRenderTarget(ResolvedTransform transform, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, List<ResolvedMesh> meshes, int fallbackArgb, int tintRgb, boolean translucent) Creates an instance of aResolvedRenderTargetrecord class.- Parameters:
transform- the value for thetransformrecord componentminX- the value for theminXrecord componentminY- the value for theminYrecord componentminZ- the value for theminZrecord componentmaxX- the value for themaxXrecord componentmaxY- the value for themaxYrecord componentmaxZ- the value for themaxZrecord componentmeshes- the value for themeshesrecord componentfallbackArgb- the value for thefallbackArgbrecord componenttintRgb- the value for thetintRgbrecord componenttranslucent- the value for thetranslucentrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
transform
Returns the value of thetransformrecord component.- Returns:
- the value of the
transformrecord component
-
minX
public double minX()Returns the value of theminXrecord component.- Returns:
- the value of the
minXrecord component
-
minY
public double minY()Returns the value of theminYrecord component.- Returns:
- the value of the
minYrecord component
-
minZ
public double minZ()Returns the value of theminZrecord component.- Returns:
- the value of the
minZrecord component
-
maxX
public double maxX()Returns the value of themaxXrecord component.- Returns:
- the value of the
maxXrecord component
-
maxY
public double maxY()Returns the value of themaxYrecord component.- Returns:
- the value of the
maxYrecord component
-
maxZ
public double maxZ()Returns the value of themaxZrecord component.- Returns:
- the value of the
maxZrecord component
-
meshes
Returns the value of themeshesrecord component.- Returns:
- the value of the
meshesrecord component
-
fallbackArgb
public int fallbackArgb()Returns the value of thefallbackArgbrecord component.- Returns:
- the value of the
fallbackArgbrecord component
-
tintRgb
public int tintRgb()Returns the value of thetintRgbrecord component.- Returns:
- the value of the
tintRgbrecord component
-
translucent
public boolean translucent()Returns the value of thetranslucentrecord component.- Returns:
- the value of the
translucentrecord component
-