Nexus API

Nexus API

Mod

Bulk of common platform-agnostic utilities aimed at reducing boilerplate/compatibility issues, thereby streamlining mod development on MultiLoader and other platforms.

Client and server LibraryUtility

120 downloads
0 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!
Filter loader...

Nexus API Changelog (Forge)

v1.0.9 (1.20.1)

Bug Fixes

  • Fixed RecipeUtil materialPieceFrom not factoring all potential material suffixes in.
  • Fixed dedicated server crash due to IntegratedServer type check in TickEvent.

New Features

  • Added new BlockPropertyWrapper templates to BlockPropertyWrapperTemplates: 'BRICKS' (+ tool variants), 'PILLAR' (+ tool variants).
  • Added utility methods to RecipeUtil for brick and pillar recipes (+ overloads).
  • Added several new utility shortcut methods to RegistryUtil for stone block families.

Nexus API Changelog (Fabric)

v1.0.9 (1.20.1)

Bug Fixes

  • Fixed RecipeUtil materialPieceFrom not factoring all potential material suffixes in.
  • Fixed dedicated server crash due to IntegratedServer type check in TickEvent.

New Features

  • Added new BlockPropertyWrapper templates to BlockPropertyWrapperTemplates: 'BRICKS' (+ tool variants), 'CHISELED_STONE' (+ tool variants), 'CHISELED_STONE_COBBLED' (+ tool variants), 'PILLAR' (+ tool variants).
  • Added utility methods to RecipeUtil for brick, chiseled block, chiseled block cobbled, and pillar recipes (+ overloads).
  • Added several new utility shortcut methods to RegistryUtil for stone block families.

Nexus API Changelog (Forge)

v1.0.8 (1.20.1)

Bug Fixes

  • Fixed StandardTagProvider including missing tags by default when validateAllEntries is set to false for its corresponding ProviderType.
  • Added new methods for resolving texture locations to RegistryUtil and replaced all usages (getTextureLocationOrDefaultWithSuffix -> getTextureLocationWithSuffixOrDefault) appropriately for proper texture resolution.

Nexus API Changelog (Fabric)

v1.0.8 (1.20.1)

Bug Fixes

  • Fixed StandardTagProvider including missing tags by default when validateAllEntries is set to false for its corresponding ProviderType.
  • Added new methods for resolving texture locations to RegistryUtil and replaced all usages (getTextureLocationOrDefaultWithSuffix -> getTextureLocationWithSuffixOrDefault) appropriately for proper texture resolution.

Nexus API Changelog (Forge)

v1.0.7 (1.20.1)

New Features

  • Added new BlockPropertyWrapper template for leaves in BlockPropertyWrapperTemplates.

Nexus API Changelog (Fabric)

v1.0.7 (1.20.1)

New Features

  • Added new BlockPropertyWrapper template for leaves in BlockPropertyWrapperTemplates.

Nexus API Changelog (Forge)

v1.0.6 (1.20.1)

Bug Fixes

  • Fixed mining level check in DiggerItemMixin: Made it consistent with Vanilla logic by doing a >= check based on the specified minimum mining level in a BlockPropertyWrapper, instead of a hard-capped > check.

Nexus API Changelog (Fabric)

v1.0.6 (1.20.1)

Nexus API Changelog (Fabric)

v1.0.5 (1.20.1)

Bug Fixes

  • (Not really a bug) Corrected naming of parameters in ItemPropertyWrapperTemplates.
  • (Also not really a bug) Corrected javadocs in FabricModData with proper time complexity analysis (was an inaccurate mess and mainly just insanely-off guesstimates cuz I got lazy after finally optimizing tf out of it).
  • Fixed FabricModData#filterDuplicates logic pruning paths that shouldn't be pruned (e.g., when a path wasn't a subdirectory of another path, so "block_texture.png.mcmeta" would wrongly filter out "block_texture.png" due to the basic substring check that was done).
  • Updated PropertyWrapperContainer#MAPPED_PROPERTY_WRAPPERS to additionally compare wrapper/supplier values in its equality check.
  • Updated PropertyWrapper#getMappedPropertyWrappers() HashStrategy implementation to match PropertyWrapperContainer#MAPPED_PROPERTY_WRAPPERS.
  • Updated PropertyWrappersContainer#getWrapperFor(Supplier) to query a copy of the original map if the base lookup returns an empty Optional (see javadoc for further details).

New Features

  • Added new template methods (+ overloads) for registering items and chaining them with custom property wrappers in ItemPropertyWrapperTemplates.

Nexus API Changelog (Forge)

v1.0.5 (1.20.1)

Bug Fixes

  • (Not really a bug) Corrected naming of parameters in ItemPropertyWrapperTemplates.
  • Updated PropertyWrapperContainer#MAPPED_PROPERTY_WRAPPERS to additionally compare wrapper/supplier values in its equality check.
  • Updated PropertyWrapper#getMappedPropertyWrappers() HashStrategy implementation to match PropertyWrapperContainer#MAPPED_PROPERTY_WRAPPERS.
  • Updated PropertyWrappersContainer#getWrapperFor(Supplier) to query a copy of the original map if the base lookup returns an empty Optional (see javadoc for further details).

New Features

  • Added new template methods (+ overloads) for registering items and chaining them with custom property wrappers in ItemPropertyWrapperTemplates.

Nexus API Changelog (Forge)

v1.0.4 (1.20.1)

Bug Fixes

  • Fixed incorrect configuration of #dropsLike for signs and hanging signs in RegistryUtil#registerStandardWoodFamily.
  • Fixed atlas configuration for signs and hanging signs.
  • Fixed BlockPropertyTemplates#WOODEN_PLANKS permitting pickaxes as a mining tool via wrongfully-tagging inheritors with "minecraft:blocks/mineable/pickaxe".
  • Fixed wall sign and wall hanging sign particle textures not showing up due to missing blockstate configuration in BlockPropertyWrapperTemplates#WOODEN_WALL_SIGN and BlockPropertyWrapperTemplates#WOODEN_WALL_HANGING_SIGN.
  • Made ModelUtil#sign(Supplier) look plank textures up rather than log textures by default for consistency.

Nexus API Changelog (Fabric)

v1.0.4 (1.20.1)

Bug Fixes

  • Fixed incorrect configuration of #dropsLike for signs and hanging signs in RegistryUtil#registerStandardWoodFamily.
  • Fixed atlas configuration for signs and hanging signs.
  • Fixed BlockPropertyTemplates#WOODEN_PLANKS permitting pickaxes as a mining tool via wrongfully-tagging inheritors with "minecraft:blocks/mineable/pickaxe".
  • Fixed wall sign and wall hanging sign particle textures not showing up due to missing blockstate configuration in BlockPropertyWrapperTemplates#WOODEN_WALL_SIGN and BlockPropertyWrapperTemplates#WOODEN_WALL_HANGING_SIGN.
  • Made ModelUtil#sign(Supplier) look plank textures up rather than log textures by default for consistency.

Nexus API Changelog (Forge)

v1.0.3 (1.20.1)

Bug Fixes

  • Fixed improper texture lookup for signs in ModelUtil.

Nexus API Changelog (Fabric)

v1.0.3 (1.20.1)

Bug Fixes

  • Fixed improper texture lookup for signs in ModelUtil.

Nexus API Changelog (Forge)

v1.0.2 (1.20.1)

Bug Fixes

  • Fixed logical error for sign models where sign particle texture lookup was performed in the "textures/item" instead of "textures/block" directory.
  • Fixed logical error related to client data entry texture lookups always being prefixed with prefixes that may or may not be relevant to the texture(s) being looked up.
  • Fixed NPE being thrown due to inadequate null safety for both BlockEntityClientData and EntityClientData during client setup, specifically for ModelLayerLocation and LayerDefinition registration.
  • Fixed NPE being thrown due to inadequate null safety for both signs and hanging signs.
  • Fixed functionality of registerAndReflect on Forge.

Nexus API Changelog (Fabric)

v1.0.2 (1.20.1)

Bug Fixes

  • Fixed logical error for sign models where sign particle texture lookup was performed in the "textures/item" instead of "textures/block" directory.
  • Fixed logical error related to hanging sign texture lookups always being prefixed with "entity/signs/hanging/" instead of "entity/sign/".
  • Fixed NPE being thrown due to inadequate null safety for both BlockEntityClientData and EntityClientData during client setup, specifically for ModelLayerLocation and LayerDefinition registration.
  • Fixed NPE being thrown due to inadequate null safety for both signs and hanging signs.

Nexus API Changelog (Forge)

v1.0.1 (1.20.1)

Bug Fixes

  • Fixed logical error in sign texture lookups: Allow for sign textures to be located under "entity/sign", in addition to "entity/signs".
  • Properly included particle texture in sign block model file.
  • Fixed BlockEntityTypePropertyWrapper generating locale entries when they're not even needed.
  • Fixed WOODEN_PLANKS BPW Template failing to look up the "logs" tag of a given wooden plank using its assumed property wrapper whenever the tag had any directories prepended to its path (e.g. "modid:apple_logs" would work fine, but "nexus:path/apple_logs" wouldn't).

Nexus API Changelog (Fabric)

v1.0.1 (1.20.1)

Bug Fixes

  • Fixed logical error in sign texture lookups: Allow for sign textures to be located under "entity/sign", in addition to "entity/signs".
  • Properly included particle texture in sign block model file.
  • Fixed BlockEntityTypePropertyWrapper generating locale entries when they're not even needed.
  • Fixed WOODEN_PLANKS BPW Template failing to look up the "logs" tag of a given wooden plank using its assumed property wrapper whenever the tag had any directories prepended to its path (e.g. "modid:apple_logs" would work fine, but "nexus:path/apple_logs" wouldn't).

Nexus API v1.20.1-1.0.0 [Fabric]

Initial release

Nexus API v1.20.1-1.0.0 [Forge]

Initial release


Project members

RaveTr

Developer

Details

Licensed BSD-3-Clause
Published a month ago
Updated 5 days ago