Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getId(MemorySegment)
- getId(MemorySegment, int)
- getShader(MemorySegment)
- getShader(MemorySegment, int)
- getFogMode(MemorySegment)
- getFogMode(MemorySegment, int)
- getFogColor(MemorySegment)
- getFogColor(MemorySegment, int)
- getFogDistance(MemorySegment)
- getFogDistance(MemorySegment, int)
- getFogDepthStart(MemorySegment)
- getFogDepthStart(MemorySegment, int)
- getFogDepthFalloff(MemorySegment)
- getFogDepthFalloff(MemorySegment, int)
- getColorFilter(MemorySegment)
- getColorFilter(MemorySegment, int)
- getColorSaturation(MemorySegment)
- getColorSaturation(MemorySegment, int)
- getDistortionAmplitude(MemorySegment)
- getDistortionAmplitude(MemorySegment, int)
- getDistortionFrequency(MemorySegment)
- getDistortionFrequency(MemorySegment, int)
- getParticle(MemorySegment)
- getParticle(MemorySegment, int)
- getMovementSettings(MemorySegment)
- getMovementSettings(MemorySegment, int)
- hasFogColor(MemorySegment, int)
- hasFogDistance(MemorySegment, int)
- hasColorFilter(MemorySegment, int)
- hasMovementSettings(MemorySegment, int)
- hasId(MemorySegment, int)
- hasParticle(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class FluidFX
java.lang.Object
com.hypixel.hytale.protocol.FluidFX
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatfloatstatic final intfloatfloatstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionFluidFX()FluidFX(String id, ShaderType shader, FluidFog fogMode, Color fogColor, NearFar fogDistance, float fogDepthStart, float fogDepthFalloff, Color colorFilter, float colorSaturation, float distortionAmplitude, float distortionFrequency, FluidParticle particle, FluidFXMovementSettings movementSettings) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic Colorstatic ColorgetColorFilter(MemorySegment mem, int offset) static floatstatic floatgetColorSaturation(MemorySegment mem, int offset) static floatstatic floatgetDistortionAmplitude(MemorySegment mem, int offset) static floatstatic floatgetDistortionFrequency(MemorySegment mem, int offset) static ColorgetFogColor(MemorySegment mem) static ColorgetFogColor(MemorySegment mem, int offset) static floatstatic floatgetFogDepthFalloff(MemorySegment mem, int offset) static floatstatic floatgetFogDepthStart(MemorySegment mem, int offset) static NearFarstatic NearFargetFogDistance(MemorySegment mem, int offset) static FluidFoggetFogMode(MemorySegment mem) static FluidFoggetFogMode(MemorySegment mem, int offset) static StringgetId(MemorySegment mem) static StringgetId(MemorySegment mem, int offset) static FluidFXMovementSettingsstatic FluidFXMovementSettingsgetMovementSettings(MemorySegment mem, int offset) static FluidParticlegetParticle(MemorySegment mem) static FluidParticlegetParticle(MemorySegment mem, int offset) static ShaderTypegetShader(MemorySegment mem) static ShaderTypegetShader(MemorySegment mem, int offset) static booleanhasColorFilter(MemorySegment mem, int offset) static booleanhasFogColor(MemorySegment mem, int offset) static booleanhasFogDistance(MemorySegment mem, int offset) inthashCode()static booleanhasId(MemorySegment mem, int offset) static booleanhasMovementSettings(MemorySegment mem, int offset) static booleanhasParticle(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static FluidFXtoObject(MemorySegment mem) static FluidFXtoObject(MemorySegment mem, int offset) static FluidFXtoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one FluidFX and reports the end of its encoding through the cursor.
-
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
-
shader
-
fogMode
-
fogColor
-
fogDistance
-
fogDepthStart
public float fogDepthStart -
fogDepthFalloff
public float fogDepthFalloff -
colorFilter
-
colorSaturation
public float colorSaturation -
distortionAmplitude
public float distortionAmplitude -
distortionFrequency
public float distortionFrequency -
particle
-
movementSettings
-
-
Constructor Details
-
FluidFX
public FluidFX() -
FluidFX
public FluidFX(@Nullable String id, @Nonnull ShaderType shader, @Nonnull FluidFog fogMode, @Nullable Color fogColor, @Nullable NearFar fogDistance, float fogDepthStart, float fogDepthFalloff, @Nullable Color colorFilter, float colorSaturation, float distortionAmplitude, float distortionFrequency, @Nullable FluidParticle particle, @Nullable FluidFXMovementSettings movementSettings) -
FluidFX
-
-
Method Details
-
requireBounds
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
-
getId
-
getShader
-
getShader
-
getFogMode
-
getFogMode
-
getFogColor
-
getFogColor
-
getFogDistance
-
getFogDistance
-
getFogDepthStart
-
getFogDepthStart
-
getFogDepthFalloff
-
getFogDepthFalloff
-
getColorFilter
-
getColorFilter
-
getColorSaturation
-
getColorSaturation
-
getDistortionAmplitude
-
getDistortionAmplitude
-
getDistortionFrequency
-
getDistortionFrequency
-
getParticle
-
getParticle
-
getMovementSettings
-
getMovementSettings
-
hasFogColor
-
hasFogDistance
-
hasColorFilter
-
hasMovementSettings
-
hasId
-
hasParticle
-
toObject
-
toObject
-
toObject
Decodes one FluidFX 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
-
computeSize
public int computeSize() -
clone
-
equals
-
hashCode
-