Mantle

Shared code for Forge mods
Back to Files

Mantle-1.16.1-1.6.20.jar

File nameMantle-1.16.1-1.6.20.jar
Uploader
KnightMinerKnightMiner
Uploaded
Aug 6, 2020
Downloads
9.8K
Size
522.5 KB
Mod Loaders
—
File ID
3024785
Type
A
Alpha
Supported game versions
  • 1.16.1

What's new

Added

1.16 support

Registration

  • New deferred register wrappers to make it easier to register related objects
  • New registry adapters for those who prefer direct registration events
  • Registration objects to make the suppliers in deferred registers easier to work with

Models

  • Fallback model: allows loading the first available model from a list based on mod ID
  • Inventory model: adds data positions in a model for in world item display
  • Fluids model: Defines locations of fluids for in world fluid display
  • Connected model: model that allows blocks to connect to neighbors

Rendering

  • Ported many basic rendering methods from Tinkers Construct for rendering fluids and items

Recipes

  • Added several base interfaces extensions because IInventory is a terriable choice for recipes]
  • Added recipe consumer wrapper for adding a recipe with conditions or a custom serializer
  • Added shaped fallback recipe for when a recipe should fail if another recipe matches
  • Added Basic recipe builder logic to extend in custom recipe builders

Network cleanup

  • Replaced AbstractPacket with ISimplePacket
  • Replaced AbstractPacketThreadsafe with IThreadsafePacket
  • Packet registration easier now provided you implement ISimplePacket or IThreadSafePacket (only need to pass class and constructor)
  • Registration should include a NetworkDirection, for our uses that is PLAY_TO_CLIENT or PLAY_TO_SERVER

Misc

  • SupplierItemGroup: item group that takes an item stack supplier for the item to display

Deprecated

  • Recipe Match: Not sure if we still need this with migration to final recipes in JSON. If we keep it, will migrate to use ingredients internally

Removed

  • IRegisterUtil: Use registration adapters or the deferred wrappers
  • Pulse loader: Everything should always be registered. Config module removed as well as only the pulse loader used it
  • Inventory model wrappers: Use inventory model, render items in a Tile Entity Renderer

This mod has no related projects