26 lines
660 B
Java
26 lines
660 B
Java
package com.thebrokenrail.energonrelics.block.entity;
|
|
|
|
import com.thebrokenrail.energonrelics.block.SwitchBlock;
|
|
import com.thebrokenrail.energonrelics.energy.core.EnergyReceiverBlockEntity;
|
|
import net.minecraft.block.entity.BlockEntityType;
|
|
|
|
public class SwitchBlockEntity extends EnergyReceiverBlockEntity {
|
|
public SwitchBlockEntity(BlockEntityType<?> type) {
|
|
super(type);
|
|
}
|
|
|
|
@Override
|
|
protected void tickEnergy() {
|
|
}
|
|
|
|
@Override
|
|
public boolean isEnergyProvider() {
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
protected boolean isEnergyProviderActive() {
|
|
return getCachedState().get(SwitchBlock.POWERED);
|
|
}
|
|
}
|