Skip to content

Releases: Kneelawk/Codextra

v2.0.0+1.21.4

Choose a tag to compare

@Kneelawk Kneelawk released this 08 Dec 17:09
v2.0.0+1.21.4
535cf60

Changes:

  • Updated to 1.21.4.

v2.0.0+1.21

Choose a tag to compare

@Kneelawk Kneelawk released this 11 Jun 06:38
7ac5760

Changes:

  • Ported to Minecraft 1.21.
  • Removed the deprecated CodecOrUnit.

v2.0.0-beta.3+1.21

Choose a tag to compare

@Kneelawk Kneelawk released this 01 Jun 01:33
88afa4e
Codextra version 2.0.0-beta.3 for Minecraft 1.21

v2.0.0-beta.2+1.21

Choose a tag to compare

@Kneelawk Kneelawk released this 31 May 20:41
2069861
Codextra version 2.0.0-beta.2 for Minecraft 1.21

v2.0.0-beta.1+1.21

Choose a tag to compare

@Kneelawk Kneelawk released this 30 May 11:35
b830293
Codextra version 2.0.0-beta.1 for Minecraft 1.21

v1.1.0+1.20.6

Choose a tag to compare

@Kneelawk Kneelawk released this 17 May 17:56
a226cae

Changes:

  • Added unitHandlingFieldOf map-codec that allows unit codecs to function when the field key is missing.
  • Deprecated CodecOrUnit in favor of unitHandlingFieldOf.

v1.0.0+1.20.6

Choose a tag to compare

@Kneelawk Kneelawk released this 16 May 05:26
57c0ee0

Changes:

  • Initial Codextra Release!
  • Added general purpose codecs:
    • errorHandlingMapCodec - Catches decoding errors and allows you to log them.
    • keyCheckingMapCodec - Only decodes if a certain set of keys are present, otherwise returns Optional.empty().
    • mapKeyDispatchCodec - Like a KeyDispatchCodec but allows the type-key to be a map-codec instead of a regular
      codec.
  • Added Ops-Attachments with codecs:
    • attachingCodec - Attaches an attachment.
    • keyAttachingCodec - Attaches a decoded value as attachment(s).
    • mutKeyAttachingCodec - Attaches a decoded value as an attachment, but allows that attachment to be mutated while
      encoding.
    • retrieve - Retrieves an attachment.
    • retrieveWithCodec - Combines an attachment with a decoded value and returns that.
    • ifPresentCodec - delegates to one codec if an attachment is present and another if the attachment is absent.
    • dispatchCodec - Dispatches to different codecs depending on an attachment value.
    • dispatchIfPresentCodec - Dispatches to different codecs depending on an attachment value or if the attachment is
      absent.
  • Ops-Attachments can be transferred from a StreamCodec context to a DFU Codec context using Minecraft's
    built-in ByteBufCodecs.fromCodec and ByteBufCodecs.fromCodecWithRegistries.
  • Added CodecOrUnit type which can hold either a codec or a unit supplier. This is useful for when a unit-codec should
    not write a field to its map at all.