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/CreativeEnergySourceBlock.java

27 lines
885 B
Java
Raw Normal View History

2020-07-26 00:09:03 +00:00
package com.thebrokenrail.energonrelics.block;
import com.thebrokenrail.energonrelics.block.entity.CreativeEnergySourceBlockEntity;
2020-08-04 17:06:11 +00:00
import com.thebrokenrail.energonrelics.api.block.energy.EnergyBlock;
2020-07-26 00:09:03 +00:00
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.Blocks;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.block.entity.BlockEntityType;
import java.util.function.Function;
2020-07-26 23:05:59 +00:00
public class CreativeEnergySourceBlock extends EnergyBlock {
2020-07-26 00:09:03 +00:00
public CreativeEnergySourceBlock() {
2020-07-30 02:51:29 +00:00
super(FabricBlockSettings.copy(Blocks.BEDROCK).dropsNothing().lightLevel(state -> 12));
2020-07-26 00:09:03 +00:00
}
@Override
protected Function<BlockEntityType<BlockEntity>, BlockEntity> getFactory() {
return CreativeEnergySourceBlockEntity::new;
}
2020-08-03 23:48:02 +00:00
@Override
protected boolean isEpic() {
return true;
}
2020-07-26 00:09:03 +00:00
}