Package ke.ric.renderer.api
Record Class LightingCapabilities
java.lang.Object
java.lang.Record
ke.ric.renderer.api.LightingCapabilities
- Record Components:
supported- whether creative lighting and primary visibility controls are supportedmaxLights- maximum virtual lights per passmaxShadowLights- maximum shadow-casting virtual lights per passmaxRange- maximum light range in blocksmaxIntensity- maximum artistic light intensity
public record LightingCapabilities(boolean supported, int maxLights, int maxShadowLights, double maxRange, double maxIntensity)
extends Record
Immutable provider limits for explicit lighting and primary-camera visibility controls.
These are capability limits, not a claim about frame rate. A request must fit every advertised
limit; unsupported providers reject controls rather than ignoring them.
-
Constructor Summary
ConstructorsConstructorDescriptionLightingCapabilities(boolean supported, int maxLights, int maxShadowLights, double maxRange, double maxIntensity) Constructs a validated immutable value. -
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.doubleReturns the value of themaxIntensityrecord component.intReturns the value of themaxLightsrecord component.doublemaxRange()Returns the value of themaxRangerecord component.intReturns the value of themaxShadowLightsrecord component.static LightingCapabilitiesstandard()Returns the standard creative-light limits: 16 lights, eight shadow lights, range 64 and intensity 64.booleanReturns the value of thesupportedrecord component.final StringtoString()Returns a string representation of this record class.static LightingCapabilitiesReturns the safe default for providers that predate creative lighting.
-
Constructor Details
-
LightingCapabilities
public LightingCapabilities(boolean supported, int maxLights, int maxShadowLights, double maxRange, double maxIntensity) Constructs a validated immutable value.- Throws:
IllegalArgumentException- if a limit is negative or nonfinite, or shadow count exceeds light count
-
-
Method Details
-
unsupported
Returns the safe default for providers that predate creative lighting.- Returns:
- unsupported capabilities with all limits zero
-
standard
Returns the standard creative-light limits: 16 lights, eight shadow lights, range 64 and intensity 64.- Returns:
- the standard supported capability value
-
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 with '=='. -
supported
public boolean supported()Returns the value of thesupportedrecord component.- Returns:
- the value of the
supportedrecord component
-
maxLights
public int maxLights()Returns the value of themaxLightsrecord component.- Returns:
- the value of the
maxLightsrecord component
-
maxShadowLights
public int maxShadowLights()Returns the value of themaxShadowLightsrecord component.- Returns:
- the value of the
maxShadowLightsrecord component
-
maxRange
public double maxRange()Returns the value of themaxRangerecord component.- Returns:
- the value of the
maxRangerecord component
-
maxIntensity
public double maxIntensity()Returns the value of themaxIntensityrecord component.- Returns:
- the value of the
maxIntensityrecord component
-