Skip to content

Instantly share code, notes, and snippets.

@apple502j
Created January 26, 2023 14:23
Show Gist options
  • Save apple502j/27b83247fd3f70e1c9da492c1a7af234 to your computer and use it in GitHub Desktop.
Save apple502j/27b83247fd3f70e1c9da492c1a7af234 to your computer and use it in GitHub Desktop.

23w04a stuff

Small snapshot, a couple of big changes.

Changes

Screens

ScreenHandlerType now requires the required feature to be passed. This is usually FeatureFlags.VANILLA_FEATURES.

Armor

ArmorItem constructor now takes ArmorItem.ArmorSlot instead of EquipmentSlot.

Recipe

Recipe-related methods now require DynamicRegistryManager instance to be passed.

Additions

  • Identifier#withSuffixedPath that appends a suffix to the identifier's path.
  • ColorHelper.Abgr that implements ABGR color manipulation.

Other stuff

  • Packet class is repackaged to net.minecraft.network.packet.
  • PacketByteBuf#encode and decode now takes DynamicOps in addition to codec.
  • getCausingEntity/setCausingEntity and other owner-related methods have been merged into getOwner and setOwner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment