Skip to content

ItemStack.metadata incorrect name #179

@danilwhale

Description

@danilwhale

Type
Field

Describe where the element is
net/minecraft/item/ItemStack
I f_9776894

Description of the element
Damage value of the stack

Expected name
damage

Additional Context

// ...
    public void damageAndBreak(int damage) {
        //               v
        this.metadata += damage;
        //                       v
        if (this.metadata > this.getMaxDamage()) {
            --this.size;
            if (this.size < 0) {
                this.size = 0;
            }
            this.metadata = 0;
        }
// ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions