cn.nukkit.block.BlockAir Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
package cn.nukkit.block;
import cn.nukkit.api.PowerNukkitOnly;
import cn.nukkit.api.Since;
import cn.nukkit.item.Item;
import cn.nukkit.math.AxisAlignedBB;
import cn.nukkit.math.BlockFace;
import cn.nukkit.utils.BlockColor;
/**
* @author MagicDroidX (Nukkit Project)
*/
public class BlockAir extends BlockTransparent {
public BlockAir() {}
@Override
public int getId() {
return AIR;
}
@Override
public String getName() {
return "Air";
}
@Override
public boolean canPassThrough() {
return true;
}
@Override
public boolean isBreakable(Item item) {
return false;
}
@Override
public boolean canBeFlowedInto() {
return true;
}
@Override
public boolean canBePlaced() {
return false;
}
@Override
public boolean canBeReplaced() {
return true;
}
@Override
public boolean isSolid() {
return false;
}
@Since("1.3.0.0-PN")
@PowerNukkitOnly
@Override
public boolean isSolid(BlockFace side) {
return false;
}
@Override
public AxisAlignedBB getBoundingBox() {
return null;
}
@Override
public double getHardness() {
return 0;
}
@Override
public double getResistance() {
return 0;
}
@Override
public boolean canHarvestWithHand() {
return false;
}
@Override
public BlockColor getColor() {
return BlockColor.AIR_BLOCK_COLOR;
}
}