Mantle

Mantle

157M Downloads

Deprecated methods to remove or move in 1.17

KnightMiner opened this issue ยท 2 comments

commented

This issue is to keep track of methods that are marked for removal in 1.17, so whoever ports the mod has an easier time tracking.

  • InventoryBlock#dropInventoryItems(BlockState, World, BlockPos, InventoryTileEntity): Replaced with IItemHandler method
  • slimeknights.mantle.multiblock: Moved to Tinkers Construct as that was the only mod using it and it needed rewrites. Will pull back the updated version if any dependency requests it.
  • InventoryTileEntity.inventoryTitle: Separated into two fields, one for custom name and one for regular so we can tell them apart.
  • RenderingHelper.drawHoveringText: Reimplemented in Forge, can use Forge util directly.
  • BookHelper.getSavedPage: Renamed to getCurrentSavedPage
  • BookHelper.writeSavedPage: Renamed to writeSavedPageToBook
  • slimeknights.mantle.client.screen.book.BookmarkButton: Has been unused since 1.13 port of books
  • AddEntryLootModifier deprecated constructor
  • ReplaceItemLootModifier deprecated constructor

Reduced protection levels:

  • RetexturedLootFunction: Make serializer constructor private
  • IngredientIntersection: Make constructors protected
  • IngredientWithout: Make constructors protected, consider rename to IngredientDifference

Packages and renames:

  • Move SizedIngredient, EntityIngredient, and FluidIngredient into the new recipe.ingredient package
  • Move BookTransformer into the client.book.transformer package
  • Move RetexturedLootFunction into the new loot.function package
  • IngredientWithout: Rename to IngredientDifference
commented

Completed all of the book-related ones in 982588f

commented

Completed on the 1.18 branch.