2020-07-13 20:37:21 +00:00
|
|
|
package com.thebrokenrail.energonrelics.block.entity;
|
|
|
|
|
2020-08-04 17:06:11 +00:00
|
|
|
import com.thebrokenrail.energonrelics.api.block.entity.core.EnergyReceiverBlockEntity;
|
|
|
|
import com.thebrokenrail.energonrelics.api.energy.Action;
|
2020-07-17 16:14:27 +00:00
|
|
|
import com.thebrokenrail.energonrelics.config.HardcodedConfig;
|
2020-07-13 20:37:21 +00:00
|
|
|
import com.thebrokenrail.energonrelics.block.EnergonLightBlock;
|
|
|
|
import net.minecraft.block.entity.BlockEntityType;
|
|
|
|
|
|
|
|
public class EnergonLightBlockEntity extends EnergyReceiverBlockEntity {
|
|
|
|
public EnergonLightBlockEntity(BlockEntityType<?> type) {
|
|
|
|
super(type);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2020-07-27 18:06:46 +00:00
|
|
|
protected void energyTick() {
|
2020-07-24 18:02:42 +00:00
|
|
|
addAction(Action.createBlockStatePropertyAction(HardcodedConfig.ENERGON_LIGHT_ENERGY_REQUIRED, EnergonLightBlock.POWERED, true, false));
|
2020-07-13 20:37:21 +00:00
|
|
|
}
|
|
|
|
}
|