cn.nukkit.block.BlockRedstoneRepeaterUnpowered Maven / Gradle / Ivy
package cn.nukkit.block;
import cn.nukkit.api.PowerNukkitDifference;
import cn.nukkit.blockstate.BlockState;
/**
* @author CreeperFace
* @since 10.4.2017
*/
@PowerNukkitDifference(info = "Extends BlockRedstoneRepeater instead of BlockRedstoneDiode only in PowerNukkit", since = "1.4.0.0-PN")
public class BlockRedstoneRepeaterUnpowered extends BlockRedstoneRepeater {
public BlockRedstoneRepeaterUnpowered() {
super();
this.isPowered = false;
}
@Override
public int getId() {
return UNPOWERED_REPEATER;
}
@Override
public String getName() {
return "Unpowered Repeater";
}
@Override
protected Block getPowered() {
return BlockState.of(BlockID.POWERED_REPEATER, getCurrentState().getDataStorage()).getBlock();
}
@Override
protected Block getUnpowered() {
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy