Skip to content

Commit

Permalink
2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ZZZank committed Mar 23, 2024
1 parent d97fc50 commit 8ec47ac
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
20 changes: 18 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
# ProbeJS Legacy 2.5.0 -> 2.6.0

Registry Dumping

## What's new?

- Registry Dumping!
- Registries, whether from vanilla(e.g. items, blocks) or mods(e.g. Mekanism Slurries), can now be dumped into `registries.d.ts`.
- Registries will be resolved into types, showing every avaliable names under such registry. e.g. `type schedule = "minecraft:empty"|"minecraft:simple"|"minecraft:villager_baby"|"minecraft:villager_default";`
- Types that are registry entries will now take cooresponding registry as its assignables, like `type Attribute_ = Registry.minecraft.attribute | Attribute;`
- This means in some cases, like `item.enchant(..., 1)`, using string in `...` will no longer confuses your IDE, if you enable type checks.
- Minor performance tweaks to allow event listening mixin runs a little bit faster. After this change, changing config `disabled` will actually require a game restart to take effects
- move generalized representation of `onEvent` and `onForgeEvent` lower to prefer sepcialized ones

---

# ProbeJS Legacy 2.4.1 -> 2.5.0

RecipeFilter_ & FunctionalInterfaces
RecipeFilter\_ & FunctionalInterfaces

## What's new?

- Functional Interfaces(Interfaces that accept Lambda as their instances) can now also display their original type, thus accepting document
- e.g. `event.replaceInput(filter, toReplace, replaceWith)` in RecipeEvent, where `filter` used to be a only lambda function, but now accepts Lambda, original type, and objects like `{mod: "minecraft", type: "minecraft:blasting"}`
- e.g. `event.replaceInput(filter, toReplace, replaceWith)` in RecipeEvent, where `filter` used to be a only lambda function, but now accepts Lambda, original type, and objects like `{mod: "minecraft", type: "minecraft:blasting"}`
- Detailed doc for `RecipeFilter`, `ItemStackJS`, `IngredientJS`, and much more
- Event doc will now have a generalized variant displayed, to handle events that are not exported by ProbeJS yet

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ loom.platform=forge
# minecraft version
minecraft_version=1.16.5
# forge version, latest version can be found on https://files.minecraftforge.net/
forge_version=36.2.39
forge_version=36.2.41
# yarn, latest version can be found on https://fabricmc.net/develop/
yarn_mappings=1.16.5+build.10
parchment_version=1.16.5:2022.03.06

# Mod Properties
mod_version=2.5.0
mod_version=2.6.0
maven_group=com.prunoideae
archives_base_name=probejs
mod_id=probejs
Expand Down

0 comments on commit 8ec47ac

Please sign in to comment.