cn.nukkit.block.BlockFlowable Maven / Gradle / Ivy
package cn.nukkit.block;
import cn.nukkit.api.PowerNukkitOnly;
import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;
import cn.nukkit.math.AxisAlignedBB;
/**
* @author MagicDroidX (Nukkit Project)
*/
public abstract class BlockFlowable extends BlockTransparentMeta {
@PowerNukkitXOnly
@Since("1.6.0.0-PNX")
protected BlockFlowable(){
super();
}
protected BlockFlowable(int meta) {
super(meta);
}
@Override
public boolean canBeFlowedInto() {
return true;
}
@Override
public boolean canPassThrough() {
return true;
}
@Override
public double getHardness() {
return 0;
}
@Override
public double getResistance() {
return 0;
}
@Override
public boolean isSolid() {
return false;
}
@Override
@PowerNukkitOnly
public boolean breaksWhenMoved() {
return true;
}
@Override
@PowerNukkitOnly
public boolean sticksToPiston() {
return false;
}
@Override
protected AxisAlignedBB recalculateBoundingBox() {
return null;
}
}