DamageCalculatorSystems.Sequence
Package: com.hypixel.hytale.server.core.modules.entity.damage
public static class DamageCalculatorSystems.SequenceA codec-serializable hit counter used in damage sequence tracking. Contains a single hits field serialized as "Hits" in JSON. Wrapped by DamageCalculatorSystems.DamageSequence.
Static Fields
Section titled “Static Fields”| Field | Type | Description |
|---|---|---|
CODEC | BuilderCodec<DamageCalculatorSystems.Sequence> | Builder codec for JSON serialization with key "Hits". |
Constructors
Section titled “Constructors”public Sequence()Default constructor; hits defaults to 0.
public Sequence(int hits)Creates a sequence with the given hit count.
Methods
Section titled “Methods”public int getHits()Returns the current hit count.
@Nonnull@Overridepublic String toString()Returns a string representation: "Sequence{hits=N}".
Related Types
Section titled “Related Types”- DamageCalculatorSystems.DamageSequence — wraps this sequence
- DamageCalculatorSystems — parent class
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.