Skip to content

Instantly share code, notes, and snippets.

View apple502j's full-sized avatar
🍎
Eaten

apple502j apple502j

🍎
Eaten
View GitHub Profile

1.19.4-pre1: Pre-tty Good Update

Five snapshots and we enter into the pre-release phase! Remember, this is when you should start porting mods (More precisely, pre-release 2 is a bit better IMO) - unless you have the special power of porting your mod every week, of course.

Fabric Update

This past week was Fabric Toolchain Week. Fabric Loader, Fabric API, and libraries like Mixin have received many updates.

Fabric Loader 0.14.15

Note: this version is unstable and has several Mixin-related bugs, along with log display errors on MultiMC. Update is not recommended yet.

JUnit Testing

23w07a: One Meter Cube of Cherry Blossom Update

We thought 1.19.4 will soon come to pre phase, but guess what, we were wrong! From the country of cherry blossom trees, here's the 23w07a weekly snapshot update document.

Fabric Updates

Fabric API 0.74.1 was released. Object Builder API received some breaking changes, related to block settings, sign types, and entity types.

In addition, other parts of the platform code (such as Mixin and Loader) have received some changes, pending release. These will be released when they are ready.

Minecraft Update

Obviously, there's some sniffing mob, the second suspicious thing in the game, and a 1m cube of pink stuff, but hey we're talking about modding stuff!

23w06a: Damage Update

It's been a year since the first post of the Snapshot Document Series! This will continue for the foreseeable future. Anyway, it's another frogging week and a snapshot update!

Fabric Changes

Fabric Loader 0.14.14 was released last week, fixing a bug where mod initializers were run a little bit later.

Fabric API for 23w06a, version 0.73.5, contains breaking changes to Item Group API, Indigo, Rendering API (v1), and Transitive Access Wideners.

Minecraft Changes

Damages

23w04a stuff

Small snapshot, a couple of big changes.

Changes

Screens

ScreenHandlerType now requires the required feature to be passed. This is usually FeatureFlags.VANILLA_FEATURES.

Armor

ArmorItem constructor now takes ArmorItem.ArmorSlot instead of EquipmentSlot.

It's been almost a year since the first "Snapshot Note" series! Anyway here's the 23w03a stuff info.

Fabric toolchain

Fabric Loader 0.14.13 should be used for this version.

Fabric API 0.72.1 is released for this version. Biome API received 1 breaking change; setPrecipitation method in BiomeModificationContext.WeatherContext now takes a boolean.

Minecraft Changes

Packet Bundling

Multiple S2C packets can now be bundled into a single packet, so that they are processed in the same client tick. The bundled packets are still sent separately, but is re-bundled in the client.

@apple502j
apple502j / migrating-to-packet-api.md
Last active April 13, 2024 23:01
Fabric API guide: Migrating to packet object-based API

Migrating to Packet Object-based Networking

Fabric API 0.77.0 for 1.19.4 and 1.20 introduced a new way of writing networking stack. This applies to ServerPlayNetworking and ClientPlayNetworking. This is a guide on migrating existing code using Networking API v1 to new, packet-based code.

If you are still using the deprecated Networking API v0, it is recommended to switch to v1 first.

When the old API should still be used

The new API makes some assumptions on the usage. While this covers most of the common and expected uses, there are cases where the old API still works better. Therefore, the old API is not deprecated in anyway. Also, the two APIs are network-compatible so long as the packet serialization is the same.

For example, you might want to continue using the old API if:

22w46a Change Logs as usual

This one's a boring update.

Fabric API

Yet another week of breaking change. First, a new Fabric API version for the previous snapshot made one change to Datagen API: FabricWorldgenProvider is renamed to FabricDynamicRegistryProvider. This also added FabricItemGroupEntries#shouldShowOpRestrictedItems method and fixed various bugs within the Item Group API and Biome API.

This week, Fabric API 0.66.3 has one more breaking change: Textures API is now gone, as it was superseded with vanilla Atlas Configuration in resource packs. (The other feature, sprite dependency, was removed in 22w42a due to code breakage and lack of usage.)

Changes

Great Registry Repackaging

22w45a: Big Brain Update

Here comes 22w45a, the Big Brain update, because it literally is. There are also some big changes to registries that affects all mods (except LazyDFU of course).

Fabric API

Item Groups API had a major breaking change.

Changes

Registry split and stuff

The big class Registry is now split into 2 classes and 1 interface:

@apple502j
apple502j / 22w44a-docs.md
Last active November 10, 2022 05:13
22w44a changelog

22w44a: Every Week's a DataGen Update

Here's yet another snapshot where the advertised changes make up less than 30% of overall changes...

Fabric API

fabric-biome-api-v1 and fabric-data-generation-api-v1 received breaking changes.

Changes

RIP BuiltinRegistries??

We all knew the builtin registries were dying. Now they're dead. Or, sort of.

@apple502j
apple502j / 22w43a-docs.md
Created October 28, 2022 18:57
22w43a update info

22w43a: The Future is a DataGen Update

It's 22w43a - where future awaits in the DataGen, literally.

Fabric API

fabric-data-generation-api-v1 received breaking changes, of course.

Changes

DataGen refactor again

Data generators now have to create a "pack" and add providers to the pack. (It's like a resource pack - the provider generates a resource for a specific pack.) This can be done with FabricDataGenerator#createPack (or create, depending on FAPI version).