Skip to content

Icon/Position callback. #1

@ryantheleach

Description

@ryantheleach

When using a menu/inventory isn't it more common to want to assign a callback to a position/icon and call that specifically, rather then have a single handler for an inventory?

You could keep the single inventory callback, but use that as a fallback for if an icon/position callback wasn't defined.

This would support dynamic menu's a lot better, because instead of having to rely on decoding an itemstack or position number to work out what was clicked, you could just assign an adapter class for each icon that would then call the method required in your plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions