promotional bannermobile promotional banner

Mantle

Shared code for Forge mods
Back to Files

Mantle 1.8.31 for 1.18.1

File nameMantle-1.18.1-1.8.31.jar
Uploader
KnightMinerKnightMiner
Uploaded
Feb 3, 2022
Downloads
412.3K
Size
836.6 KB
Mod Loaders
Forge
File ID
3634761
Type
A
Alpha
Supported game versions
  • 1.18.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:mantle-74924:3634761")

Learn more about Curse Maven

What's new

Blocks

  • Signs now register their own block entity instead of injecting into the vanilla block entity

New Utilities

  • Added generic data provider: a basic data provider for JSON generators
  • Added NamedComponentRegistry: Simple registry for a resource locaton to object registry for components of JSON files
  • Added GenericSerializerRegistry: allows registering a loader for something that reads/writes to JSON.
  • Added GenericLoaderRegistry: allows registering a loader for something that reads/writes to JSON and the packet buffer
  • Added ISafeManagerReloadListener: for registering a reload listener that safely exits if forge enters an invalid state
  • Added IEarlySafeManagerReloadListener: for registering a reload listener that runs during the first stage of reload that safely exits if forge enters an invalid state
  • Added MergingJsonDataLoader: Loads data from JSON, merging JSONs from all packs
  • Added ResourceValidator: Loads a list of present resource locations from a pack and allows checking if it exists
  • Added FluidNameIngredient: Allows referencing a fluid from another mod during datagen
  • Added FluidTagEmptyCondition: Like TagEmptyCondition but for fluids
  • Added LoggingRecipeSerializer: Recipe serializer that logs on decoder errors
  • Added cast ticker and server ticker helper to BlockEntityHelper

Utility Tweaks

  • Allow extensions of InventoryBlockEntity to opt out of saving size in NBT
  • Added utilities to register metal blocks with ingots and nuggets
  • Added way to register enum block with no items
  • Registering wood blocks now simpler, requires fewer parameters
  • Fix wood block objects not having all blocks in getValues

Renames

  • Container is now ContainerMenu
  • Inventory is now Container in most classes
  • Recipe builders
    • addCriterion is now unlockedBy
    • setGroup is now group
    • build is now save
  • Tile entity is now block entity
  • Rename IngredientWithout to IngredientDifference
  • Many repackages, ask on the SlimeKnights discord if unsure where something went

Removals

  • Remove defaultIfNull as Java added Objects.requireNonNullOrElse
  • Remove cached config values as Forge now caches them
  • Remove offhand indicator tag in favor of the boolean enable

Models

  • Make model caches concurrent

Books

  • API changes
    • Page IDs are now resource locations instead of strings
    • Recipe age size is now autodetected by default
    • Pages now have a getTitle method to make indexes simplier
    • Section transformer no longer translates both <pageName>, just <sectionName>.<pageName>
    • Fix structure page text being inconsistent with other page content types
  • Added command to open a book by ID
  • Added test book to help debug content types in dev
  • Fix book caching names for language entries when reloading contents

This mod has no related projects