Record Class RenderOptions
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.battles.raids.RenderOptions
- Record Components:
denModel- The model data used to render the den base.denModelEffect- The render effect used to draw the den base model.denBeam- The beam effect to render for this raid type. Use the none effect to disable beam rendering.denParticles- The particle effect to render for this raid type. Use the none effect to disable particle rendering.emissiveWhenActive- Whether the den base should render at full brightness while active.activeLightLevel- The block light level, from 0 to 15, to emit from the den while it has active raid data. A value of 0 disables world lighting.tintBase- Whether the den base model should be tinted using the active raid color.baseTransparency- The alpha value to use when rendering the den base, from 0.0 (fully transparent) to 1.0 (fully opaque). This is applied regardless of whether tinting is enabled, allowing for translucent bases with or without tint colors.
public record RenderOptions(ModelLocator denModel, DenModelRenderEffect denModelEffect, DenBeamRenderEffect denBeam, DenParticleRenderEffect denParticles, boolean emissiveWhenActive, int activeLightLevel, boolean tintBase, float baseTransparency)
extends Record
Visual configuration for dens of a raid type.
These options are data-driven by RaidType and describe how a den should be presented
while it is active. Most options are client render choices; activeLightLevel() also
controls the temporary block light emitted by an active den.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRenderOptions(ModelLocator denModel, DenModelRenderEffect denModelEffect, DenBeamRenderEffect denBeam, DenParticleRenderEffect denParticles, boolean emissiveWhenActive, int activeLightLevel, boolean tintBase, float baseTransparency) Creates an instance of aRenderOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveLightLevelrecord component.floatReturns the value of thebaseTransparencyrecord component.denBeam()Returns the value of thedenBeamrecord component.denModel()Returns the value of thedenModelrecord component.Returns the value of thedenModelEffectrecord component.Returns the value of thedenParticlesrecord component.booleanReturns the value of theemissiveWhenActiverecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleantintBase()Returns the value of thetintBaserecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
RenderOptions
public RenderOptions(ModelLocator denModel, DenModelRenderEffect denModelEffect, DenBeamRenderEffect denBeam, DenParticleRenderEffect denParticles, boolean emissiveWhenActive, int activeLightLevel, boolean tintBase, float baseTransparency) Creates an instance of aRenderOptionsrecord class.- Parameters:
denModel- the value for thedenModelrecord componentdenModelEffect- the value for thedenModelEffectrecord componentdenBeam- the value for thedenBeamrecord componentdenParticles- the value for thedenParticlesrecord componentemissiveWhenActive- the value for theemissiveWhenActiverecord componentactiveLightLevel- the value for theactiveLightLevelrecord componenttintBase- the value for thetintBaserecord componentbaseTransparency- the value for thebaseTransparencyrecord 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 '=='. -
denModel
Returns the value of thedenModelrecord component.- Returns:
- the value of the
denModelrecord component
-
denModelEffect
Returns the value of thedenModelEffectrecord component.- Returns:
- the value of the
denModelEffectrecord component
-
denBeam
Returns the value of thedenBeamrecord component.- Returns:
- the value of the
denBeamrecord component
-
denParticles
Returns the value of thedenParticlesrecord component.- Returns:
- the value of the
denParticlesrecord component
-
emissiveWhenActive
public boolean emissiveWhenActive()Returns the value of theemissiveWhenActiverecord component.- Returns:
- the value of the
emissiveWhenActiverecord component
-
activeLightLevel
public int activeLightLevel()Returns the value of theactiveLightLevelrecord component.- Returns:
- the value of the
activeLightLevelrecord component
-
tintBase
public boolean tintBase()Returns the value of thetintBaserecord component.- Returns:
- the value of the
tintBaserecord component
-
baseTransparency
public float baseTransparency()Returns the value of thebaseTransparencyrecord component.- Returns:
- the value of the
baseTransparencyrecord component
-