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

cn.nukkit.block.BlockSolidMeta Maven / Gradle / Ivy

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

import cn.nukkit.api.PowerNukkitOnly;
import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;
import cn.nukkit.math.BlockFace;
import cn.nukkit.utils.BlockColor;

public abstract class BlockSolidMeta extends BlockMeta {
    protected BlockSolidMeta(int meta) {
        super(meta);
    }

    @PowerNukkitXOnly
    @Since("1.6.0.0-PNX")
    public BlockSolidMeta(){}

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

    @Since("1.3.0.0-PN")
    @PowerNukkitOnly
    @Override
    public boolean isSolid(BlockFace side) {
        return true;
    }

    @Override
    public BlockColor getColor() {
        return BlockColor.STONE_BLOCK_COLOR;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy