Stats

1200 views 37 downloadsJan 13, 2023 Jan 13, 2023

Rated: 0.0/5.0


Creators and Publishers

YUNGNICKYUNG

Creator

mchoarder

Publisher

Additional Links

You may find some useful information by following these links

https://www.curseforge.com/minecraft/mc-mods/yungs-api


Share this post



Yung’s API

DescriptionInstallationScreenshotsComments Downloads

Yung’s API is a world-generation API commonly used by Yung’s mods and a variety of other mods. It has collections of shared methods and data abstractions for data-related stuff including JSON.


For players, just install this like any other mod. For developers, you can include the files in your developer environment. The mod by itself does very little but is used for other mods.


This was originally designed for Yung’s mods, but Yung encourages use for other mod developers. Some of the features held by Yung API are:

  •        A new Jigsaw Manager that has a custom pool of element types with various settings that perform better (Can see in Yung’s Better  Dungeons Source code)   
  •    Automatic Registration on 1.18 via an annotation (@AutoRegister and a bunch of children annotations/interfaces or classes) that lets you register with just a field so long as you include the value() method.  

  •    Features for locating structures 

  •    Codec Helper making new Codecs more easily

  •    JSON Parsers templates as Java Interfaces which can be used for making things like Java Beans

  •    Various Java Services

  •    Maths utilities focusing on Vectors and Columns positions

  •    Noise Library

  •    Block and Item randomisers called BlockStateRandomizer and ItemRandomizer make it easy to have different variations of blocks or items in a structures

  •    Newer  versions in some cases (at least in Fabric), also come with Javassist for Manipulation and Reflection Utils and a bunch of other stuff

  •    More



If you need support, you can always join Yung’s Discord Server . It is compatible with both Minecraft Forge and FabricMC/QuiltMC and uses the MultiLoader Template to target all 3, as does most of Yung’s other mods (Yung is likely one of the biggest users of the MultiLoader Template) meaning that is likely the recommended way to use it, though you can likely use it in almost any environment.



The Official Yung Mods that use this are:

Some non-Yung mods use this such as add-ons for Yung Mods.