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
- particles
- firstPersonParticles
- worldSoundEventIndex
- localSoundEventIndex
- trails
- waitForAnimationToFinish
- itemPlayerAnimationsId
- itemAnimationId
- clearAnimationOnFinish
- clearSoundEventOnFinish
- hideFirstPersonHeldItem
- cameraShake
- movementEffects
- zoom
- persistZoom
- startDelay
- Constructor Details
- Method Details
- requireBounds(MemorySegment, int)
- getParticles(MemorySegment)
- getParticles(MemorySegment, int)
- getFirstPersonParticles(MemorySegment)
- getFirstPersonParticles(MemorySegment, int)
- getWorldSoundEventIndex(MemorySegment)
- getWorldSoundEventIndex(MemorySegment, int)
- getLocalSoundEventIndex(MemorySegment)
- getLocalSoundEventIndex(MemorySegment, int)
- getTrails(MemorySegment)
- getTrails(MemorySegment, int)
- getWaitForAnimationToFinish(MemorySegment)
- getWaitForAnimationToFinish(MemorySegment, int)
- getItemPlayerAnimationsId(MemorySegment)
- getItemPlayerAnimationsId(MemorySegment, int)
- getItemAnimationId(MemorySegment)
- getItemAnimationId(MemorySegment, int)
- getClearAnimationOnFinish(MemorySegment)
- getClearAnimationOnFinish(MemorySegment, int)
- getClearSoundEventOnFinish(MemorySegment)
- getClearSoundEventOnFinish(MemorySegment, int)
- getHideFirstPersonHeldItem(MemorySegment)
- getHideFirstPersonHeldItem(MemorySegment, int)
- getCameraShake(MemorySegment)
- getCameraShake(MemorySegment, int)
- getMovementEffects(MemorySegment)
- getMovementEffects(MemorySegment, int)
- getZoom(MemorySegment)
- getZoom(MemorySegment, int)
- getPersistZoom(MemorySegment)
- getPersistZoom(MemorySegment, int)
- getStartDelay(MemorySegment)
- getStartDelay(MemorySegment, int)
- hasCameraShake(MemorySegment, int)
- hasMovementEffects(MemorySegment, int)
- hasParticles(MemorySegment, int)
- hasFirstPersonParticles(MemorySegment, int)
- hasTrails(MemorySegment, int)
- hasItemPlayerAnimationsId(MemorySegment, int)
- hasItemAnimationId(MemorySegment, int)
- hasZoom(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class InteractionEffects
java.lang.Object
com.hypixel.hytale.protocol.InteractionEffects
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanstatic final intbooleanintstatic final intstatic final intbooleanfloatstatic final intstatic final intbooleanint -
Constructor Summary
ConstructorsConstructorDescriptionInteractionEffects(ModelParticle[] particles, ModelParticle[] firstPersonParticles, int worldSoundEventIndex, int localSoundEventIndex, ModelTrail[] trails, boolean waitForAnimationToFinish, String itemPlayerAnimationsId, String itemAnimationId, boolean clearAnimationOnFinish, boolean clearSoundEventOnFinish, boolean hideFirstPersonHeldItem, CameraShakeEffect cameraShake, MovementEffects movementEffects, ZoomConfig zoom, boolean persistZoom, float startDelay) -
Method Summary
Modifier and TypeMethodDescriptionclone()intbooleanstatic CameraShakeEffectstatic CameraShakeEffectgetCameraShake(MemorySegment mem, int offset) static booleanstatic booleangetClearAnimationOnFinish(MemorySegment mem, int offset) static booleanstatic booleangetClearSoundEventOnFinish(MemorySegment mem, int offset) static ModelParticle[]static ModelParticle[]getFirstPersonParticles(MemorySegment mem, int offset) static booleanstatic booleangetHideFirstPersonHeldItem(MemorySegment mem, int offset) static Stringstatic StringgetItemAnimationId(MemorySegment mem, int offset) static Stringstatic StringgetItemPlayerAnimationsId(MemorySegment mem, int offset) static intstatic intgetLocalSoundEventIndex(MemorySegment mem, int offset) static MovementEffectsstatic MovementEffectsgetMovementEffects(MemorySegment mem, int offset) static ModelParticle[]static ModelParticle[]getParticles(MemorySegment mem, int offset) static booleanstatic booleangetPersistZoom(MemorySegment mem, int offset) static floatstatic floatgetStartDelay(MemorySegment mem, int offset) static ModelTrail[]getTrails(MemorySegment mem) static ModelTrail[]getTrails(MemorySegment mem, int offset) static booleanstatic booleangetWaitForAnimationToFinish(MemorySegment mem, int offset) static intstatic intgetWorldSoundEventIndex(MemorySegment mem, int offset) static ZoomConfiggetZoom(MemorySegment mem) static ZoomConfiggetZoom(MemorySegment mem, int offset) static booleanhasCameraShake(MemorySegment mem, int offset) static booleanhasFirstPersonParticles(MemorySegment mem, int offset) inthashCode()static booleanhasItemAnimationId(MemorySegment mem, int offset) static booleanhasItemPlayerAnimationsId(MemorySegment mem, int offset) static booleanhasMovementEffects(MemorySegment mem, int offset) static booleanhasParticles(MemorySegment mem, int offset) static booleanhasTrails(MemorySegment mem, int offset) static booleanhasZoom(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) static InteractionEffectstoObject(MemorySegment mem) static InteractionEffectstoObject(MemorySegment mem, int offset) static InteractionEffectstoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one InteractionEffects 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:
-
particles
-
firstPersonParticles
-
worldSoundEventIndex
public int worldSoundEventIndex -
localSoundEventIndex
public int localSoundEventIndex -
trails
-
waitForAnimationToFinish
public boolean waitForAnimationToFinish -
itemPlayerAnimationsId
-
itemAnimationId
-
clearAnimationOnFinish
public boolean clearAnimationOnFinish -
clearSoundEventOnFinish
public boolean clearSoundEventOnFinish -
hideFirstPersonHeldItem
public boolean hideFirstPersonHeldItem -
cameraShake
-
movementEffects
-
zoom
-
persistZoom
public boolean persistZoom -
startDelay
public float startDelay
-
-
Constructor Details
-
InteractionEffects
public InteractionEffects() -
InteractionEffects
public InteractionEffects(@Nullable ModelParticle[] particles, @Nullable ModelParticle[] firstPersonParticles, int worldSoundEventIndex, int localSoundEventIndex, @Nullable ModelTrail[] trails, boolean waitForAnimationToFinish, @Nullable String itemPlayerAnimationsId, @Nullable String itemAnimationId, boolean clearAnimationOnFinish, boolean clearSoundEventOnFinish, boolean hideFirstPersonHeldItem, @Nullable CameraShakeEffect cameraShake, @Nullable MovementEffects movementEffects, @Nullable ZoomConfig zoom, boolean persistZoom, float startDelay) -
InteractionEffects
-
-
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. -
getParticles
-
getParticles
-
getFirstPersonParticles
-
getFirstPersonParticles
-
getWorldSoundEventIndex
-
getWorldSoundEventIndex
-
getLocalSoundEventIndex
-
getLocalSoundEventIndex
-
getTrails
-
getTrails
-
getWaitForAnimationToFinish
-
getWaitForAnimationToFinish
-
getItemPlayerAnimationsId
-
getItemPlayerAnimationsId
-
getItemAnimationId
-
getItemAnimationId
-
getClearAnimationOnFinish
-
getClearAnimationOnFinish
-
getClearSoundEventOnFinish
-
getClearSoundEventOnFinish
-
getHideFirstPersonHeldItem
-
getHideFirstPersonHeldItem
-
getCameraShake
-
getCameraShake
-
getMovementEffects
-
getMovementEffects
-
getZoom
-
getZoom
-
getPersistZoom
-
getPersistZoom
-
getStartDelay
-
getStartDelay
-
hasCameraShake
-
hasMovementEffects
-
hasParticles
-
hasFirstPersonParticles
-
hasTrails
-
hasItemPlayerAnimationsId
-
hasItemAnimationId
-
hasZoom
-
toObject
-
toObject
-
toObject
public static InteractionEffects toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one InteractionEffects 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
-