MCPcopy Create free account
hub / github.com/Frontrooms/3.0-GC / setLevel

Method setLevel

src/main/java/emu/grasscutter/game/player/Player.java:455–462  ·  view source on GitHub ↗
(int level)

Source from the content-addressed store, hash-verified

453 }
454
455 public boolean setLevel(int level) {
456 if (this.setProperty(PlayerProperty.PROP_PLAYER_LEVEL, level)) {
457 this.updateWorldLevel();
458 this.updateProfile();
459 return true;
460 }
461 return false;
462 }
463
464 public int getExp() {
465 return this.getProperty(PlayerProperty.PROP_PLAYER_EXP);

Callers 2

addExpDirectlyMethod · 0.95
getSocialDetailMethod · 0.45

Calls 3

setPropertyMethod · 0.95
updateWorldLevelMethod · 0.95
updateProfileMethod · 0.95

Tested by

no test coverage detected