Skip to content

AmbienceFXConditions

Package: com.hypixel.hytale.protocol

public class AmbienceFXConditions

Defines the environmental conditions that must be met for an ambience effect to activate. Supports filtering by environment, weather, fluid, altitude, light levels, time of day, and surrounding block types.

TypeNameNullableDescription
booleanneverNo
int``[]environmentIndicesYes
int``[]weatherIndicesYes
int``[]fluidFXIndicesYes
intenvironmentTagPatternIndexNo
intweatherTagPatternIndexNo
AmbienceFXBlockSoundSet[]surroundingBlockSoundSetsYes
RangealtitudeYes
RangebwallsYes
booleanroofNo
introofMaterialTagPatternIndexNo
booleanfloorNo
RangebsunLightLevelYes
RangebtorchLightLevelYes
RangebglobalLightLevelYes
RangefdayTimeYes
ConstantValue
NULLABLE_BIT_FIELD_SIZE2
FIXED_BLOCK_SIZE41
VARIABLE_FIELD_COUNT4
VARIABLE_BLOCK_START57
MAX_SIZE102,400,077

Binary layout: 2 null-bit bytes + 41 bytes of fixed fields + 4 variable-length fields (4-byte offset slots). All multi-byte primitives use little-endian encoding.

@Nonnull
public static AmbienceFXConditions deserialize(@Nonnull ByteBuf buf, int offset)

Deserializes a AmbienceFXConditions from the given buffer at the specified offset.

public static int computeBytesConsumed(@Nonnull ByteBuf buf, int offset)

Returns the total number of bytes consumed by this AmbienceFXConditions starting at the given offset.

public void serialize(@Nonnull ByteBuf buf)

Serializes this AmbienceFXConditions into the given buffer.

public int computeSize()

Returns the serialized size in bytes.

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.