Skip to main content
Version: 1.21.x

1.21.8 to 1.21.9 - 1.21.11

This is an overview on the breaking changes, deprecations, and future development plans for Curios on 1.21.9/1.21.10/1.21.11. This document aims to be exhaustive and list every relevant change in each section. If there are any missing pieces of information, please submit a PR to this repository or initiate a support request in the Discord server.

Breaking Changes


Non-Deprecated

Field

  • CuriosCapability#ITEM_HANDLER
    • Type changed from IItemHandler to ResourceHandler<ItemResource>

Description

This change was made to conform to the new NeoForge transfer API, especially since the IItemHandler interface is marked as deprecated and for removal. Consumers that need the legacy behavior can use IItemHandler#of(ResourceHandler) as a wrapper for this return to get an IItemHandler instance.

Method

  • ICurioRenderer
    • renderFirstPersonHand
  • ICurioRenderer#ModelRenderer
    • prepareModel
    • renderModel
    • renderFirstPersonHand
      • Parameter changed from MultiBufferSource to SubmitNodeCollector

Description

These methods are updated to conform to vanilla's rendering changes that now use a SubmitNodeCollector parameter.

Changes


Rendering

Methods

  • ICurioRenderer
    • render( ItemStack, SlotContext, PoseStack, SubmitNodeCollector, int, LivingEntityRenderState, RenderLayerParent, EntityRendererProvider.Context, float, float) (new method)

Description

An updated render method has been added to conform to vanilla's rendering changes that now use a SubmitNodeCollector parameter. The default implementation currently redirects to the old method that uses a MultiBufferSource parameter.

Deprecations


Rendering

Methods

  • ICurioRenderer
    • render method that takes a MultiBufferSource parameter
      • Replaced by: render method that takes a SubmitNodeCollector parameter
    • renderModel
      • Replaced by: net.minecraft.client.renderer.OrderedSubmitNodeCollector#submitModel

Description

These deprecations follow the rendering changes described above, replaced by an updated method.