Skip to content

Selector

Package: com.hypixel.hytale.protocol

public abstract class Selector

Base for target selection shapes. Subtypes: AOECircleSelector(0), AOECylinderSelector(1), RaycastSelector(2), HorizontalSelector(3), StabSelector(4). Uses VarInt type ID polymorphism.

ConstantValue
MAX_SIZE42

Binary layout: 0 bytes of fixed fields. All multi-byte primitives use little-endian encoding.

@Nonnull
public 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.