1.19 (API v1.5.0)
Additions
API
BlueberryText#text(namespace, path, arguments)
(see below)
Util#required(ThrowableSupplier)
@DeprecatedReason
for adding reason why element is @Deprecated
Core
- Log a warning about deprecated event usage
Configuration
- Added slider for numeric types (can be toggled in-game)
- Show deprecated reason in mod config screen if visual config element is annotated with
@Deprecated
or @DeprecatedReason
- Also supports
@ApiStatus.ScheduledForRemoval
Changes
API
@SideOnly
annotation will prevent the class/method/fields from loading (see javadocs for more info).
BlueberryText
implements ComponentContents instead of extending BaseComponent due to chat updates
- To obtain the component instance, use
BlueberryText.text(namespace, path, arguments)
instead of new BlueberryText(namespace, path, arguments)
BlueberryText#plainCopy
is also removed
- CustomComponentSerializer also uses ComponentContents instead of MutableComponent
BlueberryGuiComponents.EMPTY_TEXT
-> BlueberryCommonComponents.EMPTY_TEXT
Argument Types
ArgumentTypes#register
now must be called in pre-init phase due to mojang changes
- Replace
new EmptyArgumentSerializer<>(something)
with SingletonArgumentInfo.contextFree(something)
Chat Components (Minecraft)
new TextComponent(String)
-> Component.literal(String)
new TranslatableComponent(...)
-> Component.translatable(...)
Player.createPlayerUUID(String)
-> UUIDUtil.createOfflinePlayerUUID(String)
Early Loading Screen
- Now works with OpenGL 3.2 Core Profile.
-Dnet.blueberrymc.client.disableEarlyLoadingScreen=true
is still required for now.
Fixes
Back to top