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
- velocityConfig
- changeVelocityType
- forces
- duration
- verticalClamp
- waitForGround
- waitForCollision
- groundCheckDelay
- collisionCheckDelay
- groundNext
- collisionNext
- raycastDistance
- raycastHeightOffset
- raycastMode
- useTargetBlockForDirection
- Constructor Details
- ApplyForceInteraction()
- ApplyForceInteraction(WaitForDataFrom, InteractionEffects, float, float, InteractionItemChangeBehavior, Map, InteractionRules, int[], InteractionCameraSettings, int, int, VelocityConfig, ChangeVelocityType, AppliedForce[], float, FloatRange, boolean, boolean, float, float, int, int, float, float, RaycastMode, boolean)
- ApplyForceInteraction(ApplyForceInteraction)
- Method Details
- requireBounds(MemorySegment, int)
- getWaitForDataFrom(MemorySegment)
- getWaitForDataFrom(MemorySegment, int)
- getEffects(MemorySegment)
- getEffects(MemorySegment, int)
- getHorizontalSpeedMultiplier(MemorySegment)
- getHorizontalSpeedMultiplier(MemorySegment, int)
- getRunTime(MemorySegment)
- getRunTime(MemorySegment, int)
- getOnItemChangeBehavior(MemorySegment)
- getOnItemChangeBehavior(MemorySegment, int)
- getSettings(MemorySegment)
- getSettings(MemorySegment, int)
- getRules(MemorySegment)
- getRules(MemorySegment, int)
- getTags(MemorySegment)
- getTags(MemorySegment, int)
- getCamera(MemorySegment)
- getCamera(MemorySegment, int)
- getNext(MemorySegment)
- getNext(MemorySegment, int)
- getFailed(MemorySegment)
- getFailed(MemorySegment, int)
- getVelocityConfig(MemorySegment)
- getVelocityConfig(MemorySegment, int)
- getChangeVelocityType(MemorySegment)
- getChangeVelocityType(MemorySegment, int)
- getForces(MemorySegment)
- getForces(MemorySegment, int)
- getDuration(MemorySegment)
- getDuration(MemorySegment, int)
- getVerticalClamp(MemorySegment)
- getVerticalClamp(MemorySegment, int)
- getWaitForGround(MemorySegment)
- getWaitForGround(MemorySegment, int)
- getWaitForCollision(MemorySegment)
- getWaitForCollision(MemorySegment, int)
- getGroundCheckDelay(MemorySegment)
- getGroundCheckDelay(MemorySegment, int)
- getCollisionCheckDelay(MemorySegment)
- getCollisionCheckDelay(MemorySegment, int)
- getGroundNext(MemorySegment)
- getGroundNext(MemorySegment, int)
- getCollisionNext(MemorySegment)
- getCollisionNext(MemorySegment, int)
- getRaycastDistance(MemorySegment)
- getRaycastDistance(MemorySegment, int)
- getRaycastHeightOffset(MemorySegment)
- getRaycastHeightOffset(MemorySegment, int)
- getRaycastMode(MemorySegment)
- getRaycastMode(MemorySegment, int)
- getUseTargetBlockForDirection(MemorySegment)
- getUseTargetBlockForDirection(MemorySegment, int)
- hasVelocityConfig(MemorySegment, int)
- hasVerticalClamp(MemorySegment, int)
- hasEffects(MemorySegment, int)
- hasSettings(MemorySegment, int)
- hasTags(MemorySegment, int)
- hasCamera(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class ApplyForceInteraction
java.lang.Object
com.hypixel.hytale.protocol.Interaction
com.hypixel.hytale.protocol.SimpleInteraction
com.hypixel.hytale.protocol.ApplyForceInteraction
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatintfloatstatic final intfloatintstatic final intstatic final intfloatfloatbooleanstatic final intstatic final intbooleanbooleanFields inherited from class SimpleInteraction
failed, nextFields inherited from class Interaction
camera, effects, horizontalSpeedMultiplier, onItemChangeBehavior, rules, runTime, settings, tags, waitForDataFrom -
Constructor Summary
ConstructorsConstructorDescriptionApplyForceInteraction(WaitForDataFrom waitForDataFrom, InteractionEffects effects, float horizontalSpeedMultiplier, float runTime, InteractionItemChangeBehavior onItemChangeBehavior, Map<GameMode, InteractionSettings> settings, InteractionRules rules, int[] tags, InteractionCameraSettings camera, int next, int failed, VelocityConfig velocityConfig, ChangeVelocityType changeVelocityType, AppliedForce[] forces, float duration, FloatRange verticalClamp, boolean waitForGround, boolean waitForCollision, float groundCheckDelay, float collisionCheckDelay, int groundNext, int collisionNext, float raycastDistance, float raycastHeightOffset, RaycastMode raycastMode, boolean useTargetBlockForDirection) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic InteractionCameraSettingsgetCamera(MemorySegment mem) static InteractionCameraSettingsgetCamera(MemorySegment mem, int offset) static ChangeVelocityTypestatic ChangeVelocityTypegetChangeVelocityType(MemorySegment mem, int offset) static floatstatic floatgetCollisionCheckDelay(MemorySegment mem, int offset) static intstatic intgetCollisionNext(MemorySegment mem, int offset) static floatgetDuration(MemorySegment mem) static floatgetDuration(MemorySegment mem, int offset) static InteractionEffectsgetEffects(MemorySegment mem) static InteractionEffectsgetEffects(MemorySegment mem, int offset) static intgetFailed(MemorySegment mem) static intgetFailed(MemorySegment mem, int offset) static AppliedForce[]getForces(MemorySegment mem) static AppliedForce[]getForces(MemorySegment mem, int offset) static floatstatic floatgetGroundCheckDelay(MemorySegment mem, int offset) static intstatic intgetGroundNext(MemorySegment mem, int offset) static floatstatic floatgetHorizontalSpeedMultiplier(MemorySegment mem, int offset) static intgetNext(MemorySegment mem) static intgetNext(MemorySegment mem, int offset) getOnItemChangeBehavior(MemorySegment mem, int offset) static floatstatic floatgetRaycastDistance(MemorySegment mem, int offset) static floatstatic floatgetRaycastHeightOffset(MemorySegment mem, int offset) static RaycastModestatic RaycastModegetRaycastMode(MemorySegment mem, int offset) static InteractionRulesgetRules(MemorySegment mem) static InteractionRulesgetRules(MemorySegment mem, int offset) static floatgetRunTime(MemorySegment mem) static floatgetRunTime(MemorySegment mem, int offset) static Map<GameMode, InteractionSettings> getSettings(MemorySegment mem) static Map<GameMode, InteractionSettings> getSettings(MemorySegment mem, int offset) static int[]getTags(MemorySegment mem) static int[]getTags(MemorySegment mem, int offset) static booleanstatic booleangetUseTargetBlockForDirection(MemorySegment mem, int offset) static VelocityConfigstatic VelocityConfiggetVelocityConfig(MemorySegment mem, int offset) static FloatRangestatic FloatRangegetVerticalClamp(MemorySegment mem, int offset) static booleanstatic booleangetWaitForCollision(MemorySegment mem, int offset) static WaitForDataFromstatic WaitForDataFromgetWaitForDataFrom(MemorySegment mem, int offset) static booleanstatic booleangetWaitForGround(MemorySegment mem, int offset) static booleanhasCamera(MemorySegment mem, int offset) static booleanhasEffects(MemorySegment mem, int offset) inthashCode()static booleanhasSettings(MemorySegment mem, int offset) static booleanhasTags(MemorySegment mem, int offset) static booleanhasVelocityConfig(MemorySegment mem, int offset) static booleanhasVerticalClamp(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static ApplyForceInteractiontoObject(MemorySegment mem) static ApplyForceInteractiontoObject(MemorySegment mem, int offset) static ApplyForceInteractiontoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one ApplyForceInteraction and reports the end of its encoding through the cursor.Methods inherited from class Interaction
computeSizeWithTypeId, getTypeId, serializeWithTypeId
-
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:
-
velocityConfig
-
changeVelocityType
-
forces
-
duration
public float duration -
verticalClamp
-
waitForGround
public boolean waitForGround -
waitForCollision
public boolean waitForCollision -
groundCheckDelay
public float groundCheckDelay -
collisionCheckDelay
public float collisionCheckDelay -
groundNext
public int groundNext -
collisionNext
public int collisionNext -
raycastDistance
public float raycastDistance -
raycastHeightOffset
public float raycastHeightOffset -
raycastMode
-
useTargetBlockForDirection
public boolean useTargetBlockForDirection
-
-
Constructor Details
-
ApplyForceInteraction
public ApplyForceInteraction() -
ApplyForceInteraction
public ApplyForceInteraction(@Nonnull WaitForDataFrom waitForDataFrom, @Nullable InteractionEffects effects, float horizontalSpeedMultiplier, float runTime, @Nonnull InteractionItemChangeBehavior onItemChangeBehavior, @Nullable Map<GameMode, InteractionSettings> settings, @Nonnull InteractionRules rules, @Nullable int[] tags, @Nullable InteractionCameraSettings camera, int next, int failed, @Nullable VelocityConfig velocityConfig, @Nonnull ChangeVelocityType changeVelocityType, @Nonnull AppliedForce[] forces, float duration, @Nullable FloatRange verticalClamp, boolean waitForGround, boolean waitForCollision, float groundCheckDelay, float collisionCheckDelay, int groundNext, int collisionNext, float raycastDistance, float raycastHeightOffset, @Nonnull RaycastMode raycastMode, boolean useTargetBlockForDirection) -
ApplyForceInteraction
-
-
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. -
getWaitForDataFrom
-
getWaitForDataFrom
-
getEffects
-
getEffects
-
getHorizontalSpeedMultiplier
-
getHorizontalSpeedMultiplier
-
getRunTime
-
getRunTime
-
getOnItemChangeBehavior
-
getOnItemChangeBehavior
-
getSettings
-
getSettings
@Nullable public static Map<GameMode, InteractionSettings> getSettings(MemorySegment mem, int offset) -
getRules
-
getRules
-
getTags
-
getTags
-
getCamera
-
getCamera
-
getNext
-
getNext
-
getFailed
-
getFailed
-
getVelocityConfig
-
getVelocityConfig
-
getChangeVelocityType
-
getChangeVelocityType
-
getForces
-
getForces
-
getDuration
-
getDuration
-
getVerticalClamp
-
getVerticalClamp
-
getWaitForGround
-
getWaitForGround
-
getWaitForCollision
-
getWaitForCollision
-
getGroundCheckDelay
-
getGroundCheckDelay
-
getCollisionCheckDelay
-
getCollisionCheckDelay
-
getGroundNext
-
getGroundNext
-
getCollisionNext
-
getCollisionNext
-
getRaycastDistance
-
getRaycastDistance
-
getRaycastHeightOffset
-
getRaycastHeightOffset
-
getRaycastMode
-
getRaycastMode
-
getUseTargetBlockForDirection
-
getUseTargetBlockForDirection
-
hasVelocityConfig
-
hasVerticalClamp
-
hasEffects
-
hasSettings
-
hasTags
-
hasCamera
-
toObject
-
toObject
-
toObject
public static ApplyForceInteraction toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one ApplyForceInteraction 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
- Overrides:
serializein classSimpleInteraction
-
computeSize
public int computeSize()- Overrides:
computeSizein classSimpleInteraction
-
clone
- Overrides:
clonein classSimpleInteraction
-
equals
- Overrides:
equalsin classSimpleInteraction
-
hashCode
public int hashCode()- Overrides:
hashCodein classSimpleInteraction
-