Index
All Classes and Interfaces|All Packages
A
- add(DataResult<T>, DataResult<T>) - Method in class com.kneelawk.codextra.api.attach.codec.OpsReplacingRecordBuilder
- add(T, DataResult<T>) - Method in class com.kneelawk.codextra.api.attach.codec.OpsReplacingRecordBuilder
- add(T, T) - Method in class com.kneelawk.codextra.api.attach.codec.OpsReplacingRecordBuilder
- attachingCodec(A, Codec<R>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
Codec
that attaches the given value to the codec context when decoding/encoding the wrapped codec. - attachingCodec(Map<AttachmentKey<?>, ?>, Codec<R>) - Static method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
Codec
that attaches the given values to the codec context when decoding/encoding the wrapped codec. - AttachingCodec<R> - Class in com.kneelawk.codextra.api.attach.codec
-
Codec
for attaching a value and passing it as context to the wrapped codec. - AttachingCodec(Map<AttachmentKey<?>, ?>, Codec<R>) - Constructor for class com.kneelawk.codextra.api.attach.codec.AttachingCodec
-
Creates a new
AttachingCodec
. - attachingMapCodec(A, MapCodec<R>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that attaches the given value to the codec context when decoding/encoding the wrapped codec. - attachingMapCodec(Map<AttachmentKey<?>, ?>, MapCodec<R>) - Static method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that attaches the given values to the codec context when decoding/encoding the wrapped codec. - AttachingMapCodec<R> - Class in com.kneelawk.codextra.api.attach.codec
-
MapCodec
for attaching a value and passing it - AttachingMapCodec(Map<AttachmentKey<?>, ?>, MapCodec<R>) - Constructor for class com.kneelawk.codextra.api.attach.codec.AttachingMapCodec
-
Creates a new
AttachingMapCodec
. - attachingStreamCodec(A, StreamCodec<? super B, V>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
StreamCodec
that attaches the given value to the codec context when decoding/encoding the wrapped codec. - attachingStreamCodec(Map<AttachmentKey<?>, ?>, StreamCodec<? super B, V>) - Static method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
StreamCodec
that attaches the given values to the codec context when decoding/encoding the wrapped codec. - AttachingStreamCodec<B,
V> - Class in com.kneelawk.codextra.api.attach.stream -
A
StreamCodec
for attaching a value and passing it as context to the wrapped codec. - AttachingStreamCodec(Map<AttachmentKey<?>, ?>, StreamCodec<? super B, V>) - Constructor for class com.kneelawk.codextra.api.attach.stream.AttachingStreamCodec
-
Creates a new
AttachingStreamCodec
. - attachingStreamOp(A) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
StreamCodec.CodecOperation
that attaches the given value to the codec context. - attachingStreamOp(Map<AttachmentKey<?>, ?>) - Static method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
StreamCodec.CodecOperation
that attaches the given values to the codec context. - AttachmentDispatchCodec<A,
R> - Class in com.kneelawk.codextra.api.attach.codec -
A
Codec
that retrieves an attachment and determines which codec to use based on that attachment. - AttachmentDispatchCodec(AttachmentKey<A>, Function<? super A, ? extends DataResult<? extends Codec<? extends R>>>) - Constructor for class com.kneelawk.codextra.api.attach.codec.AttachmentDispatchCodec
-
Creates a new
AttachmentDispatchCodec
. - AttachmentDispatchMapCodec<A,
R> - Class in com.kneelawk.codextra.api.attach.codec -
A
MapCodec
that retrieves an attachment and determines which codec to use based on that attachment. - AttachmentDispatchMapCodec(AttachmentKey<A>, Function<? super A, ? extends DataResult<? extends MapCodec<? extends R>>>) - Constructor for class com.kneelawk.codextra.api.attach.codec.AttachmentDispatchMapCodec
-
Creates a new
AttachmentDispatchMapCodec
. - AttachmentDispatchStreamCodec<A,
B, - Class in com.kneelawk.codextra.api.attach.streamV> -
A
StreamCodec
that retrieves an attachment and determines which codec to use based on that attachment. - AttachmentDispatchStreamCodec(AttachmentKey<A>, Function<? super A, ? extends StreamCodec<? super B, ? extends V>>) - Constructor for class com.kneelawk.codextra.api.attach.stream.AttachmentDispatchStreamCodec
-
Creates a new
AttachmentDispatchStreamCodec
. - AttachmentKey<A> - Class in com.kneelawk.codextra.api.attach
-
A typed key allowing things to be attached to a
DynamicOps
orFriendlyByteBuf
. - AttachmentManager - Interface in com.kneelawk.codextra.api.attach
-
Manages
AttachmentKey
s.
B
- build(DataResult<T>) - Method in class com.kneelawk.codextra.api.attach.codec.OpsReplacingRecordBuilder
- build(T) - Method in class com.kneelawk.codextra.api.attach.codec.OpsReplacingRecordBuilder
C
- ChildBufferFactory<B1,
B2> - Interface in com.kneelawk.codextra.api.attach.stream -
Creates a buffer that inherits metadata (like
RegistryAccess
) from a parent buffer. - codecAddPartial(A) - Static method in class com.kneelawk.codextra.api.Codextra
-
Adds a partial to errors that don't have a partial value.
- codecAddPartial(Supplier<A>) - Static method in class com.kneelawk.codextra.api.Codextra
-
Adds a partial to errors that don't have a partial value.
- codecMapError(UnaryOperator<String>) - Static method in class com.kneelawk.codextra.api.Codextra
-
Maps an error using the given function.
- Codextra - Class in com.kneelawk.codextra.api
-
Codextra DFU codec utility root class.
- CodextraStreams - Class in com.kneelawk.codextra.api
-
Codextra Stream codec utility root class.
- com.kneelawk.codextra.api - package com.kneelawk.codextra.api
-
Codextra API root.
- com.kneelawk.codextra.api.attach - package com.kneelawk.codextra.api.attach
-
Codextra Attachments API.
- com.kneelawk.codextra.api.attach.codec - package com.kneelawk.codextra.api.attach.codec
-
Codextra attachment DFU codecs.
- com.kneelawk.codextra.api.attach.stream - package com.kneelawk.codextra.api.attach.stream
-
Codextra attachment stream codecs.
- com.kneelawk.codextra.api.codec - package com.kneelawk.codextra.api.codec
-
This package contains general DFU utilities.
- com.kneelawk.codextra.api.util - package com.kneelawk.codextra.api.util
-
This package contains general utilities.
- create(int, B1) - Method in interface com.kneelawk.codextra.api.attach.stream.ChildBufferFactory
-
Create a new, blank buffer with the given initial capacity and with metadata (like
RegistryAccess
) from the parent buffer.
D
- dataIdentity() - Static method in class com.kneelawk.codextra.api.util.FunctionUtils
-
Returns a function that massages a
DataResult
so that it returns the expected type. - decode(B) - Method in class com.kneelawk.codextra.api.attach.stream.AttachingStreamCodec
- decode(B) - Method in class com.kneelawk.codextra.api.attach.stream.AttachmentDispatchStreamCodec
- decode(B) - Method in class com.kneelawk.codextra.api.attach.stream.IfPresentDispatchStreamCodec
- decode(B) - Method in class com.kneelawk.codextra.api.attach.stream.IfPresentStreamCodec
- decode(B) - Method in class com.kneelawk.codextra.api.attach.stream.ReadAttachingStreamCodec
- decode(B) - Method in class com.kneelawk.codextra.api.attach.stream.RetrievalStreamCodec
- decode(B) - Method in class com.kneelawk.codextra.api.attach.stream.RetrieveWithStreamCodec
- decode(B1) - Method in class com.kneelawk.codextra.api.attach.stream.MutReadAttachingStreamCodec
- decode(DynamicOps<T>, MapLike<T>) - Method in class com.kneelawk.codextra.api.attach.codec.AttachingMapCodec
- decode(DynamicOps<T>, MapLike<T>) - Method in class com.kneelawk.codextra.api.attach.codec.AttachmentDispatchMapCodec
- decode(DynamicOps<T>, MapLike<T>) - Method in class com.kneelawk.codextra.api.attach.codec.IfPresentDispatchMapCodec
- decode(DynamicOps<T>, MapLike<T>) - Method in class com.kneelawk.codextra.api.attach.codec.IfPresentMapCodec
- decode(DynamicOps<T>, MapLike<T>) - Method in class com.kneelawk.codextra.api.attach.codec.KeyAttachingCodec
- decode(DynamicOps<T>, MapLike<T>) - Method in class com.kneelawk.codextra.api.attach.codec.MutKeyAttachingCodec
- decode(DynamicOps<T>, MapLike<T>) - Method in class com.kneelawk.codextra.api.attach.codec.RetrievalMapCodec
- decode(DynamicOps<T>, MapLike<T>) - Method in class com.kneelawk.codextra.api.attach.codec.RetrieveWithMapCodec
- decode(DynamicOps<T>, MapLike<T>) - Method in class com.kneelawk.codextra.api.codec.ErrorHandlingMapCodec
- decode(DynamicOps<T>, MapLike<T>) - Method in class com.kneelawk.codextra.api.codec.KeyCheckingMapCodec
- decode(DynamicOps<T>, MapLike<T>) - Method in class com.kneelawk.codextra.api.codec.MapKeyDispatchCodec
- decode(DynamicOps<T>, MapLike<T>) - Method in class com.kneelawk.codextra.api.codec.UnitHandlingMapCodec
- decode(DynamicOps<T>, T) - Method in class com.kneelawk.codextra.api.attach.codec.AttachingCodec
- decode(DynamicOps<T>, T) - Method in class com.kneelawk.codextra.api.attach.codec.AttachmentDispatchCodec
- decode(DynamicOps<T>, T) - Method in class com.kneelawk.codextra.api.attach.codec.IfPresentCodec
- decode(DynamicOps<T>, T) - Method in class com.kneelawk.codextra.api.attach.codec.IfPresentDispatchCodec
- decode(DynamicOps<T>, T) - Method in class com.kneelawk.codextra.api.attach.codec.RetrieveWithCodec
- dispatch(StreamCodec<? super B, K>, Function<? super V, ? extends K>, Function<? super K, ? extends StreamCodec<? super B, ? extends V>>) - Static method in class com.kneelawk.codextra.api.CodextraStreams
-
Version of
StreamCodec.dispatch(Function, Function)
that accepts more specific buffer types. - dispatchCodec(Function<? super A, ? extends Codec<? extends R>>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
Codec
that dispatches based on the retrieved attachment. - dispatchCodecResult(Function<? super A, ? extends DataResult<? extends Codec<? extends R>>>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
Codec
that dispatches based on the retrieved attachment. - dispatchIfPresentCodec(Function<? super A, ? extends Codec<? extends R>>, Codec<R>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
Codec
that retrieves an attachment if present and uses it to determine which codec to use or uses another codec if the attachment is absent. - dispatchIfPresentCodecResult(Function<? super A, ? extends DataResult<? extends Codec<? extends R>>>, Codec<R>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
Codec
that retrieves an attachment if present and uses it to determine which codec to use or uses another codec if the attachment is absent. - dispatchIfPresentMapCodec(Function<? super A, ? extends MapCodec<? extends R>>, MapCodec<R>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that retrieves an attachment if present and uses it to determine which codec to use or uses another codec if the attachment is absent. - dispatchIfPresentMapCodecResult(Function<? super A, ? extends DataResult<? extends MapCodec<? extends R>>>, MapCodec<R>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that retrieves an attachment if present and uses it to determine which codec to use or uses another codec if the attachment is absent. - dispatchIfPresentStreamCodec(Function<? super A, ? extends StreamCodec<? super B, ? extends V>>, StreamCodec<? super B, V>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
StreamCodec
that retrieves an attachment if present and uses it to determine which codec to use or uses another codec if the attachment is absent. - dispatchMapCodec(Function<? super A, ? extends MapCodec<? extends R>>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that dispatches based on the retrieved attachment. - dispatchMapCodecResult(Function<? super A, ? extends DataResult<? extends MapCodec<? extends R>>>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that dispatches based on the retrieved attachment. - dispatchStreamCodec(Function<? super A, ? extends StreamCodec<? super B, ? extends R>>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
StreamCodec
that dispatches based on the retrieved attachment.
E
- encode(A, DynamicOps<T>, RecordBuilder<T>) - Method in class com.kneelawk.codextra.api.codec.UnitHandlingMapCodec
- encode(B1, V) - Method in class com.kneelawk.codextra.api.attach.stream.MutReadAttachingStreamCodec
- encode(B, R) - Method in class com.kneelawk.codextra.api.attach.stream.RetrieveWithStreamCodec
- encode(B, V) - Method in class com.kneelawk.codextra.api.attach.stream.AttachingStreamCodec
- encode(B, V) - Method in class com.kneelawk.codextra.api.attach.stream.AttachmentDispatchStreamCodec
- encode(B, V) - Method in class com.kneelawk.codextra.api.attach.stream.IfPresentDispatchStreamCodec
- encode(B, V) - Method in class com.kneelawk.codextra.api.attach.stream.IfPresentStreamCodec
- encode(B, V) - Method in class com.kneelawk.codextra.api.attach.stream.ReadAttachingStreamCodec
- encode(B, V) - Method in class com.kneelawk.codextra.api.attach.stream.RetrievalStreamCodec
- encode(Optional<O>, DynamicOps<T>, RecordBuilder<T>) - Method in class com.kneelawk.codextra.api.codec.KeyCheckingMapCodec
- encode(Optional<R>, DynamicOps<T>, RecordBuilder<T>) - Method in class com.kneelawk.codextra.api.codec.ErrorHandlingMapCodec
- encode(R, DynamicOps<T>, RecordBuilder<T>) - Method in class com.kneelawk.codextra.api.attach.codec.AttachingMapCodec
- encode(R, DynamicOps<T>, RecordBuilder<T>) - Method in class com.kneelawk.codextra.api.attach.codec.AttachmentDispatchMapCodec
- encode(R, DynamicOps<T>, RecordBuilder<T>) - Method in class com.kneelawk.codextra.api.attach.codec.IfPresentDispatchMapCodec
- encode(R, DynamicOps<T>, RecordBuilder<T>) - Method in class com.kneelawk.codextra.api.attach.codec.IfPresentMapCodec
- encode(R, DynamicOps<T>, RecordBuilder<T>) - Method in class com.kneelawk.codextra.api.attach.codec.KeyAttachingCodec
- encode(R, DynamicOps<T>, RecordBuilder<T>) - Method in class com.kneelawk.codextra.api.attach.codec.MutKeyAttachingCodec
- encode(R, DynamicOps<T>, RecordBuilder<T>) - Method in class com.kneelawk.codextra.api.attach.codec.RetrievalMapCodec
- encode(R, DynamicOps<T>, RecordBuilder<T>) - Method in class com.kneelawk.codextra.api.attach.codec.RetrieveWithMapCodec
- encode(R, DynamicOps<T>, T) - Method in class com.kneelawk.codextra.api.attach.codec.AttachingCodec
- encode(R, DynamicOps<T>, T) - Method in class com.kneelawk.codextra.api.attach.codec.AttachmentDispatchCodec
- encode(R, DynamicOps<T>, T) - Method in class com.kneelawk.codextra.api.attach.codec.IfPresentCodec
- encode(R, DynamicOps<T>, T) - Method in class com.kneelawk.codextra.api.attach.codec.IfPresentDispatchCodec
- encode(R, DynamicOps<T>, T) - Method in class com.kneelawk.codextra.api.attach.codec.RetrieveWithCodec
- encode(V, DynamicOps<T>, RecordBuilder<T>) - Method in class com.kneelawk.codextra.api.codec.MapKeyDispatchCodec
- errorHandlingMapCodec(MapCodec<R>, Consumer<String>, boolean) - Static method in class com.kneelawk.codextra.api.Codextra
-
Creates a new
MapCodec
that catches decoding errors and logs them. - ErrorHandlingMapCodec<R> - Class in com.kneelawk.codextra.api.codec
-
Like
OptionalFieldCodec
but with an extra error-handling consumer. - ErrorHandlingMapCodec(MapCodec<R>, Consumer<String>, boolean) - Constructor for class com.kneelawk.codextra.api.codec.ErrorHandlingMapCodec
-
Creates a new
ErrorHandlingMapCodec
. - errorLoggingMapCodec(MapCodec<R>, Consumer<String>) - Static method in class com.kneelawk.codextra.api.Codextra
-
Creates a new
MapCodec
that converts errors into successes but logs them. - errorPartiallingMapCodec(MapCodec<R>) - Static method in class com.kneelawk.codextra.api.Codextra
-
Creates a new
MapCodec
that converts errors into partials.
F
- FunctionUtils - Class in com.kneelawk.codextra.api.util
-
Utilities for working with java functional programming.
G
- get(AttachmentKey<A>) - Method in interface com.kneelawk.codextra.api.attach.AttachmentManager
-
Gets the current value of an attachment.
- getAttachmentManager(DynamicOps<?>) - Static method in interface com.kneelawk.codextra.api.attach.AttachmentManager
-
Gets the attachment manager for the given dynamic ops.
- getAttachmentManager(ByteBuf) - Static method in interface com.kneelawk.codextra.api.attach.AttachmentManager
-
Gets the attachment manager for the given buffer.
- getAttachments() - Method in interface com.kneelawk.codextra.api.attach.AttachmentManager
-
Gets all attachments currently attached.
- getName() - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Gets this attachment's name.
- getOrNull(DynamicOps<?>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Gets the current value for this attachment on the given ops.
- getOrNull(ByteBuf) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Gets the current value for this attachment on the given buffer.
- getOrThrow(ByteBuf) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Gets the current value for this attachment on the given buffer or throwing.
- getResult(DynamicOps<?>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Gets the current value for this attachment on the given ops.
I
- ifPresentCodec(Codec<R>, Codec<R>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
Codec
that delegates to one codec if an attachment is present and another if the attachment is absent. - IfPresentCodec<R> - Class in com.kneelawk.codextra.api.attach.codec
-
A
Codec
that delegates to one codec if an attachment is present and another if the attachment is absent. - IfPresentCodec(AttachmentKey<?>, Codec<R>, Codec<R>) - Constructor for class com.kneelawk.codextra.api.attach.codec.IfPresentCodec
-
Creates a new
IfPresentCodec
. - IfPresentDispatchCodec<A,
R> - Class in com.kneelawk.codextra.api.attach.codec -
A
Codec
that retrieves an attachment if present and uses it to determine which codec to use or uses another codec if the attachment is absent. - IfPresentDispatchCodec(AttachmentKey<A>, Function<? super A, ? extends DataResult<? extends Codec<? extends R>>>, Codec<R>) - Constructor for class com.kneelawk.codextra.api.attach.codec.IfPresentDispatchCodec
-
Creates a new
IfPresentDispatchCodec
. - IfPresentDispatchMapCodec<A,
R> - Class in com.kneelawk.codextra.api.attach.codec -
A
MapCodec
that retrieves an attachment if present and uses it to determine which codec to use or uses another codec if the attachment is absent. - IfPresentDispatchMapCodec(AttachmentKey<A>, Function<? super A, ? extends DataResult<? extends MapCodec<? extends R>>>, MapCodec<R>) - Constructor for class com.kneelawk.codextra.api.attach.codec.IfPresentDispatchMapCodec
-
Creates a new
IfPresentDispatchCodec
. - IfPresentDispatchStreamCodec<A,
B, - Class in com.kneelawk.codextra.api.attach.streamV> -
A
StreamCodec
that retrieves an attachment if present and uses it to determine which codec to use or uses another codec if the attachment is absent. - IfPresentDispatchStreamCodec(AttachmentKey<A>, Function<? super A, ? extends StreamCodec<? super B, ? extends V>>, StreamCodec<? super B, V>) - Constructor for class com.kneelawk.codextra.api.attach.stream.IfPresentDispatchStreamCodec
-
Creates a new
IfPresentDispatchStreamCodec
. - ifPresentMapCodec(MapCodec<R>, MapCodec<R>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that delegates to one codec if an attachment is present and another if the attachment is absent. - IfPresentMapCodec<R> - Class in com.kneelawk.codextra.api.attach.codec
-
A
MapCodec
that delegates to one codec if an attachment is present and another if the attachment is absent. - IfPresentMapCodec(AttachmentKey<?>, MapCodec<R>, MapCodec<R>) - Constructor for class com.kneelawk.codextra.api.attach.codec.IfPresentMapCodec
-
Creates a new
IfPresentMapCodec
. - ifPresentStreamCodec(StreamCodec<? super B, V>, StreamCodec<? super B, V>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
StreamCodec
that delegates to one codec if an attachment is present and another if the attachment is absent. - IfPresentStreamCodec<B,
V> - Class in com.kneelawk.codextra.api.attach.stream -
A
StreamCodec
that delegates to one codec if an attachment is present and another if the attachment is absent. - IfPresentStreamCodec(AttachmentKey<?>, StreamCodec<? super B, V>, StreamCodec<? super B, V>) - Constructor for class com.kneelawk.codextra.api.attach.stream.IfPresentStreamCodec
-
Creates a new
IfPresentStreamCodec
. - isEmpty() - Method in interface com.kneelawk.codextra.api.attach.AttachmentManager
-
Returns whether the attachment manager has any attachments..
K
- keyAttachingCodec(MapCodec<A>, MapCodec<R>, Function<? super R, ? extends A>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that decodes one value and attaches it to the context when decoding the result value. - keyAttachingCodec(MapCodec<K>, Function<? super K, ? extends Map<AttachmentKey<?>, ?>>, MapCodec<R>, Function<? super R, ? extends K>) - Static method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that decodes one value and uses it to create attachments to attach to the context when decoding the other value. - KeyAttachingCodec<K,
R> - Class in com.kneelawk.codextra.api.attach.codec -
A
MapCodec
that decodes one value and uses it to create attachments to attach to the context when decoding the other value. - KeyAttachingCodec(MapCodec<K>, Function<? super K, ? extends DataResult<? extends Map<AttachmentKey<?>, ?>>>, MapCodec<R>, Function<? super R, ? extends DataResult<? extends K>>) - Constructor for class com.kneelawk.codextra.api.attach.codec.KeyAttachingCodec
-
Creates a new
KeyAttachingCodec
. - keyAttachingCodecResult(MapCodec<A>, MapCodec<R>, Function<? super R, ? extends DataResult<? extends A>>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that decodes one value and attaches it to the context when decoding the result value. - keyAttachingCodecResult(MapCodec<K>, Function<? super K, ? extends DataResult<? extends Map<AttachmentKey<?>, ?>>>, MapCodec<R>, Function<? super R, ? extends DataResult<? extends K>>) - Static method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that decodes one value and uses it to create attachments to attach to the context when decoding the other value. - keyCheckingMapCodec(Collection<String>, MapCodec<O>) - Static method in class com.kneelawk.codextra.api.Codextra
-
Creates a new
MapCodec
that checks for the presence of the given keys before attempting to decode. - KeyCheckingMapCodec<O> - Class in com.kneelawk.codextra.api.codec
-
Map codec that requires a given set of keys in order to even consider decoding.
- KeyCheckingMapCodec(Collection<String>, MapCodec<O>) - Constructor for class com.kneelawk.codextra.api.codec.KeyCheckingMapCodec
-
Creates an
KeyCheckingMapCodec
. - keys(DynamicOps<T>) - Method in class com.kneelawk.codextra.api.attach.codec.AttachingMapCodec
- keys(DynamicOps<T>) - Method in class com.kneelawk.codextra.api.attach.codec.AttachmentDispatchMapCodec
- keys(DynamicOps<T>) - Method in class com.kneelawk.codextra.api.attach.codec.IfPresentDispatchMapCodec
- keys(DynamicOps<T>) - Method in class com.kneelawk.codextra.api.attach.codec.IfPresentMapCodec
- keys(DynamicOps<T>) - Method in class com.kneelawk.codextra.api.attach.codec.KeyAttachingCodec
- keys(DynamicOps<T>) - Method in class com.kneelawk.codextra.api.attach.codec.MutKeyAttachingCodec
- keys(DynamicOps<T>) - Method in class com.kneelawk.codextra.api.attach.codec.RetrievalMapCodec
- keys(DynamicOps<T>) - Method in class com.kneelawk.codextra.api.attach.codec.RetrieveWithMapCodec
- keys(DynamicOps<T>) - Method in class com.kneelawk.codextra.api.codec.ErrorHandlingMapCodec
- keys(DynamicOps<T>) - Method in class com.kneelawk.codextra.api.codec.KeyCheckingMapCodec
- keys(DynamicOps<T>) - Method in class com.kneelawk.codextra.api.codec.MapKeyDispatchCodec
- keys(DynamicOps<T>) - Method in class com.kneelawk.codextra.api.codec.UnitHandlingMapCodec
M
- mapCodecAddPartial(A) - Static method in class com.kneelawk.codextra.api.Codextra
-
Adds a partial to errors that don't have a partial value.
- mapCodecAddPartial(Supplier<A>) - Static method in class com.kneelawk.codextra.api.Codextra
-
Adds a partial to errors that don't have a partial value.
- mapCodecMapError(UnaryOperator<String>) - Static method in class com.kneelawk.codextra.api.Codextra
-
Maps an error using the given function.
- mapError(UnaryOperator<String>) - Method in class com.kneelawk.codextra.api.attach.codec.OpsReplacingRecordBuilder
- mapKeyDispatchCodec(MapCodec<K>, Function<? super V, ? extends K>, Function<? super K, ? extends MapCodec<? extends V>>) - Static method in class com.kneelawk.codextra.api.Codextra
-
Creates a new
MapCodec
that dispatches based on the value decoded from a different map codec. - MapKeyDispatchCodec<K,
V> - Class in com.kneelawk.codextra.api.codec -
Version of
KeyDispatchCodec
that takes aMapCodec
as its key. - MapKeyDispatchCodec(MapCodec<K>, Function<? super V, ? extends DataResult<? extends K>>, Function<? super K, ? extends DataResult<? extends MapCodec<? extends V>>>) - Constructor for class com.kneelawk.codextra.api.codec.MapKeyDispatchCodec
-
Creates a new
MapKeyDispatchCodec
. - MapKeyDispatchCodec(MapCodec<K>, Function<? super V, ? extends DataResult<? extends K>>, Function<? super K, ? extends DataResult<? extends MapDecoder<? extends V>>>, Function<? super V, ? extends DataResult<? extends MapEncoder<V>>>) - Constructor for class com.kneelawk.codextra.api.codec.MapKeyDispatchCodec
-
Creates a new
MapKeyDispatchCodec
. - mapKeyDispatchCodecResult(MapCodec<K>, Function<? super V, ? extends DataResult<? extends K>>, Function<? super K, ? extends DataResult<? extends MapCodec<? extends V>>>) - Static method in class com.kneelawk.codextra.api.Codextra
-
Creates a new
MapCodec
that dispatches based on the value decoded from a different map codec. - mutKeyAttachingCodec(MapCodec<A>, MapCodec<R>, Function<? super R, ? extends A>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that decodes one value and attaches it to the context when decoding the other value, but that also allows mutation of the attachment while encoding, making sure those changes show up in the decoded attachment. - mutKeyAttachingCodec(MapCodec<K>, Function<? super K, ? extends Map<AttachmentKey<?>, ?>>, MapCodec<R>, Function<? super R, ? extends K>) - Static method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that decodes one value and uses it to create the attachments to attach to the context when decoding the other value, but that also allows the mutation of the attachment while encoding, making sure those changes show up in the decoded key. - MutKeyAttachingCodec<K,
R> - Class in com.kneelawk.codextra.api.attach.codec -
A
MapCodec
that decodes one value and uses it to create the attachments to attach to the context when decoding the other value, but that also allows mutation of the attachment while encoding, making sure those changes show up in the decoded key. - MutKeyAttachingCodec(MapCodec<K>, Function<? super K, ? extends DataResult<? extends Map<AttachmentKey<?>, ?>>>, MapCodec<R>, Function<? super R, ? extends DataResult<? extends K>>) - Constructor for class com.kneelawk.codextra.api.attach.codec.MutKeyAttachingCodec
-
Creates a new
MutKeyAttachingCodec
. - mutKeyAttachingCodecResult(MapCodec<A>, MapCodec<R>, Function<? super R, ? extends DataResult<? extends A>>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that decodes one value and attaches it to the context when decoding the other value, but that also allows mutation of the attachment while encoding, making sure those changes show up in the decoded attachment. - mutKeyAttachingCodecResult(MapCodec<K>, Function<? super K, ? extends DataResult<? extends Map<AttachmentKey<?>, ?>>>, MapCodec<R>, Function<? super R, ? extends DataResult<? extends K>>) - Static method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that decodes one value and uses it to create the attachments to attach to the context when decoding the other value, but that also allows the mutation of the attachment while encoding, making sure those changes show up in the decoded key. - mutReadAttachingStreamCodec(StreamCodec<? super B1, A>, ChildBufferFactory<? super B1, B2>, StreamCodec<? super B2, V>, Function<? super V, ? extends A>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
StreamCodec
that decodes one value and then attaches it to the context when decoding the result value, but that also allows mutation of the attachment while encoding, making sure those changes show up in the decoded attachment. - mutReadAttachingStreamCodec(StreamCodec<? super B1, K>, Function<? super K, ? extends Map<AttachmentKey<?>, ?>>, ChildBufferFactory<? super B1, B2>, StreamCodec<? super B2, V>, Function<? super V, ? extends K>) - Static method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Create a
StreamCodec
that decodes one value and uses it to create attachments to attach to the context when decoding the result value, but that also allows the mutation of the attachment while encoding, making sure those changes shows up in the decoded key. - MutReadAttachingStreamCodec<B1,
B2, - Class in com.kneelawk.codextra.api.attach.streamK, V> -
A
StreamCodec
that decodes one value and uses it create attachments to attach to the context when decoding the result value, but that also allows mutation of the attachment while encoding, making sure those changes show up in the decoded key. - MutReadAttachingStreamCodec(StreamCodec<? super B1, K>, Function<? super K, ? extends Map<AttachmentKey<?>, ?>>, ChildBufferFactory<? super B1, B2>, StreamCodec<? super B2, V>, Function<? super V, ? extends K>) - Constructor for class com.kneelawk.codextra.api.attach.stream.MutReadAttachingStreamCodec
-
Creates a new
MutReadAttachingStreamCodec
.
N
- nullFunc() - Static method in class com.kneelawk.codextra.api.util.FunctionUtils
-
Creates a function that converts everything into
null
.
O
- of(String) - Static method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a new codec attachment key.
- of(ResourceLocation) - Static method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a new codec attachment key.
- ofStaticFieldName() - Static method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a new codec attachment key with the name of the field the attachment key is being assigned to.
- ops() - Method in class com.kneelawk.codextra.api.attach.codec.OpsReplacingRecordBuilder
- OpsReplacingRecordBuilder<T> - Class in com.kneelawk.codextra.api.attach.codec
-
RecordBuilder
that delegates to another record builder but that replaces the ops.
P
- pop(AttachmentKey<A>) - Method in interface com.kneelawk.codextra.api.attach.AttachmentManager
-
Pops an attachment.
- pop(DynamicOps<?>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Pops a value for this attachment from the given ops.
- pop(ByteBuf) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Pops a value for this attachment from the given ops.
- push(AttachmentKey<A>, A) - Method in interface com.kneelawk.codextra.api.attach.AttachmentManager
-
Pushes an attachment.
- push(DynamicOps<T>, A) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Pushes an attachment value to the given
DynamicOps
. - push(ByteBuf, A) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Attaches a value to the given
ByteBuf
. - push(FriendlyByteBuf, A) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Attaches a value to the given
FriendlyByteBuf
.
R
- readAttachingStreamCodec(StreamCodec<? super B, A>, StreamCodec<? super B, V>, Function<? super V, ? extends A>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
StreamCodec
that decodes one value and then attaches it to the context when decoding the result value. - readAttachingStreamCodec(StreamCodec<? super B, K>, Function<? super K, ? extends Map<AttachmentKey<?>, ?>>, StreamCodec<? super B, V>, Function<? super V, ? extends K>) - Static method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
StreamCodec
that decodes one value and uses it to create attachments to attach to the context when decoding the result type. - ReadAttachingStreamCodec<B,
K, - Class in com.kneelawk.codextra.api.attach.streamV> -
A
StreamCodec
that decodes one value and uses it to create attachments to attach to the context when decoding the result value. - ReadAttachingStreamCodec(StreamCodec<? super B, K>, Function<? super K, ? extends Map<AttachmentKey<?>, ?>>, StreamCodec<? super B, V>, Function<? super V, ? extends K>) - Constructor for class com.kneelawk.codextra.api.attach.stream.ReadAttachingStreamCodec
-
Creates a new
ReadAttachingStreamCodec
. - readAttachingStreamOp(StreamCodec<? super B, A>, Function<? super V, ? extends A>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
StreamCodec.CodecOperation
that decodes one value then attaches it to the context when decoding the result value. - readAttachingStreamOp(StreamCodec<? super B, K>, Function<? super K, ? extends Map<AttachmentKey<?>, ?>>, Function<? super V, ? extends K>) - Static method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
StreamCodec.CodecOperation
that decodes one value and uses it to create attachments to attach to the context when decoding the result value. - RetrievalMapCodec<A,
R> - Class in com.kneelawk.codextra.api.attach.codec -
MapCodec
for retrieving an attachment. - RetrievalMapCodec(AttachmentKey<A>, Function<? super A, ? extends DataResult<? extends R>>) - Constructor for class com.kneelawk.codextra.api.attach.codec.RetrievalMapCodec
-
Creates a new
RetrievalMapCodec
. - RetrievalStreamCodec<A,
B, - Class in com.kneelawk.codextra.api.attach.streamV> -
A
StreamCodec
that retrieves an attachment from the decoding context. - RetrievalStreamCodec(AttachmentKey<A>, Function<? super A, ? extends V>) - Constructor for class com.kneelawk.codextra.api.attach.stream.RetrievalStreamCodec
-
Creates a new
RetrievalStreamCodec
. - retrieve() - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
RecordCodecBuilder
that acts as a field, but that only returns the attached value. - retrieve(Function<? super A, ? extends R>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
RecordCodecBuilder
that acts as a field, but that only returns the retrieved value. - retrieveResult(Function<? super A, ? extends DataResult<? extends R>>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
RecordCodecBuilder
that acts as a field, but that only returns the retrieved value. - retrieveStream() - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
StreamCodec
that retrieves the attached value. - retrieveStream(Function<? super A, ? extends V>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
StreamCodec
that retrieves the retrieved value. - retrieveWithCodec(Codec<O>, BiFunction<? super A, ? super O, ? extends R>, BiFunction<? super A, ? super R, ? extends O>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
Codec
that decodes a value and combines it with an attachment to create a result. - RetrieveWithCodec<A,
O, - Class in com.kneelawk.codextra.api.attach.codecR> -
A
Codec
that decodes a value and combines it with an attachment to create the result. - RetrieveWithCodec(AttachmentKey<A>, Codec<O>, BiFunction<? super A, ? super O, ? extends DataResult<? extends R>>, BiFunction<? super A, ? super R, ? extends DataResult<? extends O>>) - Constructor for class com.kneelawk.codextra.api.attach.codec.RetrieveWithCodec
-
Creates a new
RetrieveWithCodec
. - retrieveWithCodecResult(Codec<O>, BiFunction<? super A, ? super O, ? extends DataResult<? extends R>>, BiFunction<? super A, ? super R, ? extends DataResult<? extends O>>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
Codec
that decodes a value and combines it with an attachment to create a result. - retrieveWithMapCodec(MapCodec<O>, BiFunction<? super A, ? super O, ? extends R>, BiFunction<? super A, ? super R, ? extends O>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that decodes a value and combines it with an attachment to create a result. - RetrieveWithMapCodec<A,
O, - Class in com.kneelawk.codextra.api.attach.codecR> -
A
MapCodec
that decodes a value and combines it with an attachment to create a result. - RetrieveWithMapCodec(AttachmentKey<A>, MapCodec<O>, BiFunction<? super A, ? super O, ? extends DataResult<? extends R>>, BiFunction<? super A, ? super R, ? extends DataResult<? extends O>>) - Constructor for class com.kneelawk.codextra.api.attach.codec.RetrieveWithMapCodec
-
Creates a new
RetrieveWithMapCodec
. - retrieveWithMapCodecResult(MapCodec<O>, BiFunction<? super A, ? super O, ? extends DataResult<? extends R>>, BiFunction<? super A, ? super R, ? extends DataResult<? extends O>>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
MapCodec
that decodes a value and combines it with an attachment to create a result. - retrieveWithStreamCodec(StreamCodec<? super B, O>, BiFunction<? super A, ? super O, ? extends R>, BiFunction<? super A, ? super R, ? extends O>) - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
-
Creates a
StreamCodec
that decodes a value and combines it with an attachment to create a result. - RetrieveWithStreamCodec<A,
B, - Class in com.kneelawk.codextra.api.attach.streamO, R> -
A
StreamCodec
that decodes a value and combines it with an attachment to create a result. - RetrieveWithStreamCodec(AttachmentKey<A>, StreamCodec<? super B, O>, BiFunction<? super A, ? super O, ? extends R>, BiFunction<? super A, ? super R, ? extends O>) - Constructor for class com.kneelawk.codextra.api.attach.stream.RetrieveWithStreamCodec
-
Creates a new
RetrieveWithStreamCodec
.
S
- setLifecycle(Lifecycle) - Method in class com.kneelawk.codextra.api.attach.codec.OpsReplacingRecordBuilder
- single(AttachmentKey<A>, A, Codec<R>) - Static method in class com.kneelawk.codextra.api.attach.codec.AttachingCodec
-
Creates a new
AttachingCodec
. - single(AttachmentKey<A>, A, MapCodec<R>) - Static method in class com.kneelawk.codextra.api.attach.codec.AttachingMapCodec
-
Creates a new
AttachingMapCodec
. - single(AttachmentKey<A>, A, StreamCodec<? super B, V>) - Static method in class com.kneelawk.codextra.api.attach.stream.AttachingStreamCodec
-
Creates a new
AttachingStreamCodec
. - single(AttachmentKey<A>, MapCodec<A>, MapCodec<R>, Function<? super R, ? extends DataResult<? extends A>>) - Static method in class com.kneelawk.codextra.api.attach.codec.KeyAttachingCodec
-
Creates a new
KeyAttachingCodec
that uses its key as its single attachment. - single(AttachmentKey<A>, MapCodec<A>, MapCodec<R>, Function<? super R, ? extends DataResult<? extends A>>) - Static method in class com.kneelawk.codextra.api.attach.codec.MutKeyAttachingCodec
-
Creates a new
MutKeyAttachingCodec
that uses its key as its single attachment. - single(AttachmentKey<A>, StreamCodec<? super B, A>, StreamCodec<? super B, V>, Function<? super V, ? extends A>) - Static method in class com.kneelawk.codextra.api.attach.stream.ReadAttachingStreamCodec
-
Creates a new
ReadAttachingStreamCodec
that uses its key as its single attachment. - single(AttachmentKey<A>, StreamCodec<? super B1, A>, ChildBufferFactory<? super B1, B2>, StreamCodec<? super B2, V>, Function<? super V, ? extends A>) - Static method in class com.kneelawk.codextra.api.attach.stream.MutReadAttachingStreamCodec
-
Creates a new
MutReadAttachingStreamCodec
that uses its key as its single attachment. - sync(FriendlyByteBuf, FriendlyByteBuf) - Static method in interface com.kneelawk.codextra.api.attach.AttachmentManager
-
Syncs the attachments from one buffer to another buffer.
T
- toString() - Method in class com.kneelawk.codextra.api.attach.AttachmentKey
- toString() - Method in class com.kneelawk.codextra.api.attach.codec.AttachingCodec
- toString() - Method in class com.kneelawk.codextra.api.attach.codec.AttachingMapCodec
- toString() - Method in class com.kneelawk.codextra.api.attach.codec.AttachmentDispatchCodec
- toString() - Method in class com.kneelawk.codextra.api.attach.codec.AttachmentDispatchMapCodec
- toString() - Method in class com.kneelawk.codextra.api.attach.codec.KeyAttachingCodec
- toString() - Method in class com.kneelawk.codextra.api.attach.codec.MutKeyAttachingCodec
- toString() - Method in class com.kneelawk.codextra.api.attach.codec.RetrievalMapCodec
- toString() - Method in class com.kneelawk.codextra.api.attach.codec.RetrieveWithCodec
- toString() - Method in class com.kneelawk.codextra.api.attach.codec.RetrieveWithMapCodec
- toString() - Method in class com.kneelawk.codextra.api.attach.stream.AttachingStreamCodec
- toString() - Method in class com.kneelawk.codextra.api.attach.stream.AttachmentDispatchStreamCodec
- toString() - Method in class com.kneelawk.codextra.api.attach.stream.MutReadAttachingStreamCodec
- toString() - Method in class com.kneelawk.codextra.api.attach.stream.ReadAttachingStreamCodec
- toString() - Method in class com.kneelawk.codextra.api.attach.stream.RetrievalStreamCodec
- toString() - Method in class com.kneelawk.codextra.api.attach.stream.RetrieveWithStreamCodec
- toString() - Method in class com.kneelawk.codextra.api.codec.MapKeyDispatchCodec
U
- unit(Supplier<V>) - Static method in class com.kneelawk.codextra.api.CodextraStreams
-
Creates a
StreamCodec
that returns the supplied value when decoding and does nothing when encoding. - unitHandlingFieldOf(String, Codec<A>) - Static method in class com.kneelawk.codextra.api.Codextra
-
Creates a new
MapCodec
that treats missing keys as units (empty maps) so that they can be decoded byCodec.unit(Supplier)
. - UnitHandlingMapCodec<A> - Class in com.kneelawk.codextra.api.codec
-
A
MapCodec
that handles missing keys and treats them like units (empty maps). - UnitHandlingMapCodec(String, Codec<A>) - Constructor for class com.kneelawk.codextra.api.codec.UnitHandlingMapCodec
-
Creates a new
UnitHandlingMapCodec
. - unwrap(RecordBuilder<T>, RecordBuilder<T>, DynamicOps<T>) - Static method in class com.kneelawk.codextra.api.attach.codec.OpsReplacingRecordBuilder
-
Unwraps the given builder if it is an ops-replacing builder.
W
- withErrorsFrom(DataResult<?>) - Method in class com.kneelawk.codextra.api.attach.codec.OpsReplacingRecordBuilder
- wrap(RecordBuilder<T>, DynamicOps<T>) - Static method in class com.kneelawk.codextra.api.attach.codec.OpsReplacingRecordBuilder
-
Wraps the given builder, so that it uses the given ops.
All Classes and Interfaces|All Packages