Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getId(MemorySegment)
- getId(MemorySegment, int)
- getMaxFluidLevel(MemorySegment)
- getMaxFluidLevel(MemorySegment, int)
- getCubeTextures(MemorySegment)
- getCubeTextures(MemorySegment, int)
- getRequiresAlphaBlending(MemorySegment)
- getRequiresAlphaBlending(MemorySegment, int)
- getOpacity(MemorySegment)
- getOpacity(MemorySegment, int)
- getShaderEffect(MemorySegment)
- getShaderEffect(MemorySegment, int)
- getLight(MemorySegment)
- getLight(MemorySegment, int)
- getParticles(MemorySegment)
- getParticles(MemorySegment, int)
- getDrawType(MemorySegment)
- getDrawType(MemorySegment, int)
- getFluidFXIndex(MemorySegment)
- getFluidFXIndex(MemorySegment, int)
- getBlockSoundSetIndex(MemorySegment)
- getBlockSoundSetIndex(MemorySegment, int)
- getBlockParticleSetId(MemorySegment)
- getBlockParticleSetId(MemorySegment, int)
- getParticleColor(MemorySegment)
- getParticleColor(MemorySegment, int)
- getTagIndexes(MemorySegment)
- getTagIndexes(MemorySegment, int)
- hasLight(MemorySegment, int)
- hasParticleColor(MemorySegment, int)
- hasId(MemorySegment, int)
- hasCubeTextures(MemorySegment, int)
- hasShaderEffect(MemorySegment, int)
- hasParticles(MemorySegment, int)
- hasBlockParticleSetId(MemorySegment, int)
- hasTagIndexes(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class Fluid
java.lang.Object
com.hypixel.hytale.protocol.Fluid
-
Field Summary
FieldsModifier and TypeFieldDescriptionintstatic final intintstatic final intintstatic final intbooleanint[]static final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionFluid()Fluid(String id, int maxFluidLevel, BlockTextures[] cubeTextures, boolean requiresAlphaBlending, Opacity opacity, ShaderType[] shaderEffect, ColorLight light, ModelParticle[] particles, FluidDrawType drawType, int fluidFXIndex, int blockSoundSetIndex, String blockParticleSetId, Color particleColor, int[] tagIndexes) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic Stringstatic StringgetBlockParticleSetId(MemorySegment mem, int offset) static intstatic intgetBlockSoundSetIndex(MemorySegment mem, int offset) static BlockTextures[]static BlockTextures[]getCubeTextures(MemorySegment mem, int offset) static FluidDrawTypegetDrawType(MemorySegment mem) static FluidDrawTypegetDrawType(MemorySegment mem, int offset) static intstatic intgetFluidFXIndex(MemorySegment mem, int offset) static StringgetId(MemorySegment mem) static StringgetId(MemorySegment mem, int offset) static ColorLightgetLight(MemorySegment mem) static ColorLightgetLight(MemorySegment mem, int offset) static intstatic intgetMaxFluidLevel(MemorySegment mem, int offset) static OpacitygetOpacity(MemorySegment mem) static OpacitygetOpacity(MemorySegment mem, int offset) static Colorstatic ColorgetParticleColor(MemorySegment mem, int offset) static ModelParticle[]static ModelParticle[]getParticles(MemorySegment mem, int offset) static booleanstatic booleangetRequiresAlphaBlending(MemorySegment mem, int offset) static ShaderType[]static ShaderType[]getShaderEffect(MemorySegment mem, int offset) static int[]static int[]getTagIndexes(MemorySegment mem, int offset) static booleanhasBlockParticleSetId(MemorySegment mem, int offset) static booleanhasCubeTextures(MemorySegment mem, int offset) inthashCode()static booleanhasId(MemorySegment mem, int offset) static booleanhasLight(MemorySegment mem, int offset) static booleanhasParticleColor(MemorySegment mem, int offset) static booleanhasParticles(MemorySegment mem, int offset) static booleanhasShaderEffect(MemorySegment mem, int offset) static booleanhasTagIndexes(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static FluidtoObject(MemorySegment mem) static FluidtoObject(MemorySegment mem, int offset) static FluidtoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one Fluid 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
-
maxFluidLevel
public int maxFluidLevel -
cubeTextures
-
requiresAlphaBlending
public boolean requiresAlphaBlending -
opacity
-
shaderEffect
-
light
-
particles
-
drawType
-
fluidFXIndex
public int fluidFXIndex -
blockSoundSetIndex
public int blockSoundSetIndex -
blockParticleSetId
-
particleColor
-
tagIndexes
@Nullable public int[] tagIndexes
-
-
Constructor Details
-
Fluid
public Fluid() -
Fluid
public Fluid(@Nullable String id, int maxFluidLevel, @Nullable BlockTextures[] cubeTextures, boolean requiresAlphaBlending, @Nonnull Opacity opacity, @Nullable ShaderType[] shaderEffect, @Nullable ColorLight light, @Nullable ModelParticle[] particles, @Nonnull FluidDrawType drawType, int fluidFXIndex, int blockSoundSetIndex, @Nullable String blockParticleSetId, @Nullable Color particleColor, @Nullable int[] tagIndexes) -
Fluid
-
-
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
-
getMaxFluidLevel
-
getMaxFluidLevel
-
getCubeTextures
-
getCubeTextures
-
getRequiresAlphaBlending
-
getRequiresAlphaBlending
-
getOpacity
-
getOpacity
-
getShaderEffect
-
getShaderEffect
-
getLight
-
getLight
-
getParticles
-
getParticles
-
getDrawType
-
getDrawType
-
getFluidFXIndex
-
getFluidFXIndex
-
getBlockSoundSetIndex
-
getBlockSoundSetIndex
-
getBlockParticleSetId
-
getBlockParticleSetId
-
getParticleColor
-
getParticleColor
-
getTagIndexes
-
getTagIndexes
-
hasLight
-
hasParticleColor
-
hasId
-
hasCubeTextures
-
hasShaderEffect
-
hasParticles
-
hasBlockParticleSetId
-
hasTagIndexes
-
toObject
-
toObject
-
toObject
Decodes one Fluid 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
-