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

cn.nukkit.blockproperty.value.CrackState Maven / Gradle / Ivy

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

import cn.nukkit.api.PowerNukkitOnly;
import cn.nukkit.api.Since;

import javax.annotation.Nullable;

@PowerNukkitOnly
@Since("1.4.0.0-PN")
public enum CrackState {
    @PowerNukkitOnly
    @Since("1.4.0.0-PN")
    NO_CRACKS,
    
    @PowerNukkitOnly
    @Since("1.4.0.0-PN")
    CRACKED,
    
    @PowerNukkitOnly
    @Since("1.4.0.0-PN")
    MAX_CRACKED {
        @Nullable
        @Override
        public CrackState getNext() {
            return null;
        }
    };
    private static final CrackState[] VALUES = values();

    @PowerNukkitOnly
    @Since("1.4.0.0-PN")
    @Nullable
    public CrackState getNext() {
        return VALUES[ordinal() + 1];
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy