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

cn.nukkit.utils.collection.AutoFreezable Maven / Gradle / Ivy

There is a newer version: 1.20.40-r1
Show newest version
package cn.nukkit.utils.collection;

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

@PowerNukkitXOnly
@Since("1.19.50-r1")
public interface AutoFreezable {
    FreezeStatus getFreezeStatus();

    int getTemperature();

    /**
     * this.temperature += temperature; 
* 带有沸点检查,没有绝对零度检查! * @param temperature 温度变化量 */ void warmer(int temperature); /** * this.temperature -= temperature;
* 带有绝对零度检查,没有沸点检查! * @param temperature 温度变化量 */ void colder(int temperature); /** * 强制冻结数组 */ void freeze(); /** * 强制深度冻结数组 */ void deepFreeze(); @ShouldThaw void thaw(); enum FreezeStatus { NONE, FREEZING, FREEZE, DEEP_FREEZING, DEEP_FREEZE, THAWING } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy