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 Details

    • CODEC

      public static final com.mojang.serialization.Codec<RenderOptions> CODEC
  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • denModel

      public ModelLocator denModel()
      Returns the value of the denModel record component.
      Returns:
      the value of the denModel record component
    • denModelEffect

      public DenModelRenderEffect denModelEffect()
      Returns the value of the denModelEffect record component.
      Returns:
      the value of the denModelEffect record component
    • denBeam

      public DenBeamRenderEffect denBeam()
      Returns the value of the denBeam record component.
      Returns:
      the value of the denBeam record component
    • denParticles

      public DenParticleRenderEffect denParticles()
      Returns the value of the denParticles record component.
      Returns:
      the value of the denParticles record component
    • emissiveWhenActive

      public boolean emissiveWhenActive()
      Returns the value of the emissiveWhenActive record component.
      Returns:
      the value of the emissiveWhenActive record component
    • activeLightLevel

      public int activeLightLevel()
      Returns the value of the activeLightLevel record component.
      Returns:
      the value of the activeLightLevel record component
    • tintBase

      public boolean tintBase()
      Returns the value of the tintBase record component.
      Returns:
      the value of the tintBase record component
    • baseTransparency

      public float baseTransparency()
      Returns the value of the baseTransparency record component.
      Returns:
      the value of the baseTransparency record component