Skip to content

Releases: ItzSkyReed/BACAP_Parser

Release 0.5.0 Beta

12 Jan 18:40
f31b9ed
Compare
Choose a tag to compare
Release 0.5.0 Beta Pre-release
Pre-release

Added prioritization logic for selecting AdvType based on the presence of tabs

  • Updated the logic of the recognize_type method to handle cases where multiple matching AdvType instances exist.
  • Now, if several types match the given parameters (frame, color, tab), preference is given to types whose tabs field is not None and contains the provided tab parameter.
  • If multiple matching types have tabs, the MultipleTypesMatch exception is raised.
  • If no types with a suitable tabs field are found, the standard selection logic is used.

Reason for changes:

Previously, the method did not consider the presence of tabs as an important criterion for prioritizing among multiple matching AdvType instances.

Release 0.4.3 Beta

11 Jan 11:41
6fb235f
Compare
Choose a tag to compare
Release 0.4.3 Beta Pre-release
Pre-release

Add conditions parameter to Criteria class and update instantiation logic

  • Modify the Criteria class to include an optional conditions parameter in the initializer.
  • Add a new property method for conditions to retrieve the criteria's conditions.
  • Update the equality comparison to include conditions.
  • Adjust the instantiation of Criteria in CriteriaList to pass conditions from a dictionary.

Release 0.4.2 Beta

10 Jan 13:59
Compare
Choose a tag to compare
Release 0.4.2 Beta Pre-release
Pre-release

Bug fixes.

Release 0.4.1 Beta

06 Jan 22:06
Compare
Choose a tag to compare
Release 0.4.1 Beta Pre-release
Pre-release

Added docstrings to the PackMCMeta class + fix small issues

Release 0.4 Beta

06 Jan 17:09
Compare
Choose a tag to compare
Release 0.4 Beta Pre-release
Pre-release

Changelog for the Latest Updates

Enhancements

  • Datapack Initialization: Added support for customizable reward classes. Users can now specify custom classes for parsing advancements through the Datapack constructor using the parameters:

    • exp_class
    • reward_class
    • trophy_class

    These classes are validated to ensure they inherit from the appropriate base classes.

  • Reward and Trophy Class Flexibility: Introduced class-level __item_class attributes in Reward and Trophy classes. Allowed subclasses to define their own item classes, enhancing flexibility and maintainability.

  • JSON Parsing: Renamed safe_load_json to safe_load_json_file and added safe_load_json_string for parsing JSON strings directly.

  • Pack Metadata Handling:

    • Introduced the PackMCMeta class for parsing and validating pack.mcmeta metadata.
    • Updated Datapack and AdvancementManager to utilize PackMCMeta for better path and data validation.
    • Removed overlay support limitations and refactored related code.

Documentation Updates

  • Clarified that TabNameMapper can be modified after initialization.
  • Updated docstrings for return types and properties, such as specifying "Trophy item" for item properties and rephrasing experience-related descriptions.

Bug Fixes & Refactoring

  • Advancement Rewards: Updated the Advancement class to initialize rewards using customizable classes specified during Datapack initialization.
  • PackMCMeta Integration: Refactored existing code to consistently use PackMCMeta for metadata management.

Release 0.3 Beta

06 Jan 11:20
Compare
Choose a tag to compare
Release 0.3 Beta Pre-release
Pre-release
0.3b

Bump version