cn.nukkit.block.BlockSculkSensor Maven / Gradle / Ivy
package cn.nukkit.block;
import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;
import cn.nukkit.blockentity.BlockEntity;
import cn.nukkit.blockentity.BlockEntitySculkSensor;
import cn.nukkit.blockproperty.BlockProperties;
import cn.nukkit.blockproperty.BooleanBlockProperty;
import javax.annotation.Nonnull;
/**
* @author LT_Name
*/
@PowerNukkitXOnly
@Since("1.6.0.0-PNX")
public class BlockSculkSensor extends BlockSolid implements BlockEntityHolder {
public static final BooleanBlockProperty POWERED_BIT = new BooleanBlockProperty("powered_bit", false);
public static final BlockProperties PROPERTIES = new BlockProperties(POWERED_BIT);
@Override
public String getName() {
return "Sculk Sensor";
}
@Override
public int getId() {
return SCULK_SENSOR;
}
@Override
public BlockProperties getProperties() {
return PROPERTIES;
}
@Nonnull
@Override
public Class extends BlockEntitySculkSensor> getBlockEntityClass() {
return BlockEntitySculkSensor.class;
}
@Nonnull
@Override
public String getBlockEntityType() {
return BlockEntity.SCULK_SENSOR;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy