2023-03-14 20:37:05 +01:00
|
|
|
package net.citizensnpcs.nms.v1_19_R3.util;
|
2022-06-08 05:58:22 +02:00
|
|
|
|
|
|
|
import com.mojang.datafixers.DataFixer;
|
2023-02-22 17:06:13 +01:00
|
|
|
|
2022-06-08 05:58:22 +02:00
|
|
|
import net.citizensnpcs.api.CitizensAPI;
|
|
|
|
import net.minecraft.SharedConstants;
|
|
|
|
import net.minecraft.server.level.ServerPlayer;
|
|
|
|
import net.minecraft.stats.ServerStatsCounter;
|
|
|
|
import net.minecraft.stats.Stat;
|
|
|
|
import net.minecraft.world.entity.player.Player;
|
|
|
|
|
|
|
|
public class EmptyServerStatsCounter extends ServerStatsCounter {
|
|
|
|
public EmptyServerStatsCounter() {
|
|
|
|
super(null, CitizensAPI.getDataFolder());
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void markAllDirty() {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void parseLocal(DataFixer datafixer, String s) {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void save() {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void sendStats(ServerPlayer entityplayer) {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setValue(Player entityhuman, Stat<?> statistic, int i) {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected String toJson() {
|
2023-03-14 20:37:05 +01:00
|
|
|
return "{\"stats\":{},\"DataVersion\":"
|
|
|
|
+ Integer.valueOf(SharedConstants.getCurrentVersion().getDataVersion().getVersion()) + "}";
|
2022-06-08 05:58:22 +02:00
|
|
|
}
|
|
|
|
}
|