Contents
- Description
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- Constructor Details
- Method Details
- getId()
- getChannel()
- requireBounds(MemorySegment, int)
- getPromptId(MemorySegment)
- getPromptId(MemorySegment, int)
- getNameKey(MemorySegment)
- getNameKey(MemorySegment, int)
- getTimeLimitSeconds(MemorySegment)
- getTimeLimitSeconds(MemorySegment, int)
- getRemainingSeconds(MemorySegment)
- getRemainingSeconds(MemorySegment, int)
- getTimerStarted(MemorySegment)
- getTimerStarted(MemorySegment, int)
- getAllowedEntryCount(MemorySegment)
- getAllowedEntryCount(MemorySegment, int)
- getEntriesUsed(MemorySegment)
- getEntriesUsed(MemorySegment, int)
- getAnyoneEntered(MemorySegment)
- getAnyoneEntered(MemorySegment, int)
- getPlayerCount(MemorySegment)
- getPlayerCount(MemorySegment, int)
- getPlayerNames(MemorySegment)
- getPlayerNames(MemorySegment, int)
- getIsForming(MemorySegment)
- getIsForming(MemorySegment, int)
- hasNameKey(MemorySegment, int)
- hasPlayerNames(MemorySegment, int)
- toObject(MemorySegment)
- toObject(MemorySegment, int)
- toObject(MemorySegment, int, ReadCursor)
- serialize(MemorySegment, int)
- computeSize()
- clone()
- equals(Object)
- hashCode()
Class OpenPortalActivePage
java.lang.Object
com.hypixel.hytale.protocol.packets.interface_.OpenPortalActivePage
- All Implemented Interfaces:
Packet, ToClientPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionintbooleanintstatic final intstatic final booleanbooleanstatic final intstatic final intstatic final intintString[]intintintbooleanstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionOpenPortalActivePage(int promptId, String nameKey, int timeLimitSeconds, int remainingSeconds, boolean timerStarted, int allowedEntryCount, int entriesUsed, boolean anyoneEntered, int playerCount, String[] playerNames, boolean isForming) -
Method Summary
Modifier and TypeMethodDescriptionclone()intCompute the exact number of bytes needed to serialize this packet.booleanstatic intstatic intgetAllowedEntryCount(MemorySegment mem, int offset) static booleanstatic booleangetAnyoneEntered(MemorySegment mem, int offset) Returns the channel this packet should be sent on.static intstatic intgetEntriesUsed(MemorySegment mem, int offset) intgetId()Returns the unique packet ID.static booleanstatic booleangetIsForming(MemorySegment mem, int offset) static StringgetNameKey(MemorySegment mem) static StringgetNameKey(MemorySegment mem, int offset) static intstatic intgetPlayerCount(MemorySegment mem, int offset) static String[]static String[]getPlayerNames(MemorySegment mem, int offset) static intgetPromptId(MemorySegment mem) static intgetPromptId(MemorySegment mem, int offset) static intstatic intgetRemainingSeconds(MemorySegment mem, int offset) static intstatic intgetTimeLimitSeconds(MemorySegment mem, int offset) static booleanstatic booleangetTimerStarted(MemorySegment mem, int offset) inthashCode()static booleanhasNameKey(MemorySegment mem, int offset) static booleanhasPlayerNames(MemorySegment mem, int offset) static voidrequireBounds(MemorySegment mem, int offset) Checks that the fixed block fits.intserialize(MemorySegment mem, int offset) Writes this packet atoffsetand returns the number of bytes written, which callers rely on being exactlyPacket.computeSize().static OpenPortalActivePagetoObject(MemorySegment mem) static OpenPortalActivePagetoObject(MemorySegment mem, int offset) static OpenPortalActivePagetoObject(MemorySegment mem, int offset, ReadCursor cursor) Decodes one OpenPortalActivePage and reports the end of its encoding through the cursor.
-
Field Details
-
PACKET_ID
public static final int PACKET_ID- See Also:
-
IS_COMPRESSED
public static final boolean IS_COMPRESSED- See Also:
-
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:
-
promptId
public int promptId -
nameKey
-
timeLimitSeconds
public int timeLimitSeconds -
remainingSeconds
public int remainingSeconds -
timerStarted
public boolean timerStarted -
allowedEntryCount
public int allowedEntryCount -
entriesUsed
public int entriesUsed -
anyoneEntered
public boolean anyoneEntered -
playerCount
public int playerCount -
playerNames
-
isForming
public boolean isForming
-
-
Constructor Details
-
OpenPortalActivePage
public OpenPortalActivePage() -
OpenPortalActivePage
-
OpenPortalActivePage
-
-
Method Details
-
getId
-
getChannel
Description copied from interface:PacketReturns the channel this packet should be sent on.- Specified by:
getChannelin interfacePacket
-
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. -
getPromptId
-
getPromptId
-
getNameKey
-
getNameKey
-
getTimeLimitSeconds
-
getTimeLimitSeconds
-
getRemainingSeconds
-
getRemainingSeconds
-
getTimerStarted
-
getTimerStarted
-
getAllowedEntryCount
-
getAllowedEntryCount
-
getEntriesUsed
-
getEntriesUsed
-
getAnyoneEntered
-
getAnyoneEntered
-
getPlayerCount
-
getPlayerCount
-
getPlayerNames
-
getPlayerNames
-
getIsForming
-
getIsForming
-
hasNameKey
-
hasPlayerNames
-
toObject
-
toObject
-
toObject
public static OpenPortalActivePage toObject(MemorySegment mem, int offset, @Nullable ReadCursor cursor) Decodes one OpenPortalActivePage 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
Description copied from interface:PacketWrites this packet atoffsetand returns the number of bytes written, which callers rely on being exactlyPacket.computeSize(). The framed write path reserves and length-prefixes on that figure before serializing, so a shorter or longer write corrupts the frame rather than failing. -
computeSize
public int computeSize()Description copied from interface:PacketCompute the exact number of bytes needed to serialize this packet.- Specified by:
computeSizein interfacePacket
-
clone
-
equals
-
hashCode
-