Advancement.grant constructor
This gives the advancement to the player:
Advancement.grant | |
---|---|
Entity | the target player |
String | your advancement |
mode | the advancement mode(default = only, modes are also separate constructors) |
criteria | optional String criteria for an advancement |
Implementation
Advancement.grant(
this.entity,
this.advancement, {
this.mode = 'only',
this.criteria,
}) : revoke = false;