Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getPosition(MemorySegment)
- getPosition(MemorySegment, int)
- getRadialAxis(MemorySegment)
- getRadialAxis(MemorySegment, int)
- getTrailPositionMultiplier(MemorySegment)
- getTrailPositionMultiplier(MemorySegment, int)
- getRadius(MemorySegment)
- getRadius(MemorySegment, int)
- getRadialAcceleration(MemorySegment)
- getRadialAcceleration(MemorySegment, int)
- getRadialTangentAcceleration(MemorySegment)
- getRadialTangentAcceleration(MemorySegment, int)
- getLinearAcceleration(MemorySegment)
- getLinearAcceleration(MemorySegment, int)
- getRadialImpulse(MemorySegment)
- getRadialImpulse(MemorySegment, int)
- getRadialTangentImpulse(MemorySegment)
- getRadialTangentImpulse(MemorySegment, int)
- getLinearImpulse(MemorySegment)
- getLinearImpulse(MemorySegment, int)
- getDampingMultiplier(MemorySegment)
- getDampingMultiplier(MemorySegment, int)
- hasPosition(MemorySegment, int)
- hasRadialAxis(MemorySegment, int)
- hasLinearAcceleration(MemorySegment, int)
- hasLinearImpulse(MemorySegment, int)
- hasDampingMultiplier(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class ParticleAttractor
java.lang.Object
com.hypixel.hytale.protocol.ParticleAttractor
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.joml.Vector3fcstatic final intorg.joml.Vector3fcorg.joml.Vector3fcstatic final intstatic final intorg.joml.Vector3fcfloatorg.joml.Vector3fcfloatfloatfloatfloatfloatstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionParticleAttractor(org.joml.Vector3fc position, org.joml.Vector3fc radialAxis, float trailPositionMultiplier, float radius, float radialAcceleration, float radialTangentAcceleration, org.joml.Vector3fc linearAcceleration, float radialImpulse, float radialTangentImpulse, org.joml.Vector3fc linearImpulse, org.joml.Vector3fc dampingMultiplier) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic org.joml.Vector3fcstatic org.joml.Vector3fcgetDampingMultiplier(MemorySegment mem, int offset) static org.joml.Vector3fcstatic org.joml.Vector3fcgetLinearAcceleration(MemorySegment mem, int offset) static org.joml.Vector3fcstatic org.joml.Vector3fcgetLinearImpulse(MemorySegment mem, int offset) static org.joml.Vector3fcgetPosition(MemorySegment mem) static org.joml.Vector3fcgetPosition(MemorySegment mem, int offset) static floatstatic floatgetRadialAcceleration(MemorySegment mem, int offset) static org.joml.Vector3fcstatic org.joml.Vector3fcgetRadialAxis(MemorySegment mem, int offset) static floatstatic floatgetRadialImpulse(MemorySegment mem, int offset) static floatstatic floatgetRadialTangentAcceleration(MemorySegment mem, int offset) static floatstatic floatgetRadialTangentImpulse(MemorySegment mem, int offset) static floatgetRadius(MemorySegment mem) static floatgetRadius(MemorySegment mem, int offset) static floatstatic floatgetTrailPositionMultiplier(MemorySegment mem, int offset) static booleanhasDampingMultiplier(MemorySegment mem, int offset) inthashCode()static booleanhasLinearAcceleration(MemorySegment mem, int offset) static booleanhasLinearImpulse(MemorySegment mem, int offset) static booleanhasPosition(MemorySegment mem, int offset) static booleanhasRadialAxis(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static ParticleAttractortoObject(MemorySegment mem) static ParticleAttractortoObject(MemorySegment mem, int offset) static ParticleAttractortoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one ParticleAttractor 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:
-
position
@Nullable public org.joml.Vector3fc position -
radialAxis
@Nullable public org.joml.Vector3fc radialAxis -
trailPositionMultiplier
public float trailPositionMultiplier -
radius
public float radius -
radialAcceleration
public float radialAcceleration -
radialTangentAcceleration
public float radialTangentAcceleration -
linearAcceleration
@Nullable public org.joml.Vector3fc linearAcceleration -
radialImpulse
public float radialImpulse -
radialTangentImpulse
public float radialTangentImpulse -
linearImpulse
@Nullable public org.joml.Vector3fc linearImpulse -
dampingMultiplier
@Nullable public org.joml.Vector3fc dampingMultiplier
-
-
Constructor Details
-
ParticleAttractor
public ParticleAttractor() -
ParticleAttractor
public ParticleAttractor(@Nullable org.joml.Vector3fc position, @Nullable org.joml.Vector3fc radialAxis, float trailPositionMultiplier, float radius, float radialAcceleration, float radialTangentAcceleration, @Nullable org.joml.Vector3fc linearAcceleration, float radialImpulse, float radialTangentImpulse, @Nullable org.joml.Vector3fc linearImpulse, @Nullable org.joml.Vector3fc dampingMultiplier) -
ParticleAttractor
-
-
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. -
getPosition
-
getPosition
-
getRadialAxis
-
getRadialAxis
-
getTrailPositionMultiplier
-
getTrailPositionMultiplier
-
getRadius
-
getRadius
-
getRadialAcceleration
-
getRadialAcceleration
-
getRadialTangentAcceleration
-
getRadialTangentAcceleration
-
getLinearAcceleration
-
getLinearAcceleration
-
getRadialImpulse
-
getRadialImpulse
-
getRadialTangentImpulse
-
getRadialTangentImpulse
-
getLinearImpulse
-
getLinearImpulse
-
getDampingMultiplier
-
getDampingMultiplier
-
hasPosition
-
hasRadialAxis
-
hasLinearAcceleration
-
hasLinearImpulse
-
hasDampingMultiplier
-
toObject
-
toObject
-
toObject
public static ParticleAttractor toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one ParticleAttractor 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
-