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/PassiveBatteryControllerBlo...

22 lines
868 B
Java
Raw Normal View History

2020-07-13 20:37:21 +00:00
package com.thebrokenrail.energonrelics.block.battery;
2020-07-14 01:49:40 +00:00
import com.thebrokenrail.energonrelics.block.entity.battery.PassiveBatteryControllerBlockEntity;
2020-07-22 18:07:29 +00:00
import com.thebrokenrail.energonrelics.block.util.energy.FacingEnergyProviderBlock;
2020-07-13 20:37:21 +00:00
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.Material;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.block.entity.BlockEntityType;
import java.util.function.Function;
2020-07-22 18:07:29 +00:00
public class PassiveBatteryControllerBlock extends FacingEnergyProviderBlock {
2020-07-14 01:49:40 +00:00
public PassiveBatteryControllerBlock() {
2020-07-13 20:37:21 +00:00
super(FabricBlockSettings.of(Material.STONE).requiresTool().strength(1.5f, 6.0f));
}
@Override
protected Function<BlockEntityType<BlockEntity>, BlockEntity> getFactory() {
2020-07-14 01:49:40 +00:00
return PassiveBatteryControllerBlockEntity::new;
2020-07-13 20:37:21 +00:00
}
}