规范化玩家数据命名
This commit is contained in:
parent
d70edf6967
commit
7df6f559a7
1 changed files with 35 additions and 34 deletions
|
@ -232,44 +232,45 @@ public class ModVariables {
|
||||||
|
|
||||||
public Tag writeNBT() {
|
public Tag writeNBT() {
|
||||||
CompoundTag nbt = new CompoundTag();
|
CompoundTag nbt = new CompoundTag();
|
||||||
nbt.putBoolean("zoom", zoom);
|
nbt.putBoolean("Zoom", zoom);
|
||||||
nbt.putBoolean("holdFire", holdFire);
|
nbt.putBoolean("HoldFire", holdFire);
|
||||||
nbt.putInt("rifle_ammo", rifleAmmo);
|
nbt.putInt("RifleAmmo", rifleAmmo);
|
||||||
nbt.putInt("handgun_ammo", handgunAmmo);
|
nbt.putInt("HandgunAmmo", handgunAmmo);
|
||||||
nbt.putInt("shotgun_ammo", shotgunAmmo);
|
nbt.putInt("ShotgunAmmo", shotgunAmmo);
|
||||||
nbt.putInt("sniper_ammo", sniperAmmo);
|
nbt.putInt("SniperAmmo", sniperAmmo);
|
||||||
nbt.putBoolean("bow_pull_hold", bowPullHold);
|
nbt.putBoolean("BowPullHold", bowPullHold);
|
||||||
nbt.putBoolean("bow_pull", bowPull);
|
nbt.putBoolean("BowPull", bowPull);
|
||||||
nbt.putBoolean("player_double_jump", playerDoubleJump);
|
nbt.putBoolean("DoubleJump", playerDoubleJump);
|
||||||
nbt.putBoolean("tacticalSprint", tacticalSprint);
|
nbt.putBoolean("TacticalSprint", tacticalSprint);
|
||||||
nbt.putInt("tacticalSprintTime", tacticalSprintTime);
|
nbt.putInt("TacticalSprintTime", tacticalSprintTime);
|
||||||
nbt.putBoolean("tacticalSprintExhaustion", tacticalSprintExhaustion);
|
nbt.putBoolean("TacticalSprintExhaustion", tacticalSprintExhaustion);
|
||||||
nbt.putBoolean("breath", breath);
|
nbt.putBoolean("Breath", breath);
|
||||||
nbt.putInt("breathTime", breathTime);
|
nbt.putInt("BreathTime", breathTime);
|
||||||
nbt.putBoolean("breathExhaustion", breathExhaustion);
|
nbt.putBoolean("BreathExhaustion", breathExhaustion);
|
||||||
nbt.putBoolean("edit", edit);
|
nbt.putBoolean("EditMode", edit);
|
||||||
|
|
||||||
return nbt;
|
return nbt;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void readNBT(Tag Tag) {
|
public void readNBT(Tag tag) {
|
||||||
CompoundTag nbt = (CompoundTag) Tag;
|
CompoundTag nbt = (CompoundTag) tag;
|
||||||
zoom = nbt.getBoolean("zoom");
|
|
||||||
holdFire = nbt.getBoolean("holdFire");
|
zoom = nbt.getBoolean("Zoom");
|
||||||
rifleAmmo = nbt.getInt("rifle_ammo");
|
holdFire = nbt.getBoolean("HoldFire");
|
||||||
handgunAmmo = nbt.getInt("handgun_ammo");
|
rifleAmmo = nbt.getInt("RifleAmmo");
|
||||||
shotgunAmmo = nbt.getInt("shotgun_ammo");
|
handgunAmmo = nbt.getInt("HandgunAmmo");
|
||||||
sniperAmmo = nbt.getInt("sniper_ammo");
|
shotgunAmmo = nbt.getInt("ShotgunAmmo");
|
||||||
bowPullHold = nbt.getBoolean("bow_pull_hold");
|
sniperAmmo = nbt.getInt("SniperAmmo");
|
||||||
bowPull = nbt.getBoolean("bow_pull");
|
bowPullHold = nbt.getBoolean("BowPullHold");
|
||||||
playerDoubleJump = nbt.getBoolean("player_double_jump");
|
bowPull = nbt.getBoolean("BowPull");
|
||||||
tacticalSprint = nbt.getBoolean("tacticalSprint");
|
playerDoubleJump = nbt.getBoolean("DoubleJump");
|
||||||
tacticalSprintTime = nbt.getInt("tacticalSprintTime");
|
tacticalSprint = nbt.getBoolean("TacticalSprint");
|
||||||
tacticalSprintExhaustion = nbt.getBoolean("tacticalSprintExhaustion");
|
tacticalSprintTime = nbt.getInt("TacticalSprintTime");
|
||||||
breath = nbt.getBoolean("breath");
|
tacticalSprintExhaustion = nbt.getBoolean("TacticalSprintExhaustion");
|
||||||
breathTime = nbt.getInt("breathTime");
|
breath = nbt.getBoolean("Breath");
|
||||||
breathExhaustion = nbt.getBoolean("breathExhaustion");
|
breathTime = nbt.getInt("BreathTime");
|
||||||
edit = nbt.getBoolean("edit");
|
breathExhaustion = nbt.getBoolean("BreathExhaustion");
|
||||||
|
edit = nbt.getBoolean("EditMode");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue