Skip to content

Better documentation for generic types like KnownTagManager<T> #586

@OWeinert

Description

@OWeinert

Hey,

currently there is okay-ish documentation for classes like KnownTagManager, but not enough so anyone can guess what "T" could be or how to even get the type of class in zenscript.
Because of that the wiki should be updated to at least include hints or types, which are used in vanilla crafttweaker, that can be used for generic classes.
I for myself had a really hard and annoying time figuring out what i have to give as a type to the generic constructor/function for it to work,
because there is no documentation on what can be a type for such a constructor or function.

A good example is the KnownTagManager.
There is no documentation at all on what type this class expects, even though this class can be really important for modpack developers.
Does it take "item" does it take "ItemDefinition" or something else? Nobody seems to really know for the newest version of CraftTweaker.

I love this mod and want to support it.
If this request leads to a major change in code, I'm willing to help.
In the end I think it's really just a documentation oversight.

Greetings,
Piggo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions