AmbienceFXSoundEffect.java
package com.hypixel.hytale.protocol;
import com.hypixel.hytale.protocol.io.ValidationResult;
import io.netty.buffer.ByteBuf;
import java.util.Objects;
import javax.annotation.Nonnull;
public class AmbienceFXSoundEffect {
public static final int NULLABLE_BIT_FIELD_SIZE = 0;
public static final int FIXED_BLOCK_SIZE = 9;
public static final int VARIABLE_FIELD_COUNT = 0;
public static final int VARIABLE_BLOCK_START = 9;
public static final int MAX_SIZE = 9;
public int reverbEffectIndex;
equalizerEffectIndex;
isInstant;
{
}
{
.reverbEffectIndex = reverbEffectIndex;
.equalizerEffectIndex = equalizerEffectIndex;
.isInstant = isInstant;
}
{
.reverbEffectIndex = other.reverbEffectIndex;
.equalizerEffectIndex = other.equalizerEffectIndex;
.isInstant = other.isInstant;
}
AmbienceFXSoundEffect {
();
obj.reverbEffectIndex = buf.getIntLE(offset + );
obj.equalizerEffectIndex = buf.getIntLE(offset + );
obj.isInstant = buf.getByte(offset + ) != ;
obj;
}
{
;
}
{
buf.writeIntLE(.reverbEffectIndex);
buf.writeIntLE(.equalizerEffectIndex);
buf.writeByte(.isInstant ? : );
}
{
;
}
ValidationResult {
buffer.readableBytes() - offset < ? ValidationResult.error() : ValidationResult.OK;
}
AmbienceFXSoundEffect {
();
copy.reverbEffectIndex = .reverbEffectIndex;
copy.equalizerEffectIndex = .equalizerEffectIndex;
copy.isInstant = .isInstant;
copy;
}
{
( == obj) {
;
} (!(obj AmbienceFXSoundEffect)) {
;
} {
(AmbienceFXSoundEffect)obj;
.reverbEffectIndex == other.reverbEffectIndex && .equalizerEffectIndex == other.equalizerEffectIndex && .isInstant == other.isInstant;
}
}
{
Objects.hash( []{.reverbEffectIndex, .equalizerEffectIndex, .isInstant});
}
}