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

cn.nukkit.item.customitem.data.DigProperty Maven / Gradle / Ivy

package cn.nukkit.item.customitem.data;

import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;
import cn.nukkit.nbt.tag.CompoundTag;

import javax.annotation.Nullable;

@PowerNukkitXOnly
@Since("1.19.60-r1")
public class DigProperty {
    private CompoundTag states;
    private Integer speed;

    public DigProperty() {
        this.states = new CompoundTag();
    }

    public DigProperty(CompoundTag states, int speed) {
        this.states = states;
        this.speed = speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    @Nullable
    public Integer getSpeed() {
        return speed;
    }

    public void setStates(CompoundTag states) {
        this.states = states;
    }

    public CompoundTag getStates() {
        return states;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy