// package jesse.keeblarcraft.CustomBlocks.Blocks;

// import jesse.keeblarcraft.CustomBlocks.BlockEntities.MagicChestBlockEntity;
// import net.minecraft.block.BlockRenderType;
// import net.minecraft.block.BlockState;
// import net.minecraft.block.BlockWithEntity;
// import net.minecraft.block.entity.BlockEntity;
// import net.minecraft.entity.player.PlayerEntity;
// import net.minecraft.screen.NamedScreenHandlerFactory;
// import net.minecraft.util.ActionResult;
// import net.minecraft.util.Hand;
// import net.minecraft.util.hit.BlockHitResult;
// import net.minecraft.util.math.BlockPos;
// import net.minecraft.world.World;

// public class MagicChestBlock extends BlockWithEntity {
//     public MagicChestBlock(Settings settings) {
//         super(settings);
//     }

//     @Override
//     public BlockEntity createBlockEntity(BlockPos pos, BlockState state) {
//         return new MagicChestBlockEntity(pos, state);
//     }

//     @Override
//     public BlockRenderType getRenderType(BlockState state) {
//         return BlockRenderType.MODEL;
//     }

//     @Override
//     public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) {
//         if (!world.isClient) {
//             NamedScreenHandlerFactory screenHandlerFactory = ((MagicChestBlockEntity) world.getBlockEntity(pos));

//             if (screenHandlerFactory != null) {
//                 player.openHandledScreen(screenHandlerFactory);
//             }
//         }

//         return ActionResult.SUCCESS;
//     }
// }
