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

cn.nukkit.command.tree.node.VoidNode Maven / Gradle / Ivy

There is a newer version: 1.20.40-r1
Show newest version
package cn.nukkit.command.tree.node;

import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;
import cn.nukkit.command.tree.ParamList;

/**
 * 一个用来占位的空参数节点
 */
@PowerNukkitXOnly
@Since("1.19.60-r1")
public class VoidNode implements IParamNode {
    @Override
    public void fill(String arg) {
    }

    @Override
    public  E get() {
        return null;
    }

    @Override
    public void reset() {
    }

    @Override
    public ParamList getParent() {
        return null;
    }

    @Override
    public boolean hasResult() {
        return true;
    }

    @Override
    public boolean isOptional() {
        return true;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy