TheBrokenRail
fe1d959ad5
All checks were successful
EnergonRelics/pipeline/head This commit looks good
23 lines
939 B
Java
23 lines
939 B
Java
package com.thebrokenrail.energonrelics.block.battery;
|
|
|
|
import com.thebrokenrail.energonrelics.block.entity.battery.ActiveBatteryControllerBlockEntity;
|
|
import com.thebrokenrail.energonrelics.block.util.energy.FacingEnergyProviderBlock;
|
|
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 java.util.function.Function;
|
|
|
|
public class ActiveBatteryControllerBlock extends FacingEnergyProviderBlock {
|
|
public ActiveBatteryControllerBlock() {
|
|
super(FabricBlockSettings.of(Material.STONE, MaterialColor.ORANGE_TERRACOTTA).requiresTool().strength(1.5f, 6.0f));
|
|
}
|
|
|
|
@Override
|
|
protected Function<BlockEntityType<BlockEntity>, BlockEntity> getFactory() {
|
|
return ActiveBatteryControllerBlockEntity::new;
|
|
}
|
|
}
|