All Downloads are FREE. Search and download functionalities are using the official Maven repository.

co.aikar.timings.EmptyTiming Maven / Gradle / Ivy

There is a newer version: 1.20.40-r1
Show newest version
package co.aikar.timings;

import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;

/**
 * 当Timings被完全关闭时使用的占位对象
 */
@PowerNukkitXOnly
@Since("1.19.50-r3")
public class EmptyTiming extends Timing {
    EmptyTiming() {
        super();
    }

    @Override
    void tick(boolean violated) {
    }
    @Override
    public Timing startTiming() {return this;}
    @Override
    public void stopTiming() {}
    @Override
    public void abort() {}
    @Override
    void addDiff(long diff) {}
    @Override
    void reset(boolean full) {}
    @Override
    public void close() {}
    @Override
    boolean isSpecial() {return false;}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy