Skip to content

Instantly share code, notes, and snippets.

@apple502j
Created March 25, 2023 08:55
Show Gist options
  • Save apple502j/15cac1c34ec456c477c5bfc2e1abc580 to your computer and use it in GitHub Desktop.
Save apple502j/15cac1c34ec456c477c5bfc2e1abc580 to your computer and use it in GitHub Desktop.

23w12a: Sign Update

23w12a is here with some changes to rendering (again!), sign, etc.

Fabric Changes

Fabric Loader 0.14.18 is released to handle the new 1.20 series. Fabric API 0.76.1 is released with, surprisingly, 0 breaking changes.

Minecraft Changes

Experimental Features

Since experimental features are no longer experimental, "OneTwenty" data generators were merged with vanilla ones. Legacy smithing table screen handler is also removed.

Rendering

RenderSystem#setProjectionMatrix now requires a parameter to specify how vertices should be sorted. VertexSorter has two predefined sorting methods: by Z index, or by distance from the origin.

World changes

Redstone related methods in World have been moved to RedstoneView, an interface. Mods need to be recompiled, but otherwise no change should be necessary.

Other new additions

  • Codecs#STRINGIFIED_TEXT to serialize text as JSON-serialized string
  • BlockPos#iterateRecursively to implement the sponge logic (see javadoc)
  • AbstractRedstoneGateBlock#getSideInputFromGatesOnly to return whether a gate accepts inputs from other gates only
  • AbstractSignBlock#openEditScreen to edit the sign screen
  • NoteBlock#getNotePitch to calculate the note's pitch
  • AnimalEntity#breed to breed without producing a baby
  • SignChangingItem for items that affect a sign
  • TestContext#assertFalse to assert that a boolean condition should be false

Changes

  • UpdateSignC2SPacket and SignEditorOpenS2CPacket now have the front boolean field.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment