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/battery/ActiveBatteryControllerBlock.java
TheBrokenRail fe1d959ad5
All checks were successful
EnergonRelics/pipeline/head This commit looks good
Fix Block Materials
2020-07-22 16:17:01 -04:00

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;
}
}