Create a item with a custom name

You get the Value<Text> for the manipulator, then set the contained Text
Something like:

holder.getData(DisplayNameData.class).get().displayName().set(Texts.of("Something"));

Alternatively, you can set the Value directly

holder.set(Keys.DISPLAY_NAME, Texts.of("Something"));

Note that I have not tested this and it may not compile, but I hope you get the idea.

For future DataAPI 2.0 related questions, please use the following thread: