Class ReverbEffect

java.lang.Object
com.hypixel.hytale.protocol.ReverbEffect

public class ReverbEffect extends Object
  • Field Details

    • NULLABLE_BIT_FIELD_SIZE

      public static final int NULLABLE_BIT_FIELD_SIZE
      See Also:
    • FIXED_BLOCK_SIZE

      public static final int FIXED_BLOCK_SIZE
      See Also:
    • VARIABLE_FIELD_COUNT

      public static final int VARIABLE_FIELD_COUNT
      See Also:
    • VARIABLE_BLOCK_START

      public static final int VARIABLE_BLOCK_START
      See Also:
    • MAX_SIZE

      public static final int MAX_SIZE
      See Also:
    • id

      @Nullable public String id
    • dryGain

      public float dryGain
    • modalDensity

      public float modalDensity
    • diffusion

      public float diffusion
    • gain

      public float gain
    • highFrequencyGain

      public float highFrequencyGain
    • decayTime

      public float decayTime
    • highFrequencyDecayRatio

      public float highFrequencyDecayRatio
    • reflectionGain

      public float reflectionGain
    • reflectionDelay

      public float reflectionDelay
    • lateReverbGain

      public float lateReverbGain
    • lateReverbDelay

      public float lateReverbDelay
    • roomRolloffFactor

      public float roomRolloffFactor
    • airAbsorptionHighFrequencyGain

      public float airAbsorptionHighFrequencyGain
    • limitDecayHighFrequency

      public boolean limitDecayHighFrequency
  • Constructor Details

    • ReverbEffect

      public ReverbEffect()
    • ReverbEffect

      public ReverbEffect(@Nullable String id, float dryGain, float modalDensity, float diffusion, float gain, float highFrequencyGain, float decayTime, float highFrequencyDecayRatio, float reflectionGain, float reflectionDelay, float lateReverbGain, float lateReverbDelay, float roomRolloffFactor, float airAbsorptionHighFrequencyGain, boolean limitDecayHighFrequency)
    • ReverbEffect

      public ReverbEffect(@Nonnull ReverbEffect other)
  • Method Details

    • requireBounds

      public static void requireBounds(MemorySegment mem, int offset)
      Checks that the fixed block fits. The per-field getters read without their own bound check, so call this once before reading fields out of an untrusted segment.
    • getId

      @Nullable public static String getId(MemorySegment mem)
    • getId

      @Nullable public static String getId(MemorySegment mem, int offset)
    • getDryGain

      public static float getDryGain(MemorySegment mem)
    • getDryGain

      public static float getDryGain(MemorySegment mem, int offset)
    • getModalDensity

      public static float getModalDensity(MemorySegment mem)
    • getModalDensity

      public static float getModalDensity(MemorySegment mem, int offset)
    • getDiffusion

      public static float getDiffusion(MemorySegment mem)
    • getDiffusion

      public static float getDiffusion(MemorySegment mem, int offset)
    • getGain

      public static float getGain(MemorySegment mem)
    • getGain

      public static float getGain(MemorySegment mem, int offset)
    • getHighFrequencyGain

      public static float getHighFrequencyGain(MemorySegment mem)
    • getHighFrequencyGain

      public static float getHighFrequencyGain(MemorySegment mem, int offset)
    • getDecayTime

      public static float getDecayTime(MemorySegment mem)
    • getDecayTime

      public static float getDecayTime(MemorySegment mem, int offset)
    • getHighFrequencyDecayRatio

      public static float getHighFrequencyDecayRatio(MemorySegment mem)
    • getHighFrequencyDecayRatio

      public static float getHighFrequencyDecayRatio(MemorySegment mem, int offset)
    • getReflectionGain

      public static float getReflectionGain(MemorySegment mem)
    • getReflectionGain

      public static float getReflectionGain(MemorySegment mem, int offset)
    • getReflectionDelay

      public static float getReflectionDelay(MemorySegment mem)
    • getReflectionDelay

      public static float getReflectionDelay(MemorySegment mem, int offset)
    • getLateReverbGain

      public static float getLateReverbGain(MemorySegment mem)
    • getLateReverbGain

      public static float getLateReverbGain(MemorySegment mem, int offset)
    • getLateReverbDelay

      public static float getLateReverbDelay(MemorySegment mem)
    • getLateReverbDelay

      public static float getLateReverbDelay(MemorySegment mem, int offset)
    • getRoomRolloffFactor

      public static float getRoomRolloffFactor(MemorySegment mem)
    • getRoomRolloffFactor

      public static float getRoomRolloffFactor(MemorySegment mem, int offset)
    • getAirAbsorptionHighFrequencyGain

      public static float getAirAbsorptionHighFrequencyGain(MemorySegment mem)
    • getAirAbsorptionHighFrequencyGain

      public static float getAirAbsorptionHighFrequencyGain(MemorySegment mem, int offset)
    • getLimitDecayHighFrequency

      public static boolean getLimitDecayHighFrequency(MemorySegment mem)
    • getLimitDecayHighFrequency

      public static boolean getLimitDecayHighFrequency(MemorySegment mem, int offset)
    • hasId

      public static boolean hasId(MemorySegment mem, int offset)
    • toObject

      public static ReverbEffect toObject(MemorySegment mem)
    • toObject

      public static ReverbEffect toObject(MemorySegment mem, int offset)
    • toObject

      public static ReverbEffect toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor)
      Decodes one ReverbEffect and reports the end of its encoding through the cursor. The variable block is decoded in field order against a running position, and each offset slot must name that position, so the fields decoded are the bytes walked.
    • serialize

      public int serialize(@Nonnull MemorySegment mem, int offset)
    • computeSize

      public int computeSize()
    • clone

      public ReverbEffect clone()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object