Migration Guide
26.1-b6.0 to 26.1-b7.0
Changes
UnifiedEvents.DefaultItemComponents- now provides a
TriConsumerwith aHolderLookup.Provider
- now provides a
- this will require updating usages of DefaultItemComponent events to use a TriConsumer, rather than the previous BiConsumer
Renames
UnifiedClientEvents.Ticks- renamed
atStarttoonStart
- renamed
- renamed
atEndtoonEnd
- renamed
26.1-b5.0 to 26.1-b6.0
Changes
UnifiedPlatform- replaced
getEnvironmentwithisClientSideandisServerSide
- replaced
Renames
UnifiedEvents.LootTables- renamed
modifyWithFiltertomodifyFiltered
- renamed
UnifiedPlatform- renamed
getDevelopmentInstancetogetDevelopmentEnvironment
- renamed
- renamed
getPlatformtogetLoader
- renamed
26.1-b4.0 to 26.1-b5.0
Changes
- when registering blocks with
UnifiedRegistries.Blocks, you must now wrap yourBlockBehaviour.Propertieswith a Supplier:() ->
Renames
- renamed
UnifiedEvents.ItemComponentstoUnifiedEvents.DefaultItemComponents - renamed
modifyWithFiltertomodifyFiltered
- renamed
26.1-b3.1 to 26.1-b4.0
Changes
- replaced
UnifiedHelpers.PLATFORMwithUnifiedPlatform.get() - anywhere using
UnifiedHelpers.PLATFORMwill have to update to useUnifiedPlatform.get()
- anywhere using
26.1-b2.0 to 26.1-b3.1
Changes
UnifiedEvents.Players.onRespawnnow provides aBiConsumerwitholdPlayerandnewPlayer- previously, only the new player was provided, so usages of this event must be adjusted
26.1-b1.0 to 26.1-b2.0
Changes
- methods in
UnifiedHelpers.CREATIVE_ENTRIESwhich previously requiredItemStacknow requireItemStackTemplateinstead - these methods were previously broken on 26.1, and are fixed by this change
1.21.11 to 26.1
Renames
UnifiedHelpers.NETWORKING- renamed
registerPlayC2StoregisterPlayToServer
- renamed
- renamed
registerPlayS2CtoregisterPlayToClient
- renamed
- renamed
registerConfigC2StoregisterConfigToServer
- renamed
- renamed
registerConfigS2CtoregisterConfigToClient
- renamed
UnifiedHelpers.CREATIVE_ENTRIES- renamed
addtoinsert
- renamed
- renamed
addAftertoinsertAfter
- renamed
- renamed
addBeforetoinsertBefore
- renamed
UnifiedEvents.ItemComponents=- renamed old
modifymethod tomodifyWithFilter
- renamed old
- renamed
UnifiedItemComponentstoUnifiedDataComponents
Removals
UnifiedClientHelpers.BLOCK_LAYERS- removed due to 26.1 handling block layers automatically. You can safely delete any code which called this helper
UnifiedHelpers.LOOT_TABLES- removed due to being replaced by the
UnifiedEvents.LootTablesevent, which functions similarly to fabric's loot table api
- removed due to being replaced by the
UnifiedHelpers.STRIPPABLES- instead of using
UnifiedHelpers.STRIPPABLES.add(log, strippedLog), you should instead useUnifiedHelpers.BLOCK_CONVERSIONS.addStrippable(log, strippedLog)
- instead of using
UnifiedHelpers.FURNACE_FUELS- instead of using
UnifiedHelpers.FURNACE_FUELS.add(itemLike, ticks), you should use eitherUnifiedHelpers.DATA_COMPONENTS.addFurnaceFuel(itemLike, ticks)or addUnifiedDataComponents.FURNACE_FUELSto your item's components list
- instead of using
Other
- Composting
- composting can now be handled using
UnifiedHelpers.DATA_COMPONENTS.addCompost(itemLike, chance)or by addingUnifiedDataComponents.COMPOSTto your item's components list, as opposed to appending the vanilla list
- composting can now be handled using