Interface Hasher
- All Superinterfaces:
Ops
Hash operations. Note that this is different from Vanilla codecs, where this
instead acts as a (re-usable) hasher directly rather than each method having
self-contained return values.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.viaversion.viaversion.api.minecraft.codec.Ops
Ops.ListSerializer, Ops.MapSerializer
-
Method Summary
Methods inherited from interface com.viaversion.viaversion.api.minecraft.codec.Ops
context, write, writeBoolean, writeByte, writeBytes, writeDouble, writeFloat, writeInt, writeInts, writeList, writeLong, writeLongs, writeMap, writeShort, writeString
-
Method Details
-
hash
int hash()Returns the current hash value.- Returns:
- the current hash value
-
reset
void reset()Resets the hasher to its initial state.
-