2020-07-13 20:37:21 +00:00
|
|
|
package com.thebrokenrail.energonrelics.block.battery;
|
|
|
|
|
|
|
|
import com.thebrokenrail.energonrelics.block.entity.battery.BatteryCoreBlockEntity;
|
|
|
|
import com.thebrokenrail.energonrelics.block.util.SimpleBlockWithEntity;
|
|
|
|
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
|
|
|
import net.minecraft.block.Material;
|
2020-07-22 20:17:01 +00:00
|
|
|
import net.minecraft.block.MaterialColor;
|
2020-07-13 20:37:21 +00:00
|
|
|
import net.minecraft.block.entity.BlockEntity;
|
|
|
|
import net.minecraft.block.entity.BlockEntityType;
|
|
|
|
|
|
|
|
import java.util.function.Function;
|
|
|
|
|
|
|
|
public class BatteryCoreBlock extends SimpleBlockWithEntity {
|
|
|
|
public BatteryCoreBlock() {
|
2020-07-22 20:17:01 +00:00
|
|
|
super(FabricBlockSettings.of(Material.STONE, MaterialColor.RED_TERRACOTTA).requiresTool().strength(1.5f, 6.0f));
|
2020-07-13 20:37:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected Function<BlockEntityType<BlockEntity>, BlockEntity> getFactory() {
|
|
|
|
return BatteryCoreBlockEntity::new;
|
|
|
|
}
|
|
|
|
}
|