Skip to content

Javadocs for PreFlattenTagRegistrar missing definition for AXE_PICKAXE in example #12100

@amaranth

Description

@amaranth

Expected behavior

The header documentation on https://jd.papermc.io/paper/1.21.4/io/papermc/paper/tag/PreFlattenTagRegistrar.html gives example code for creating a new tag but does not include the definition of the tag itself, just how to give it a value. The original PR included this bit of code which is missing:

public static final TagKey<ItemType> AXE_PICKAXE = TagKey.create(RegistryKey.ITEM, Key.key("test", "axe_pickaxe"));

Observed/Actual behavior

Non-functional example due to missing variable definition.

Steps/models to reproduce

Look at the documentation, try to use the example to make your own tag.

Plugin and Datapack List

N/A

Paper version

N/A

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions