MCPcopy Create free account
hub / github.com/ZetaMap/MoreCommands / reset

Method reset

src/main/java/data/TempData.java:65–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 }
64
65 public void reset() {
66 TempData newData = new TempData(this.player);
67
68 if (spectate()) this.player.team(this.spectate);
69 this.player.unit().health = this.player.unit().maxHealth;
70 this.lastUnit = newData.lastUnit;
71 this.msgData.removeTarget();
72 this.spectate = newData.spectate;
73 this.effect = newData.effect;
74 this.hue = newData.hue;
75 this.votedVNW = newData.votedVNW;
76 this.votedRTV = newData.votedRTV;
77 this.rainbowed = newData.rainbowed;
78 this.hasEffect = newData.hasEffect;
79 this.isMuted = newData.isMuted;
80 this.inGodmode = newData.inGodmode;
81 this.isCreator = newData.isCreator;
82 }
83
84 public static TempData getByName(String name) {
85 return find(p -> p.player.name.equals(name));

Callers 3

cancelMethod · 0.80
PVarsClass · 0.80

Calls 2

spectateMethod · 0.95
removeTargetMethod · 0.80

Tested by

no test coverage detected