Stope 2.5.0 for Forge (1.20-1.20.1)
Curse Maven Snippet
What's new
New API for mods that ship optional textures: a resource pack inside the mod's jar that players turn on in Options → Resource Packs. Nothing changes in game until a mod uses it. Mods built for 2.0 through 2.4 run on 2.5.0 unchanged.
The API documentation is rewritten as pages by
area, with examples and quick starts. Six step-by-step guides walk through common tasks,
starting with
Wear a path where players walk,
and the sidebar lists them under Guides. Each API type's Javadoc in the api-sources jar now
gives the version it was added in and its side, and its thread wherever that is settled;
which thread runs CommandRegistrationCallback's listeners and which reads
BiomeFeatures.add's enabled are still open.
API
- Added
BuiltinPacks(experimental, client): list a resource pack from a mod's jar in the resource pack screen, off by default, on Fabric and Forge.
The Javadoc now states these contracts of experimental types. The code behind each is the same as in 2.4.0:
- Changed
PlayerMountFootfallCallback: the first footfall after mounting fires when the mount's supporting block differs from the block the player last stood on, andrider's sneaking and sprinting are the rider's input; the mount's own state is onmount. - Changed
MobGroups:definemay run on aDataReloadershandler's thread, which at world load is the thread that loads the world;groupOfis for the server thread and is always null for a mob on the client. - Changed
LeaderChoice.LARGEST: a baby leads only when no adult is present. - Changed
MobOwnership.isKeptByPlayer: it consults no names or tags; a mod with its own rules for kept mobs checks them itself. - Changed
ConfigFile.loadandsave: they return null only if the view function does, and an exception from the view function propagates fromload, leaving the current view as it was. - Changed
SettingsScreen.Builder'ssection,toggle,intField, anddecimalField: a key another row of the screen already has throwsIllegalArgumentException. - Changed
RegistryLookups.entityTypeId: a type that was never registered gives the registry's default ID,minecraft:pig, not an error. - Changed
SaplingGrowers.of: pass the grower to the constructor of the mod's ownSaplingBlocksubclass, since vanilla's constructor is protected. - Changed
BiomeFeatures.add:enabledis read once per server start, with no thread named; it was documented as read on the server thread. - Changed
LootAdditions.addPoolandreplaceBrushed: a null argument throwsNullPointerException.
This mod has no additional files