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
- physicsConfig
- model
- launchForce
- spawnOffset
- rotationOffset
- rotateSpawnOffsetByPitch
- rotateSpawnOffsetByYaw
- interactions
- launchLocalSoundEventIndex
- launchWorldSoundEventIndex
- projectileSoundEventIndex
- minScale
- maxScale
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getPhysicsConfig(MemorySegment)
- getPhysicsConfig(MemorySegment, int)
- getModel(MemorySegment)
- getModel(MemorySegment, int)
- getLaunchForce(MemorySegment)
- getLaunchForce(MemorySegment, int)
- getSpawnOffset(MemorySegment)
- getSpawnOffset(MemorySegment, int)
- getRotationOffset(MemorySegment)
- getRotationOffset(MemorySegment, int)
- getRotateSpawnOffsetByPitch(MemorySegment)
- getRotateSpawnOffsetByPitch(MemorySegment, int)
- getRotateSpawnOffsetByYaw(MemorySegment)
- getRotateSpawnOffsetByYaw(MemorySegment, int)
- getInteractions(MemorySegment)
- getInteractions(MemorySegment, int)
- getLaunchLocalSoundEventIndex(MemorySegment)
- getLaunchLocalSoundEventIndex(MemorySegment, int)
- getLaunchWorldSoundEventIndex(MemorySegment)
- getLaunchWorldSoundEventIndex(MemorySegment, int)
- getProjectileSoundEventIndex(MemorySegment)
- getProjectileSoundEventIndex(MemorySegment, int)
- getMinScale(MemorySegment)
- getMinScale(MemorySegment, int)
- getMaxScale(MemorySegment)
- getMaxScale(MemorySegment, int)
- hasPhysicsConfig(MemorySegment, int)
- hasSpawnOffset(MemorySegment, int)
- hasRotationOffset(MemorySegment, int)
- hasModel(MemorySegment, int)
- hasInteractions(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class ProjectileConfig
java.lang.Object
com.hypixel.hytale.protocol.ProjectileConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intdoubleintintstatic final intfloatfloatstatic final intintbooleanbooleanorg.joml.Vector3fcstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionProjectileConfig(PhysicsConfig physicsConfig, Model model, double launchForce, org.joml.Vector3fc spawnOffset, Direction rotationOffset, boolean rotateSpawnOffsetByPitch, boolean rotateSpawnOffsetByYaw, Map<InteractionType, Integer> interactions, int launchLocalSoundEventIndex, int launchWorldSoundEventIndex, int projectileSoundEventIndex, float minScale, float maxScale) ProjectileConfig(ProjectileConfig other) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic Map<InteractionType, Integer> static Map<InteractionType, Integer> getInteractions(MemorySegment mem, int offset) static doublestatic doublegetLaunchForce(MemorySegment mem, int offset) static intstatic intgetLaunchLocalSoundEventIndex(MemorySegment mem, int offset) static intstatic intgetLaunchWorldSoundEventIndex(MemorySegment mem, int offset) static floatgetMaxScale(MemorySegment mem) static floatgetMaxScale(MemorySegment mem, int offset) static floatgetMinScale(MemorySegment mem) static floatgetMinScale(MemorySegment mem, int offset) static ModelgetModel(MemorySegment mem) static ModelgetModel(MemorySegment mem, int offset) static PhysicsConfigstatic PhysicsConfiggetPhysicsConfig(MemorySegment mem, int offset) static intstatic intgetProjectileSoundEventIndex(MemorySegment mem, int offset) static booleanstatic booleangetRotateSpawnOffsetByPitch(MemorySegment mem, int offset) static booleanstatic booleangetRotateSpawnOffsetByYaw(MemorySegment mem, int offset) static Directionstatic DirectiongetRotationOffset(MemorySegment mem, int offset) static org.joml.Vector3fcstatic org.joml.Vector3fcgetSpawnOffset(MemorySegment mem, int offset) inthashCode()static booleanhasInteractions(MemorySegment mem, int offset) static booleanhasModel(MemorySegment mem, int offset) static booleanhasPhysicsConfig(MemorySegment mem, int offset) static booleanhasRotationOffset(MemorySegment mem, int offset) static booleanhasSpawnOffset(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static ProjectileConfigtoObject(MemorySegment mem) static ProjectileConfigtoObject(MemorySegment mem, int offset) static ProjectileConfigtoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one ProjectileConfig 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:
-
physicsConfig
-
model
-
launchForce
public double launchForce -
spawnOffset
@Nullable public org.joml.Vector3fc spawnOffset -
rotationOffset
-
rotateSpawnOffsetByPitch
public boolean rotateSpawnOffsetByPitch -
rotateSpawnOffsetByYaw
public boolean rotateSpawnOffsetByYaw -
interactions
-
launchLocalSoundEventIndex
public int launchLocalSoundEventIndex -
launchWorldSoundEventIndex
public int launchWorldSoundEventIndex -
projectileSoundEventIndex
public int projectileSoundEventIndex -
minScale
public float minScale -
maxScale
public float maxScale
-
-
Constructor Details
-
ProjectileConfig
public ProjectileConfig() -
ProjectileConfig
public ProjectileConfig(@Nullable PhysicsConfig physicsConfig, @Nullable Model model, double launchForce, @Nullable org.joml.Vector3fc spawnOffset, @Nullable Direction rotationOffset, boolean rotateSpawnOffsetByPitch, boolean rotateSpawnOffsetByYaw, @Nullable Map<InteractionType, Integer> interactions, int launchLocalSoundEventIndex, int launchWorldSoundEventIndex, int projectileSoundEventIndex, float minScale, float maxScale) -
ProjectileConfig
-
-
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. -
getPhysicsConfig
-
getPhysicsConfig
-
getModel
-
getModel
-
getLaunchForce
-
getLaunchForce
-
getSpawnOffset
-
getSpawnOffset
-
getRotationOffset
-
getRotationOffset
-
getRotateSpawnOffsetByPitch
-
getRotateSpawnOffsetByPitch
-
getRotateSpawnOffsetByYaw
-
getRotateSpawnOffsetByYaw
-
getInteractions
-
getInteractions
@Nullable public static Map<InteractionType, Integer> getInteractions(MemorySegment mem, int offset) -
getLaunchLocalSoundEventIndex
-
getLaunchLocalSoundEventIndex
-
getLaunchWorldSoundEventIndex
-
getLaunchWorldSoundEventIndex
-
getProjectileSoundEventIndex
-
getProjectileSoundEventIndex
-
getMinScale
-
getMinScale
-
getMaxScale
-
getMaxScale
-
hasPhysicsConfig
-
hasSpawnOffset
-
hasRotationOffset
-
hasModel
-
hasInteractions
-
toObject
-
toObject
-
toObject
Decodes one ProjectileConfig 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
-