Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- NULLABLE_BIT_FIELD_SIZE
- FIXED_BLOCK_SIZE
- VARIABLE_FIELD_COUNT
- VARIABLE_BLOCK_START
- MAX_SIZE
- texturePath
- frameSize
- uvOption
- scaleRatioConstraint
- softParticles
- softParticlesFadeFactor
- cameraNearFadeStartDistance
- cameraNearFadeEndDistance
- cameraFarFadeStartDistance
- cameraFarFadeEndDistance
- useSpriteBlending
- initialAnimationFrame
- collisionAnimationFrame
- animationFrames
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getTexturePath(MemorySegment)
- getTexturePath(MemorySegment, int)
- getFrameSize(MemorySegment)
- getFrameSize(MemorySegment, int)
- getUvOption(MemorySegment)
- getUvOption(MemorySegment, int)
- getScaleRatioConstraint(MemorySegment)
- getScaleRatioConstraint(MemorySegment, int)
- getSoftParticles(MemorySegment)
- getSoftParticles(MemorySegment, int)
- getSoftParticlesFadeFactor(MemorySegment)
- getSoftParticlesFadeFactor(MemorySegment, int)
- getCameraNearFadeStartDistance(MemorySegment)
- getCameraNearFadeStartDistance(MemorySegment, int)
- getCameraNearFadeEndDistance(MemorySegment)
- getCameraNearFadeEndDistance(MemorySegment, int)
- getCameraFarFadeStartDistance(MemorySegment)
- getCameraFarFadeStartDistance(MemorySegment, int)
- getCameraFarFadeEndDistance(MemorySegment)
- getCameraFarFadeEndDistance(MemorySegment, int)
- getUseSpriteBlending(MemorySegment)
- getUseSpriteBlending(MemorySegment, int)
- getInitialAnimationFrame(MemorySegment)
- getInitialAnimationFrame(MemorySegment, int)
- getCollisionAnimationFrame(MemorySegment)
- getCollisionAnimationFrame(MemorySegment, int)
- getAnimationFrames(MemorySegment)
- getAnimationFrames(MemorySegment, int)
- hasFrameSize(MemorySegment, int)
- hasInitialAnimationFrame(MemorySegment, int)
- hasCollisionAnimationFrame(MemorySegment, int)
- hasTexturePath(MemorySegment, int)
- hasAnimationFrames(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class Particle
java.lang.Object
com.hypixel.hytale.protocol.Particle
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatfloatfloatstatic final intstatic final intstatic final intfloatbooleanstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionParticle()Particle(String texturePath, Size frameSize, ParticleUVOption uvOption, ParticleScaleRatioConstraint scaleRatioConstraint, SoftParticle softParticles, float softParticlesFadeFactor, float cameraNearFadeStartDistance, float cameraNearFadeEndDistance, float cameraFarFadeStartDistance, float cameraFarFadeEndDistance, boolean useSpriteBlending, ParticleAnimationFrame initialAnimationFrame, ParticleAnimationFrame collisionAnimationFrame, Map<Integer, ParticleAnimationFrame> animationFrames) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic Map<Integer, ParticleAnimationFrame> static Map<Integer, ParticleAnimationFrame> getAnimationFrames(MemorySegment mem, int offset) static floatstatic floatgetCameraFarFadeEndDistance(MemorySegment mem, int offset) static floatstatic floatgetCameraFarFadeStartDistance(MemorySegment mem, int offset) static floatstatic floatgetCameraNearFadeEndDistance(MemorySegment mem, int offset) static floatstatic floatgetCameraNearFadeStartDistance(MemorySegment mem, int offset) static ParticleAnimationFramestatic ParticleAnimationFramegetCollisionAnimationFrame(MemorySegment mem, int offset) static Sizestatic SizegetFrameSize(MemorySegment mem, int offset) static ParticleAnimationFramestatic ParticleAnimationFramegetInitialAnimationFrame(MemorySegment mem, int offset) static ParticleScaleRatioConstraintstatic ParticleScaleRatioConstraintgetScaleRatioConstraint(MemorySegment mem, int offset) static SoftParticlestatic SoftParticlegetSoftParticles(MemorySegment mem, int offset) static floatstatic floatgetSoftParticlesFadeFactor(MemorySegment mem, int offset) static Stringstatic StringgetTexturePath(MemorySegment mem, int offset) static booleanstatic booleangetUseSpriteBlending(MemorySegment mem, int offset) static ParticleUVOptiongetUvOption(MemorySegment mem) static ParticleUVOptiongetUvOption(MemorySegment mem, int offset) static booleanhasAnimationFrames(MemorySegment mem, int offset) static booleanhasCollisionAnimationFrame(MemorySegment mem, int offset) static booleanhasFrameSize(MemorySegment mem, int offset) inthashCode()static booleanhasInitialAnimationFrame(MemorySegment mem, int offset) static booleanhasTexturePath(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static ParticletoObject(MemorySegment mem) static ParticletoObject(MemorySegment mem, int offset) static ParticletoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one Particle 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:
-
texturePath
-
frameSize
-
uvOption
-
scaleRatioConstraint
-
softParticles
-
softParticlesFadeFactor
public float softParticlesFadeFactor -
cameraNearFadeStartDistance
public float cameraNearFadeStartDistance -
cameraNearFadeEndDistance
public float cameraNearFadeEndDistance -
cameraFarFadeStartDistance
public float cameraFarFadeStartDistance -
cameraFarFadeEndDistance
public float cameraFarFadeEndDistance -
useSpriteBlending
public boolean useSpriteBlending -
initialAnimationFrame
-
collisionAnimationFrame
-
animationFrames
-
-
Constructor Details
-
Particle
public Particle() -
Particle
public Particle(@Nullable String texturePath, @Nullable Size frameSize, @Nonnull ParticleUVOption uvOption, @Nonnull ParticleScaleRatioConstraint scaleRatioConstraint, @Nonnull SoftParticle softParticles, float softParticlesFadeFactor, float cameraNearFadeStartDistance, float cameraNearFadeEndDistance, float cameraFarFadeStartDistance, float cameraFarFadeEndDistance, boolean useSpriteBlending, @Nullable ParticleAnimationFrame initialAnimationFrame, @Nullable ParticleAnimationFrame collisionAnimationFrame, @Nullable Map<Integer, ParticleAnimationFrame> animationFrames) -
Particle
-
-
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. -
getTexturePath
-
getTexturePath
-
getFrameSize
-
getFrameSize
-
getUvOption
-
getUvOption
-
getScaleRatioConstraint
-
getScaleRatioConstraint
-
getSoftParticles
-
getSoftParticles
-
getSoftParticlesFadeFactor
-
getSoftParticlesFadeFactor
-
getCameraNearFadeStartDistance
-
getCameraNearFadeStartDistance
-
getCameraNearFadeEndDistance
-
getCameraNearFadeEndDistance
-
getCameraFarFadeStartDistance
-
getCameraFarFadeStartDistance
-
getCameraFarFadeEndDistance
-
getCameraFarFadeEndDistance
-
getUseSpriteBlending
-
getUseSpriteBlending
-
getInitialAnimationFrame
-
getInitialAnimationFrame
@Nullable public static ParticleAnimationFrame getInitialAnimationFrame(MemorySegment mem, int offset) -
getCollisionAnimationFrame
-
getCollisionAnimationFrame
@Nullable public static ParticleAnimationFrame getCollisionAnimationFrame(MemorySegment mem, int offset) -
getAnimationFrames
-
getAnimationFrames
@Nullable public static Map<Integer, ParticleAnimationFrame> getAnimationFrames(MemorySegment mem, int offset) -
hasFrameSize
-
hasInitialAnimationFrame
-
hasCollisionAnimationFrame
-
hasTexturePath
-
hasAnimationFrames
-
toObject
-
toObject
-
toObject
Decodes one Particle 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
-