This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
EnergonRelics/src/main/java/com/thebrokenrail/energonrelics/block/entity/CreativeEnergySourceBlockEntity.java
TheBrokenRail 1981088444
All checks were successful
EnergonRelics/pipeline/head This commit looks good
Add Creative Energy Source
2020-07-25 20:09:03 -04:00

29 lines
880 B
Java

package com.thebrokenrail.energonrelics.block.entity;
import com.thebrokenrail.energonrelics.config.HardcodedConfig;
import com.thebrokenrail.energonrelics.energy.core.EnergyProviderBlockEntity;
import com.thebrokenrail.energonrelics.energy.helper.EnergyGeneratorBlockEntity;
import net.minecraft.block.entity.BlockEntityType;
import net.minecraft.util.math.Direction;
import net.minecraft.world.LightType;
import java.util.List;
import java.util.Objects;
public class CreativeEnergySourceBlockEntity extends EnergyGeneratorBlockEntity {
public CreativeEnergySourceBlockEntity(BlockEntityType<?> type) {
super(type);
}
@Override
public long getDisplayEnergy() {
return Long.MAX_VALUE;
}
@Override
public List<EnergyProviderBlockEntity> startTick() {
setEnergy(getDisplayEnergy());
return super.startTick();
}
}