Selector
Package: com.hypixel.hytale.protocol
public abstract class SelectorBase for target selection shapes. Subtypes: AOECircleSelector(0), AOECylinderSelector(1), RaycastSelector(2), HorizontalSelector(3), StabSelector(4). Uses VarInt type ID polymorphism.
Serialization Layout
Section titled “Serialization Layout”| Constant | Value |
|---|---|
MAX_SIZE | 42 |
Binary layout: 0 bytes of fixed fields. All multi-byte primitives use little-endian encoding.
Methods
Section titled “Methods”@Nonnullpublic static Selector deserialize(@Nonnull ByteBuf buf, int offset)Deserializes a Selector from the given buffer at the specified offset.
public static int computeBytesConsumed(@Nonnull ByteBuf buf, int offset)Returns the total number of bytes consumed by this Selector starting at the given offset.
public int computeSize()Returns the serialized size in bytes.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.