Skip to content

1.20.1 to 1.20.4

AlphaMode edited this page Feb 27, 2024 · 6 revisions

1.20.1 -> 1.20.4 Migration Guide

Significant Changes

  • ConditionalRecipe and ConditionalAdvancement
    • Removed. Use standard alternatives with Fabric resource conditions.
  • ItemPredicateRegistry
    • Removed. ItemPredicate has been changed to a record and codec'd.
  • CraftingHelper
    • Removed. 1.20.4 NeoForge now only uses this class for serializing there ingredients. Which you can just use Ingredient.CODEC for since Fabric API modifies this already.
  • IEntityAdditionalSpawnData
    • Using IEntityAdditionalSpawnData now requires you to override Entity#getAddEntityPacket and return PortingLibEntity.getEntitySpawningPacket(this). This now matches the same style as neo/forge.

Simple Changes

  • AbstractSelectionListAccessor#port_lib$getWidth() -> AbstractSelectionList#getRowWidth()
  • ExtendedButton: removed. Use vanilla Button, features have been implemented.
  • ShapedRecipeUtil: removed. Unnecessary, Porting Lib now always changes the max dimensions to MAX_VALUE.
  • AdvancementCallback.EVENT -> AdvancementEvent.EARN this event is now accurate to the NeoForge version.
Clone this wiki locally