TheBrokenRail
fe1d959ad5
All checks were successful
EnergonRelics/pipeline/head This commit looks good
24 lines
931 B
Java
24 lines
931 B
Java
package com.thebrokenrail.energonrelics.block;
|
|
|
|
import com.thebrokenrail.energonrelics.block.entity.SolarPanelBlockEntity;
|
|
import com.thebrokenrail.energonrelics.block.util.energy.EnergyProviderBlock;
|
|
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
|
import net.minecraft.block.Material;
|
|
import net.minecraft.block.MaterialColor;
|
|
import net.minecraft.block.entity.BlockEntity;
|
|
import net.minecraft.block.entity.BlockEntityType;
|
|
import net.minecraft.sound.BlockSoundGroup;
|
|
|
|
import java.util.function.Function;
|
|
|
|
public class SolarPanelBlock extends EnergyProviderBlock {
|
|
public SolarPanelBlock() {
|
|
super(FabricBlockSettings.of(Material.STONE, MaterialColor.BLUE_TERRACOTTA).sounds(BlockSoundGroup.GLASS).requiresTool().strength(1.5f, 6.0f));
|
|
}
|
|
|
|
@Override
|
|
protected Function<BlockEntityType<BlockEntity>, BlockEntity> getFactory() {
|
|
return SolarPanelBlockEntity::new;
|
|
}
|
|
}
|