Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/team-enderio/regilite
https://github.com/team-enderio/regilite
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/team-enderio/regilite
- Owner: Team-EnderIO
- License: lgpl-3.0
- Created: 2023-12-26T16:56:00.000Z (12 months ago)
- Default Branch: dev/1.21
- Last Pushed: 2024-07-29T21:07:19.000Z (5 months ago)
- Last Synced: 2024-07-30T03:02:55.588Z (5 months ago)
- Language: Java
- Size: 359 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Regilite
A lightweight library helping with registration and data generation.## Usage
This library provides helper functions and wrappers around for various Holders and registries. To be able to use
Regilite, you firstly create and register a `Regilite`-object. This object will do the actual registring data to events
and doing DataGen.Below you can find a list of Holder objects Regilite supports. You can see not every Holder has a Regilite alternative,
and this is intentional. We've only provided our wrappers when the Holder could benefit from it in our eyes.### RegiliteBlock
Besides the block itself, there are also functions to automatically register the following:
- Loot tables
- Blockstates and model
- Block color (tint)
- Block Tags
- Translation
- Block item
- See `Items`### RegiliteItem
Besides the item itself, there are also functions to automatically register the following:
- Item model
- Item color (tint)
- Item Tags
- Creative tabs
- Translation
- Capabilities### RegiliteFluid
Besides the fluid(type) itself, there are also functions to automatically register the following:
- Flowing fluid
- Source fluid
- Fluid tag
- Translation
- Liquid block
- See `Block`
- Bucket Item
- See `Item`### RegiliteBlockEntity
Besides the block entity(type) itself, it automatically registers the following:- Block entity renderer
- Block entity tags
- Capabilities### RegiliteEntity
Besides the entity(type) itself, it automatically registers the following:- Entity model
- Entity tags
- Translation
- Capabilities (TODO)
- Model layer (TODO)### RegiliteMenu
Besides the menu(type) itself, it automatically registers the following:- Screen factory
- Translation (TODO)### Translations
We provide automatic translations for holders where the `ResourceLocation` gives enough context. This can always
be changed using the `setTranslation` method.For other translations, the `Regilite`-object provides methods for registering a translation. In case a translation is
added multiple times, only the last one will be used.