You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating might make your mod incompatible with previous versions of the Library.
2.0.0
Added
Variant Loader
Added a fallback variant parameter to getParameterDataFromVariant, allowing shared data to be centralized in a single JSON instead of duplicating it per variant.
Reworked the entire Loading system to have the Events on the Library side and allow Developers to just inject the path and entities.
Instead of handling everything themself.
All Developers can now remove their ReloadHandler since it became redundant and has been replaced with a way cleaner and more optimized system.
AllDataPacket – Sends a Map<String, JsonObject> containing all variant data from the server to the client.
ParameterDataPacket – Sends specific parameter data for a given variant as a JsonElement.
VariantsPacket – Sends a Set<String> representing all available variant identifiers for an entity. ⚠️ ***These packets are not registered by default; they must be registered on the S2C side, with the handler provided as a lambda defining the logic to execute when the packet is received.***⚠️
Changed
onReload has been modified to onDatapackSync.
Bug Fixes
Cleaned up all of the Logging we had in place.
Deleted
Removed IVariantEntityBase since it has become redundant!
This discussion was created from the release BlueLib 2.0.0.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
This version brings Breaking Changes.
Updating might make your mod incompatible with previous versions of the Library.
2.0.0
Added
Variant Loader
ReloadHandlersince it became redundant and has been replaced with a way cleaner and more optimized system.onReloadhas been modified toonDatapackSync.Logging
/logcommand accessible to users with a permission level of 3 or higher (/op).isLoggingEnabledhas been moved to a server sided config.slf4jsystem.Network Handler
Packets
Variant Data Synchronization
AllDataPacket– Sends aMap<String, JsonObject>containing all variant data from the server to the client.ParameterDataPacket– Sends specific parameter data for a given variant as aJsonElement.VariantsPacket– Sends aSet<String>representing all available variant identifiers for an entity.Changed
onReloadhas been modified toonDatapackSync.Bug Fixes
Deleted
IVariantEntityBasesince it has become redundant!This discussion was created from the release BlueLib 2.0.0.
Beta Was this translation helpful? Give feedback.
All reactions