Skip to content

Instantly share code, notes, and snippets.

@apple502j
Created April 28, 2023 16:33
Show Gist options
  • Save apple502j/64e7e5bfb5229d0a8578b0a55e5b4147 to your computer and use it in GitHub Desktop.
Save apple502j/64e7e5bfb5229d0a8578b0a55e5b4147 to your computer and use it in GitHub Desktop.

23w17a: getWorld Update

Perhaps the biggest breaking change comes from a single word change...

Fabric changes

Fabric API 0.79.1 was released, with breaking changes to Object Builder (FabricBlockSettings). This was followed by another patch update, 0.79.2, which fixes a mixin error.

Also, Loom 1.2 is out, with some changes to library handling, Kotlin support, and minimum Gradle version bumped to 8.1.

Minecraft changes

Entity#world

Entity#world is now private. You can either use an access widener (the cheaty way) or replace it with getWorld() (the good way). Since it is private, subclasses must also use getWorld. If you are in a server context, you can use getServerWorld to get the server world. If you somehow need to set it, setWorld method also exists.

Entity#onGround is also private now; use the getter instead.

RIP Material

Material class, stripped of most functionalities in previous snapshots, is gone. Map colors should be specified using block settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment