Class RecurringWorldEvent

java.lang.Object
com.hypixel.hytale.protocol.packets.interface_.RecurringWorldEvent

public class RecurringWorldEvent 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:
    • uuid

      @Nonnull public UUID uuid
    • worldUuid

      @Nonnull public UUID worldUuid
    • asset

      @Nullable public String asset
    • nameKey

      @Nullable public String nameKey
    • mapIntervalKey

      @Nullable public String mapIntervalKey
    • icon

      @Nullable public String icon
    • remainingSeconds

      public float remainingSeconds
  • Constructor Details

    • RecurringWorldEvent

      public RecurringWorldEvent()
    • RecurringWorldEvent

      public RecurringWorldEvent(@Nonnull UUID uuid, @Nonnull UUID worldUuid, @Nullable String asset, @Nullable String nameKey, @Nullable String mapIntervalKey, @Nullable String icon, float remainingSeconds)
    • RecurringWorldEvent

      public RecurringWorldEvent(@Nonnull RecurringWorldEvent 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.
    • getUuid

      public static UUID getUuid(MemorySegment mem)
    • getUuid

      public static UUID getUuid(MemorySegment mem, int offset)
    • getWorldUuid

      public static UUID getWorldUuid(MemorySegment mem)
    • getWorldUuid

      public static UUID getWorldUuid(MemorySegment mem, int offset)
    • getAsset

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

      @Nullable public static String getAsset(MemorySegment mem, int offset)
    • getNameKey

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

      @Nullable public static String getNameKey(MemorySegment mem, int offset)
    • getMapIntervalKey

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

      @Nullable public static String getMapIntervalKey(MemorySegment mem, int offset)
    • getIcon

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

      @Nullable public static String getIcon(MemorySegment mem, int offset)
    • getRemainingSeconds

      public static float getRemainingSeconds(MemorySegment mem)
    • getRemainingSeconds

      public static float getRemainingSeconds(MemorySegment mem, int offset)
    • hasAsset

      public static boolean hasAsset(MemorySegment mem, int offset)
    • hasNameKey

      public static boolean hasNameKey(MemorySegment mem, int offset)
    • hasMapIntervalKey

      public static boolean hasMapIntervalKey(MemorySegment mem, int offset)
    • hasIcon

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

      public static RecurringWorldEvent toObject(MemorySegment mem)
    • toObject

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object