Class TriggerVolumeDisplayEntry

java.lang.Object
com.hypixel.hytale.protocol.packets.player.TriggerVolumeDisplayEntry

public class TriggerVolumeDisplayEntry extends Object
  • 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:
    • volumeId

      @Nonnull public String volumeId
    • shapeType

      @Nonnull public TriggerVolumeShapeType shapeType
    • position

      @Nonnull public org.joml.Vector3fc position
    • dimensions

      @Nonnull public org.joml.Vector3fc dimensions
    • color

      @Nonnull public org.joml.Vector3fc color
    • opacity

      public float opacity
    • name

      @Nullable public String name
    • groupId

      @Nullable public String groupId
    • groupColor

      public int groupColor
    • effectAssetRef

      @Nullable public String effectAssetRef
    • targetTypes

      public byte targetTypes
    • keepLoaded

      public boolean keepLoaded
    • cancelDelayedOnExit

      public boolean cancelDelayedOnExit
    • cooldown

      public float cooldown
    • cooldownMode

      public byte cooldownMode
    • activationDelay

      public float activationDelay
    • conditionTiming

      @Nonnull public TriggerVolumeConditionTiming conditionTiming
    • rotation

      @Nonnull public org.joml.Vector3fc rotation
  • Constructor Details

    • TriggerVolumeDisplayEntry

      public TriggerVolumeDisplayEntry()
    • TriggerVolumeDisplayEntry

      public TriggerVolumeDisplayEntry(@Nonnull String volumeId, @Nonnull TriggerVolumeShapeType shapeType, @Nonnull org.joml.Vector3fc position, @Nonnull org.joml.Vector3fc dimensions, @Nonnull org.joml.Vector3fc color, float opacity, @Nullable String name, @Nullable String groupId, int groupColor, @Nullable String effectAssetRef, byte targetTypes, boolean keepLoaded, boolean cancelDelayedOnExit, float cooldown, byte cooldownMode, float activationDelay, @Nonnull TriggerVolumeConditionTiming conditionTiming, @Nonnull org.joml.Vector3fc rotation)
    • TriggerVolumeDisplayEntry

      public TriggerVolumeDisplayEntry(@Nonnull TriggerVolumeDisplayEntry other)
  • Method Details

    • requireBounds

      public static void requireBounds(MemorySegment mem, int offset)
      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.
    • getVolumeId

      public static String getVolumeId(MemorySegment mem)
    • getVolumeId

      public static String getVolumeId(MemorySegment mem, int offset)
    • getShapeType

      public static TriggerVolumeShapeType getShapeType(MemorySegment mem)
    • getShapeType

      public static TriggerVolumeShapeType getShapeType(MemorySegment mem, int offset)
    • getPosition

      public static org.joml.Vector3fc getPosition(MemorySegment mem)
    • getPosition

      public static org.joml.Vector3fc getPosition(MemorySegment mem, int offset)
    • getDimensions

      public static org.joml.Vector3fc getDimensions(MemorySegment mem)
    • getDimensions

      public static org.joml.Vector3fc getDimensions(MemorySegment mem, int offset)
    • getColor

      public static org.joml.Vector3fc getColor(MemorySegment mem)
    • getColor

      public static org.joml.Vector3fc getColor(MemorySegment mem, int offset)
    • getOpacity

      public static float getOpacity(MemorySegment mem)
    • getOpacity

      public static float getOpacity(MemorySegment mem, int offset)
    • getName

      @Nullable public static String getName(MemorySegment mem)
    • getName

      @Nullable public static String getName(MemorySegment mem, int offset)
    • getGroupId

      @Nullable public static String getGroupId(MemorySegment mem)
    • getGroupId

      @Nullable public static String getGroupId(MemorySegment mem, int offset)
    • getGroupColor

      public static int getGroupColor(MemorySegment mem)
    • getGroupColor

      public static int getGroupColor(MemorySegment mem, int offset)
    • getEffectAssetRef

      @Nullable public static String getEffectAssetRef(MemorySegment mem)
    • getEffectAssetRef

      @Nullable public static String getEffectAssetRef(MemorySegment mem, int offset)
    • getTargetTypes

      public static byte getTargetTypes(MemorySegment mem)
    • getTargetTypes

      public static byte getTargetTypes(MemorySegment mem, int offset)
    • getKeepLoaded

      public static boolean getKeepLoaded(MemorySegment mem)
    • getKeepLoaded

      public static boolean getKeepLoaded(MemorySegment mem, int offset)
    • getCancelDelayedOnExit

      public static boolean getCancelDelayedOnExit(MemorySegment mem)
    • getCancelDelayedOnExit

      public static boolean getCancelDelayedOnExit(MemorySegment mem, int offset)
    • getCooldown

      public static float getCooldown(MemorySegment mem)
    • getCooldown

      public static float getCooldown(MemorySegment mem, int offset)
    • getCooldownMode

      public static byte getCooldownMode(MemorySegment mem)
    • getCooldownMode

      public static byte getCooldownMode(MemorySegment mem, int offset)
    • getActivationDelay

      public static float getActivationDelay(MemorySegment mem)
    • getActivationDelay

      public static float getActivationDelay(MemorySegment mem, int offset)
    • getConditionTiming

      public static TriggerVolumeConditionTiming getConditionTiming(MemorySegment mem)
    • getConditionTiming

      public static TriggerVolumeConditionTiming getConditionTiming(MemorySegment mem, int offset)
    • getRotation

      public static org.joml.Vector3fc getRotation(MemorySegment mem)
    • getRotation

      public static org.joml.Vector3fc getRotation(MemorySegment mem, int offset)
    • hasName

      public static boolean hasName(MemorySegment mem, int offset)
    • hasGroupId

      public static boolean hasGroupId(MemorySegment mem, int offset)
    • hasEffectAssetRef

      public static boolean hasEffectAssetRef(MemorySegment mem, int offset)
    • toObject

      public static TriggerVolumeDisplayEntry toObject(MemorySegment mem)
    • toObject

      public static TriggerVolumeDisplayEntry toObject(MemorySegment mem, int offset)
    • toObject

      public static TriggerVolumeDisplayEntry toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor)
      Decodes one TriggerVolumeDisplayEntry 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

      public int serialize(@Nonnull MemorySegment mem, int offset)
    • computeSize

      public int computeSize()
    • clone

      public TriggerVolumeDisplayEntry clone()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object